Problem compiling micropython on ubuntu

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
ExXec
Posts: 72
Joined: Sat Oct 20, 2018 4:02 pm

Problem compiling micropython on ubuntu

Post by ExXec » Fri Apr 05, 2019 6:49 pm

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

ExXec
Posts: 72
Joined: Sat Oct 20, 2018 4:02 pm

Re: Problem compiling micropython on ubuntu

Post by ExXec » Fri Apr 05, 2019 7:36 pm

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

ThomasChr
Posts: 120
Joined: Sat Nov 25, 2017 7:50 am

Re: Problem compiling micropython on ubuntu

Post by ThomasChr » Fri Apr 05, 2019 7:58 pm

See also: https://github.com/micropython/micropython/issues/4670

Looks like same problem and same solution :-)

Post Reply