I am cross-compiling using the CodeSourcery toolchain for arm (arm-none-linux-gnueabi). I use -isysroot to specify in the /usr/include folder in the rootfs folder, but there are problems compiling it. I checked that the include folder is accessible.
Below is the gcc call and output. Some of the results have been deleted because I do not think this is relevant.
The preprocessor has the correct inclusion path, with the exception of the "=" character, which begins with it, and indicates that the path does not exist. Then it cannot find the header files.
How can I do this job?
willem@jacta :~/Projects/button/Debug$ arm-none-linux-gnueabi-gcc -isysroot=/home/willem/Projects/rootfs -nostdinc -I=/usr/include -O0 -g3 -Wall -c -fmessage-length=0 -v -o src/smd/button/button.o ../src/smd/button/button.c -H Using built-in specs. Target: arm-none-linux-gnueabi Configured with: [ ... stuff omitted ... ] Thread model: posix gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) COLLECT_GCC_OPTIONS='-isysroot=/home/willem/Projects/rootfs' '-nostdinc' '-I' '=/usr/include' '-O0' '-g3' '-Wall' '-c' '-fmessage-length=0' '-v' '-o' 'src/smd/button/button.o' '-H' '-march=armv5te' '-funwind-tables' /home/willem/Tools/CodeSourcery/Sourcery_G++_Lite/bin/../libexec/gcc/arm-none-linux-gnueabi/4.4.1/cc1 -quiet -nostdinc -v -I =/usr/include -iprefix /home/willem/Tools/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/ -isysroot /home/willem/Tools/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc -dD -H -isysroot=/home/willem/Projects/rootfs ../src/smd/button/button.c -quiet -dumpbase button.c -march=armv5te -auxbase-strip src/smd/button/button.o -g3 -O0 -Wall -version -fmessage-length=0 -funwind-tables -o /tmp/ccWnd3Xk.s ignoring nonexistent directory "=/home/willem/Projects/rootfs/usr/include"
Thanks!
W
source share