Posts: 12
Threads: 6
Joined: Jul 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
Posts: 151
Threads: 0
Joined: Oct 2018
Are you using a GCC for RISC-V with support for the PULP extensions?
Visit pulp-platform.org and follow us on twitter @pulp_platform
Posts: 12
Threads: 6
Joined: Jul 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.
Posts: 151
Threads: 0
Joined: Oct 2018
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..
Visit pulp-platform.org and follow us on twitter @pulp_platform
Posts: 12
Threads: 6
Joined: Jul 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
Posts: 12
Threads: 6
Joined: Jul 2024
Resolved, I rebuilt the compiler and it resolved the issue.
Posts: 151
Threads: 0
Joined: Oct 2018
Thanks a lot for letting us know
Visit pulp-platform.org and follow us on twitter @pulp_platform