【问题标题】:Error on installing RISCV toolchain on Ubuntu 20.10在 Ubuntu 20.10 上安装 RISCV 工具链时出错
【发布时间】:2020-12-09 10:36:00
【问题描述】:

我正在尝试在 ubuntu 20.10 上安装 riscv-toolchain。 .buidl.sh 执行时出现错误

配置项目 riscv-isa-sim 构建项目 riscv-isa-sim

   ./fesvr/dtm.cc: In member function ‘uint32_t dtm_t::get_xlen()’:
   ../fesvr/dtm.cc:488:16: error: ‘runtime_error’ is not a member of ‘std’
  488 |     throw std::runtime_error("FESVR DTM Does not support 128-bit");
      |                ^~~~~~~~~~~~~
../fesvr/dtm.cc:505:14: error: ‘runtime_error’ is not a member of ‘std’
  505 |   throw std::runtime_error("FESVR DTM can't determine XLEN. Aborting");
      |              ^~~~~~~~~~~~~
../fesvr/dtm.cc:506:1: warning: control reaches end of non-void function [-Wreturn-type]
  506 | }
      | ^

【问题讨论】:

    标签: riscv chisel


    【解决方案1】:

    std::runtime_error 在 stdexcept 中定义。通常你会错过#include <stdexcept>。但是通常情况下,这个修改是在 7 个月前在 riscv-isa-sim 中完成的。您可能没有使用最新版本。

    【讨论】:

    • 感谢您的建议。它工作我从link 下载。是否有其他克隆更新了。
    • 不客气。但是我不明白你的问题。你能说得更清楚些吗?
    • 该 repo 本质上调用了其他工具并将理想的构建脚本传递给每个工具。我也有类似的问题,包括你所说的问题。我最近试过了,它没有正确编译。
    • 编译不正确是什么意思。我使用来自 github.com/riscv/riscv-gnu-toolchain 的工具链在 ubuntu 18.04 下编译它。唯一损坏的是 riscv-tests,因为有多个定义,但模拟器和 openocd 编译正常。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-03-11
    • 2018-09-16
    • 2016-05-30
    • 2014-03-06
    • 2014-01-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多