Page 1 of 1

Problem compiling micropython on ubuntu

Posted: Fri Apr 05, 2019 6:49 pm
by ExXec
Hey,

I get the error

Code: Select all

arm-none-eabi-ld: error: uPY_TM4C123.axf uses VFP register arguments, /usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/lib/libm.a(lib_a-s_copysign.o) does not
when trying to compile micropython on my machine.
I run kubuntu latest version.

I read that this happens, because the libm is compiled as softfp and the rest as hardfp
Can I recompile the libm to work or are there simpler solutions to this?

On my windows machine, where I use WSL to compile the project, it works perfectly fine.

Thanks a lot!
-ExXec

Re: Problem compiling micropython on ubuntu

Posted: Fri Apr 05, 2019 7:36 pm
by ExXec
I fixed it with another toolchain version:

Code: Select all

sudo apt remove gcc-arm-none-eabi binutils-arm-none-eabi

Code: Select all

sudo apt install gcc-arm-embedded

Re: Problem compiling micropython on ubuntu

Posted: Fri Apr 05, 2019 7:58 pm
by ThomasChr
See also: https://github.com/micropython/micropython/issues/4670

Looks like same problem and same solution :-)