PULP Community
mno pulp hwloop error - Printable Version

+- PULP Community (https://pulp-platform.org/community)
+-- Forum: PULP's Community forum (https://pulp-platform.org/community/forumdisplay.php?fid=1)
+--- Forum: PULP General questions (https://pulp-platform.org/community/forumdisplay.php?fid=2)
+--- Thread: mno pulp hwloop error (/showthread.php?tid=356)



mno pulp hwloop error - Roogadget - 10-25-2024

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



RE: mno pulp hwloop error - kgf - 10-25-2024

Are you using a GCC for RISC-V with support for the PULP extensions?


RE: mno pulp hwloop error - Roogadget - 10-25-2024

(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.


RE: mno pulp hwloop error - kgf - 10-25-2024

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..


RE: mno pulp hwloop error - Roogadget - 10-25-2024

(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


RE: mno pulp hwloop error - Roogadget - 10-30-2024

Resolved, I rebuilt the compiler and it resolved the issue.


RE: mno pulp hwloop error - kgf - 10-30-2024

Thanks a lot for letting us know Smile