[ELDK] Cannot compile using stdlibs with 5.8

Thomas Lange thomas at corelatus.se
Sat Feb 13 14:54:32 CET 2016


Hi Anatolij,

On 2016-02-12 18:04, Anatolij Gustschin wrote:
> you need to set the cross toolchain environment first and specify sysroot
> and ABI options, i.e.:
>
>   $ . /opt/eldk-5.8/armv7a-hf/environment-setup-armv7ahf-vfp-neon-linux-gnueabi

eldk-switch.sh should take care of that.

>   $ arm-linux-gnueabi-gcc --sysroot=/opt/eldk-5.8/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi \
>     -mfloat-abi=hard -o x x.c
>
> should work.

Yes it does. Thanks!

I got confused since behavior has changed from older ELDK versions:

----------
k1:/tmp$ eval `eldk-switch.sh -r 5.3  armv5te`
Setup for armv5te (using ELDK 5.3)
k1:/tmp$ arm-linux-gnueabi-gcc x.c
k1:/tmp$ eval `eldk-switch.sh -r 5.6 armv7a-hf`
Setup for armv7a-hf (using ELDK 5.6)
k1:/tmp$ arm-linux-gnueabi-gcc x.c
k1:/tmp$ eval `eldk-switch.sh -r 5.8 armv7a-hf`
Setup for armv7a-hf (using ELDK 5.8)
k1:/tmp$ arm-linux-gnueabi-gcc x.c
x.c:1:19: fatal error: stdio.h: No such file or directory
  #include <stdio.h>
                    ^
compilation terminated.
---------------

Regards,
/Thomas


More information about the eldk mailing list