arduino icon indicating copy to clipboard operation
arduino copied to clipboard

RISC-V compilation fails

Open mwyborski opened this issue 7 years ago • 2 comments

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

mwyborski avatar Oct 27 '17 21:10 mwyborski

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

amassou2017 avatar Jan 03 '18 10:01 amassou2017

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

mwyborski avatar Jan 03 '18 21:01 mwyborski