On 18/05/12 22:07, Giovanni wrote: > Hi, > > I trying to compile cross compiler GCC 4.5.1 released by Microchip for > targer PIC32MX. > My linux system is x86 and glibc 2.9. > > This is my configure command line extracted by binary of microchip > ../gcc/configure --target=pic32mx --program-prefix=xc32- > --disable-threads --disable-libmudflap --disable-libssp > --disable-libstdcxx-pch --disable-hosted-libstdcxx > --enable-sgxx-sde-multilibs --disable-threads --with-gnu-as > --with-gnu-ld --disable-sim --disable-bootstrap --enable-obsolete > --disable-__cxa_atexit --disable-libfortran --enable-languages=c > --disable-shared --with-newlib --disable-nls > --prefix=/opt/microchip/xc32 --disable-libgomp --without-headers > --disable-libffi --enable-gofast --enable-poison-system-directories > --libexecdir=/opt/microchip/xc32/pic32mx/bin --with-dwarf2 > --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic > -lm' --with-libelf --enable-lto --with-gmp --with-ppl --with-cloog > --with-bugurl=http://www.microchip.com/support > > But I can't compile it. > > The file stddef.h is not missing. > > /tmp/XC32-v100-src> find . -name stddef.h -ls > 1950781 4 -rw-r--r-- 1 user users 1311 Jan 19 17:59 > ./gcc/libstdc++-v3/include/c_compatibility/stddef.h > 2038638 16 -rw-r--r-- 1 user users 12542 Jan 19 18:03 > ./gcc/gcc/ginclude/stddef.h Those folders are not howver in the include path used by the call below: > /tmp/XC32-v100-src/buildgcc/./gcc/xgcc > -B/tmp/XC32-v100-src/buildgcc/./gcc/ -B/opt/microchip/xc32/pic32mx/bin/ > -B/opt/microchip/xc32/pic32mx/lib/ -isystem > /opt/microchip/xc32/pic32mx/include -isystem > /opt/microchip/xc32/pic32mx/sys-include -g -O2 -Os -O2 -g -O2 > -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings > -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes > -Wold-style-definition -isystem ./include -G 0 > -fno-optimize-sibling-calls -mcode-xonly -Os -DIN_LIBGCC2 > -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../.././gcc > -I../../../../gcc/libgcc -I../../../../gcc/libgcc/. > -I../../../../gcc/libgcc/../gcc -I../../../../gcc/libgcc/../include > -DHAVE_CC_TLS -DUSE_EMUTLS -o _m16stubdc10.o -MT _m16stubdc10.o -MD -MP > -MF _m16stubdc10.dep -DL_m16stubdc10 -xassembler-with-cpp \ > -c ../../../../gcc/libgcc/../gcc/config/mips/mips16.S > /tmp/XC32-v100-src/buildgcc/./gcc/xgcc > -B/tmp/XC32-v100-src/buildgcc/./gcc/ -B/opt/microchip/xc32/pic32mx/bin/ > -B/opt/microchip/xc32/pic32mx/lib/ -isystem > /opt/microchip/xc32/pic32mx/include -isystem > /opt/microchip/xc32/pic32mx/sys-include -g -O2 -Os -O2 -g -O2 > -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings > -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes > -Wold-style-definition -isystem ./include -G 0 > -fno-optimize-sibling-calls -mcode-xonly -Os -DIN_LIBGCC2 > -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../.././gcc > -I../../../../gcc/libgcc -I../../../../gcc/libgcc/. > -I../../../../gcc/libgcc/../gcc -I../../../../gcc/libgcc/../include > -DHAVE_CC_TLS -DUSE_EMUTLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF > _muldi3.dep -DL_muldi3 -c ../../../../gcc/libgcc/../gcc/libgcc2.c \ > > In file included from ../../../../gcc/libgcc/../gcc/libgcc2.c:29:0: > ../../../../gcc/libgcc/../gcc/tsystem.h:44:20: fatal error: stddef.h: No > such file or directory > compilation terminated. > make[4]: *** [_muldi3.o] Error 1 > make[4]: Leaving directory `/tmp/XC32-v100-src/buildgcc/pic32mx/size/libgcc' > make[3]: *** [multi-do] Error 1 > make[3]: Leaving directory `/tmp/XC32-v100-src/buildgcc/pic32mx/libgcc' > make[2]: *** [all-multi] Error 2 > make[2]: Leaving directory `/tmp/XC32-v100-src/buildgcc/pic32mx/libgcc' > make[1]: *** [all-target-libgcc] Error 2 > make[1]: Leaving directory `/tmp/XC32-v100-src/buildgcc' > make: *** [all] Error 2 > > Thank you > Giovanni > >