[libre-riscv-dev] New Person
lkcl
lkcl at libre-riscv.org
Fri Oct 12 15:22:26 BST 2018
ok daniel, when you ran the riscv-tools build process, this is what you got:
$ ls $RISCV/lib/
gcc libcc1.so.0 libfesvr.so libsoftfloat.so
libcc1.la libcc1.so.0.0.0 libriscv64-unknown-elf-sim.a libspike_main.so
libcc1.so libdummy_rocc.so libriscv.so pkgconfig
this is why things "appear" not to be quotes working quotes.
if you do this:
$ ls -altr $RISCV/bin/spike*
-r-xr-xr-x 1 lkcl lkcl 475560 Dec 2 2017
/home/lkcl/src/riscv/rocket-chip/riscv-tools/bin/spike.no <<<< "MOVE
PROGRAM OUT WAY"
*now* you will find that things work.
yes? see what's going on?
and when you did "make install" (which can only be done as root btw)
on the spike-sv version:
# make install
./scripts/mk-install-dirs.sh /usr/local/include/spike
./scripts/mk-install-dirs.sh /usr/local/lib <<<< HERE IS WHERE
LIBRARIES ARE INSTALLED
for file in libriscv.so libdummy_rocc.so libsoftfloat.so
liboperators.so libspike_main.so; \
do \
/usr/bin/install -c -m 644 $file /usr/local/lib; \ <<<<---- IN
THIS DIRECTORY
done
however if you have $RISCV/bin in the path, **BEFORE** /usr/local/bin,
guess what happens? guess which version ALWAYS gets run first?
you can check with "whereis spike".
l.
More information about the libre-riscv-dev
mailing list