Hi
I am able to install & build "riscv-pk" and "riscv-isa-sim", and then try out Spike. Many thank!
> ./configure --prefix=/opt/riscv --enable-multilib
> sudo make linux
Otherwise, I also tried to enable "multilib" when building "riscv-gnu-toolchain" but with no luck. It complained:
> ...
> configure: error: in `/home/webuser/Dev/risc-v/riscv-gnu-toolchain/build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib32/ilp32/libgomp':
> configure: error: C compiler cannot create executables
And make failed with:
> Makefile:13703: recipe for target 'configure-target-libgomp' failed
> make[2]: *** [configure-target-libgomp] Error 1
Again, any suggestions?
Regards,
Jacob
============================================================
...
checking for riscv64-unknown-linux-gnu-gcc... /home/webuser/Dev/risc-v/riscv-gnu-toolchain/build-gcc-linux-stage2/./gcc/xgcc -B/home/webuser/Dev/risc-v/riscv-gnu-toolchain/build-gcc-linux-stage2/./gcc/ -B/opt/riscv/riscv64-unknown-linux-gnu/bin/ -B/opt/riscv/riscv64-unknown-linux-gnu/lib/ -isystem /opt/riscv/riscv64-unknown-linux-gnu/include -isystem /opt/riscv/riscv64-unknown-linux-gnu/sys-include -march=rv32imac -mabi=ilp32
checking whether the C compiler works... no
configure: error: in `/home/webuser/Dev/risc-v/riscv-gnu-toolchain/build-gcc-linux-stage2/riscv64-unknown-linux-gnu/lib32/ilp32/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details
Makefile:13703: recipe for target 'configure-target-libgomp' failed
make[2]: *** [configure-target-libgomp] Error 1
make[2]: Leaving directory '/home/webuser/Dev/risc-v/riscv-gnu-toolchain/build-gcc-linux-stage2'
Makefile:951: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/webuser/Dev/risc-v/riscv-gnu-toolchain/build-gcc-linux-stage2'
Makefile:304: recipe for target 'stamps/build-gcc-linux-stage2' failed
make: *** [stamps/build-gcc-linux-stage2] Error 2