When I tried to compile DirectFB, I encountered this problem arm-linux-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -I../../src -DDATADIR=\"/workspace/dm/sw/rootfs/root/usr/share/directfb-1.4.3\" -DSOPATH=\"/workspace/dm/sw/rootfs/root/usr/lib/libdirectfb-1.4.so.3\" -DMODULEDIR=\"/usr/lib/workspace/dm/sw/rootfs/root/usr/lib/directfb-1.4-0\" "-DBUILDTIME=\"2010-03-03 10:46\"" -D_REENTRANT -O3 -ffast-math -pipe -g3 -fno-inline -Wno-inline -D_GNU_SOURCE -Werror-implicit-function-declaration -MT clipboard.lo -MD -MP -MF .deps/clipboard.Tpo -c clipboard.c -fPIC -DPIC -o .libs/clipboard.o arm-none-linux-gnueabi-gcc: 10:46": No such file or directory It looked like the \" was not processed properly by the compiler as the "-DBUILDTIME=\"2010-03-03 10:46\"" was recognized as a file. To verify it I just tried gcc, gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -I../../src -DDATADIR=\"/workspace/dm/sw/rootfs/root/usr/share/directfb-1.4.3\" -DSOPATH=\"/workspace/dm/sw/rootfs/root/usr/lib/libdirectfb-1.4.so.3\" -DMODULEDIR=\"/usr/lib/workspace/dm/sw/rootfs/root/usr/lib/directfb-1.4-0\" "-DBUILDTIME=\"2010-03-03 10:46\"" -D_REENTRANT -O3 -ffast-math -pipe -g3 -fno-inline -Wno-inline -D_GNU_SOURCE -Werror-implicit-function-declaration -MT clipboard.lo -MD -MP -MF .deps/clipboard.Tpo -c clipboard.c -fPIC -DPIC -o .libs/clipboard.o gcc: clipboard.c: No such file or directory It was a dry run and showed the " has been dealt ok. Has anyone got this problem before? and any trick to work around it? PS the build spec arm-linux-gcc -v Using built-in specs. Target: arm-none-linux-gnueabi Configured with: /scratch/julian/lite-respin/linux/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2008q3-72' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/julian/lite-respin/linux/install/arm-none-linux-gn ueabi/libc --with-gmp=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-li nux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/lite-respin/linux/obj/host-libs-2008q3-72-arm-none-l inux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux -gnueabi/bin --with-build-time-tools=/scratch/julian/lite-respin/linux/install/arm-none-linux -gnueabi/bin Thread model: posix gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)
problem with arm-linux-gcc 4.3.2
The problem is the arm-linux-gcc wrapper script which is not part of the GNU Toolchain distribution. The arm-none-linux-gnueabi-gcc works correcly when invoked directly. Consider using: CC="arm-none-linux-gnueabi-gcc -march=armv4t"