我安装了riscv,riscv-gnu-toolchain和riscv-tools,并希望获得riscv-sodor。为此,我遵循https://github.com/librecores/riscv-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
因为我对这一切真的很陌生,所以我不知道可能是什么问题。 希望对您进行故障排除方面的帮助...
谢谢。
答案 0 :(得分:3)
该特定错误是由于verilator
上没有安装$PATH
而造成的。
/bin/sh: 1: verilator: not found
一旦为操作系统安装了该软件,就应该克服此特定问题。