Skip to content
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

RISC-V compilation fails #29

Open
mwyborski opened this issue Oct 27, 2017 · 2 comments
Open

RISC-V compilation fails #29

mwyborski opened this issue Oct 27, 2017 · 2 comments

Comments

@mwyborski
Copy link

mwyborski commented Oct 27, 2017

Hi!

The board manager already downloads gcc-7, but the compiler settings in platform.txt seem to be outdated. Right now it is not possible to compile for RISC-V.
image

I tried with -march=rv32i -mabi=ilp32 but i get still errors. If gcc-7 is unstable maybe it is better to revert to the previous toolchain?

Here are the compiler options for risc-v
https://gcc.gnu.org/onlinedocs/gcc/RISC-V-Options.html

@amassou2017
Copy link

Hi!
Try the following options: -march=rv32i -mabi=ilp32 -mno-fdiv -mno-div instead of -m32 -msoft-float -mno-muldiv in both c flags and ccp flags.
it works for me

@mwyborski
Copy link
Author

@amassou2017 thank you very much! I will try it with the additional flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants