I am new to Rocket chip and trying to install rocket chip and execute simulation but while Creating rocket tool dir in Rocket chip setup as per README.md file, I am getting following error:
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
This error comes while executing ./build.sh command.
I am using Mac OS sierra 10.12.06.
mac-vsanjay:rocket-tools vsanjay$ which ar
/usr/bin/ar
I open build.sh and found that this error is coming during execution of
build_project riscv-isa-sim --prefix=$RISCV
command.
I also tried to modify Makefile which calls "ar" command:
## Heading ##
`$(AR) rcs -o $$@ $$^`
but this cmd <build_project riscv-isa-sim --prefix=$RISCV>
generates and overwrites makefile.
Please suggest how to overcome with AR error.