-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unrecognized command line option '-m=32' with the pulp-riscv-gnu-toolchain #196
Comments
Seeing the same issue when I run cmake_configure.riscv.gcc.sh using this toolchain. I did not have any issue with this when I used the toolchain from pulp-platform/ri5cy-gnu-toolchain. riscv32-unknown-elf-gcc: error: unrecognized command line option '-m32'; I'm running on Centos 7, fwiw. |
Same issue here on OSX |
I think PULPino supports only the older toolchain found here at the moment: https://github.com/pulp-platform/ri5cy_gnu_toolchain ; we use newer toolchains on PULPissimo and OPENPULP; @haugoug can you confirm this? @generalbrus note that OS X is not a supported target anyways |
Yes indeed for now, pulpino must still be used with the old toolchain. We will probably update it in the coming months. |
I am running into the same issue with -m32. I tried to build the ri5cy_gnu_toolchain, but I get an error when I run "make", and now I am stuck... cfns.gperf: In function ‘const char* libc_name_p(const char*, unsigned int)’: |
I have had the same error and have fixed it since. I'll paste my instructions on how to compile the FPGA variant of pulpino on a fresh Ubuntu 18.04 install. It's quite a read, but has worked on two fresh installs for me. You might find some helpful steps there. All in all, do try to follow the instructions from the repo's README, but when you encounter an error, check whether my instructions help. Dependencies:
Toolchain:
Vivado:
export XILINXD_LICENSE_FILE=your_path_to_the_downloaded_license_file export PATH=$PATH:/opt/Xilinx/Vivado/2015.1/bin export PATH=$PATH:/opt/Xilinx/SDK/2015.1/gnu/arm/lin/bin export PATH=$PATH:/opt/Xilinx/SDK/2015.1/bin export PATH=$PATH:<path to where the binaries of the ri5cy toolchain reside, for example /opt/ri5cy_gnu_toolchain/install/bin>
This (re)loads the environment variables from .bashrc Pulpino:
Putting everything on an SD card:
Running:
If you want to compile a different instruction set for the pulpino platform, additional spets will need to be added before steps 9 and 20. Also, steps 26 and 27 will have to differ. Read the readmes in pulpino, pulpino/fpga, pulpino/sw and ri5cy_gnu_toolchain. |
@pweiss2 I had the same issue and solved it by applying the changes of this PR pulp-platform/ri5cy_gnu_toolchain#4 |
The comment from @pweiss2 and the two responses to that do not appear to be related to this issue. |
@paultoth you are right. To clarify: pulp-riscv-gnu-toolchain is not currently supported for PULPino. |
Hello @FrancescoConti @haugoug is it still the case that pulp-riscv-gnu-toolchain is not currently supported for PULPino. |
We do not really support PULPino any more. If you want an up-to-date minimal system for RISC-V cores, my recommendation is X-HEEP from EPFL: https://github.com/esl-epfl/x-heep which can be thought as a "spiritual successor" to PULPino. |
Thanks for your reply @FrancescoConti really appreciate it. I am student and i think it is a bit too late for me to switch my riscv processor. If you dont mind could you spare some time and have a look at this #408 i am facing some issue with floats . would really appreciate your advice |
On a 64 bit Ubuntu I've compiled the toolchain as instructed in its repo:
When preparing to compile helloworld with
I get an error
Did I do something wrong?
The text was updated successfully, but these errors were encountered: