【问题标题】:Error while building sodor emulators, riscv-sodor构建 sodor 模拟器时出错,riscv-sodor
【发布时间】:2020-01-29 05:32:10
【问题描述】:

我安装了 riscv、riscv-gnu-toolchain 和 riscv-tools 并想获得 riscv-sodor。为此,我按照https://github.com/librecores/riscv-sodor 的步骤,成功安装了verilator 和前端服务器,但之后我必须构建sodor 模拟器,第一步通过make 命令我得到了这个错误

make -C emulator/rv32_1stage/
make[1]: Entering directory '/home/nemanja/riscv-sodor/emulator/rv32_1stage'
verilator --cc --exe  --top-module Top +define+PRINTF_COND=\$c\(\"verbose\"\) --assert --output-split 20000 --x-assign unique -I/home/nemanja/riscv-sodor/vsrc -O3 -CFLAGS " -O1 -std=c++11  -g -I/home/nemanja/riscv-sodor/emulator/common -I/home/nemanja/riscv-sodor/riscv-fesvr  -L/opt/riscv/lib -Wl,-rpath,/opt/riscv/lib -L. -lpthread -DVERILATOR -include /home/nemanja/riscv-sodor/emulator/common/verilator.h" \
-o /home/nemanja/riscv-sodor/emulator/rv32_1stage/emulator generated-src/Top.v /home/nemanja/riscv-sodor/vsrc/SimDTM.v -LDFLAGS " -L/opt/riscv/lib -Wl,-rpath,/opt/riscv/lib -L. -lpthread" /home/nemanja/riscv-sodor/emulator/common/emulator.cpp /home/nemanja/riscv-sodor/riscv-fesvr/build/libfesvr.so /home/nemanja/riscv-sodor/emulator/rv32_1stage/SimDTM.o
/bin/sh: 1: verilator: not found
/home/nemanja/riscv-sodor/emulator/common/Makefile.include:83: recipe for target 'emulator' failed
make[1]: *** [emulator] Error 127
make[1]: Leaving directory '/home/nemanja/riscv-sodor/emulator/rv32_1stage'
Makefile:104: recipe for target 'emulator/rv32_1stage/emulator' failed
make: *** [emulator/rv32_1stage/emulator] Error 2

因为我对这一切都很陌生,所以我不知道可能是什么问题。 我将不胜感激任何可能的故障排除帮助...

谢谢。

【问题讨论】:

  • 正如下面的答案所述,第一条错误消息表明出了什么问题,即您没有安装一个记录在案的依赖项(验证器)。

标签: makefile riscv chisel


【解决方案1】:

该特定错误是由于未安装 verilator 而在您的 $PATH 上造成的。

/bin/sh: 1: verilator: not found

一旦你为你的操作系统安装了它,你应该解决这个特定的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-11-24
    • 1970-01-01
    • 2022-11-28
    • 2018-08-03
    • 1970-01-01
    • 2013-09-03
    • 2015-11-18
    相关资源
    最近更新 更多