OpenXiangShan / XiangShan

Open-source high-performance RISC-V processor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Got an error when compiling xiangshan emu

1YxLin opened this issue · comments

![image](https://github.com/OpenXiangShan/XiangShan/assets/148250428/682ae92b-2655-40ec-b182-78d0b72ceb8e
微信图片_20240130160259
是用公司的服务器来跑的,请问该如何解决?
[TRANSLATION] I build it on my company's server. How could I fix it?

请提供更多信息以协助我们定位问题,例如 commit id、您遵照哪份文档进行操作、您在 make emu 之前做了什么,等等。另外,请确保您的网络环境通畅。
Please provide more infomation, such as commit hash, the documents which you followed, the actions you did before make emu, etc. Also, please ensure that your network environment is unobstructed.

感谢!我是遵照https://xiangshan-doc.readthedocs.io/zh-cn/latest/tools/xsenv/来做的,不过在xs-env文件里的XiangShan,我使用的是nanhu分支的XiangShan,在make emu之前,我是先在本地电脑下载好XiangShan并make emu直到报错,再压缩打包传给服务器,然后在服务器里运行make emu CONFIG=MinimalConfig EMU_TRACE=1 -j32,结果就报这种error
在之前还报过expr: syntax error: unexpected argument ‘(mod)’,我定位到了xs-env/XiangShan/difftest/verilator.mk,我把VERILATOR_4_210 := $(shell expr 'verilator --version | cut -f3 -d.' >= 210)的单引号换为英文版的单引号就没报expr的语法错误了

您是直接从 github 下载的 XiangShan nanhu 分支源码的 zip 吗?请考虑直接在服务器上重新 git clone 整个环境,然后再试。

Did you download source code zip of XiangShan nanhu branch from github? Please consider re-clone xs-env on your server, and try again.