0

我是 Rocket 芯片的新手,正在尝试安装 Rocket 芯片并执行模拟,但是在按照 README.md 文件在 Rocket 芯片设置中创建火箭工具目录时,我收到以下错误:


ar: illegal option combination for -r
usage:  ar -d [-TLsv] archive file ...
    ar -m [-TLsv] archive file ...
    ar -m [-abiTLsv] position archive file ...
    ar -p [-TLsv] archive [file ...]
    ar -q [-cTLsv] archive file ...
    ar -r [-cuTLsv] archive file ...
    ar -r [-abciuTLsv] position archive file ...
    ar -t [-TLsv] archive [file ...]
    ar -x [-ouTLsv] archive [file ...]
make: *** [libfesvr.a] Error 1

执行 ./build.sh 命令时出现此错误。

我正在使用 Mac OS sierra 10.12.06。

mac-vsanjay:rocket-tools vsanjay$ which ar /usr/bin/ar

我打开 build.sh 发现这个错误是在执行过程中出现的

build_project riscv-isa-sim --prefix=$RISCV命令。

我还尝试修改调用“ar”命令的 Makefile:

  ## Heading ##
    `$(AR) rcs -o $$@ $$^`

但是这个 cmd 会<build_project riscv-isa-sim --prefix=$RISCV>生成并覆盖 makefile。

请建议如何克服 AR 错误。

4

0 回答 0