While trying to build spike, I got the following error:
./spike_dasm/spike_dasm_option_parser.cc:1:1: error: expected unqualified-id before ‘.’ token
…/fesvr/option_parser.cc
^
make: *** [spike_dasm_option_parser.o] Error 1
Is there an issue with the options that I gave while configuration or there is an error with one of the files? Log file is attached. config.log
@muhammadsalmanafzal The ./spike_dasm/spike_dasm_option_parser.cc is a symbolic file, I guess you get the source code by download zip, try git clone to get source code and build.
以上是google的回答,
我确实有这个问题, 我把riscv-tool的文件夹在码云上下的, 由于网速问题,我把里面的子文件夹在windlow上一个个下载的copy进虚拟机里。 晚上由于网速变好了, 重新把riscv-tools和子文件夹git下来了。 编译按照isa-sim README里的命令编译通过。 注意用的64位的gnu。