[ELDK] Cannot compile using stdlibs with 5.8
Anatolij Gustschin
agust at denx.de
Fri Feb 12 18:04:48 CET 2016
Hello Thomas,
On Fri, 12 Feb 2016 15:04:28 +0100
Thomas Lange thomas at corelatus.se wrote:
...
>there seems to be a problem with gcc system paths
>on my system when running ELDK v5.8 on Debian/Jessie:
>
> k1:/tmp$ arm-linux-gnueabi-gcc -Wall x.c
> x.c:1:19: fatal error: stdio.h: No such file or directory
> #include <stdio.h>
>
>gcc says it is configured with
> --with-sysroot=/not/exist
>which seems weird to me.
>
>I would appreciate any hints, I am kind of stuck here.
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
$ 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.
Or just run
$CC -o x x.c
Best regards,
Anatolij
More information about the eldk
mailing list