Hello Thomas, On Fri, 12 Feb 2016 15:04:28 +0100 Thomas Lange [email protected] 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 _______________________________________________ eldk mailing list [email protected] http://lists.denx.de/mailman/listinfo/eldk
