PULP Community

Full Version: mno pulp hwloop error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I went through the pulpissimo setup and when i run the hello rt test.

It gives me an error saying the following:

riscv32-unknown-elf-gcc error: unrecognized command line option -mno-pulp-hwloop.

I ran the following to setup the compiler.

Code:
./configure --prefix=/opt/riscv --with-arch=rv32imfcxpulpv3 --with-abi=ilp32 --enable-multilib
make
Are you using a GCC for RISC-V with support for the PULP extensions?
(10-25-2024, 04:33 PM)kgf Wrote: [ -> ]Are you using a GCC for RISC-V with support for the PULP extensions

I followed the instructions on the following site:
GitHub - pulp-platform/riscv-gnu-toolchain: GNU toolchain for PULP and RISC-V

I've just done a 'make clean' and 'make all' in the directory to double check everything is fine.
Could it be that there is a different GCC in the path.. it looks like the correct GCC for PULP is not being used for the compilation that could explain the error..
(10-25-2024, 06:45 PM)kgf Wrote: [ -> ]Could it be that there is a different GCC in the path.. it looks like the correct GCC for PULP is not being used for the compilation that could explain the error..

My bash has the following the correct "export PULP_RISCV_GCC_TOOLCHAIN "/opt/riscv/"

Then inside the /opt/riscv/bin I have all the riscv32-unknown-elf-gcc and cpp...Etc
Resolved, I rebuilt the compiler and it resolved the issue.
Thanks a lot for letting us know Smile