Hi I've been trying to build a cross-compiler for sparc but havent got much luck :( I've configure GCC with: ../gcc-4.4.3/configure --target=sparc-edisoft-rtems --with-gnu-as --with-gnu-as --without-newlib --disable-bootstrap --verbose --enable-threads --enable-languages="c" --prefix=/rtems/mcoutinho/ri/gcc-without-newlib/prefix The output of the compilation is the following: /rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/./gcc/xgcc -B/rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/./gcc/ -B/rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/bin/ -B/rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/lib/ -isystem /rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/include -isystem /rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/sys-includ e -g -O2 -msoft-float -O2 -I../../gcc-4.4.3/gcc/../newlib/libc/sys/rtems/include -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../gcc-4.4.3/libgcc -I../../../../gcc-4.4.3/libgcc/. -I../../../../gcc-4.4.3/libgcc/../gcc -I../../../../gcc-4.4.3/libgcc/../include -DHAVE_CC_TLS -o _bswapsi2.o -MT _bswapsi2.o -MD -MP -MF _bswapsi2.dep -DL_bswapsi2 -c ../../../../gcc-4.4.3/libgcc/../gcc/libgcc2.c \ /rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/./gcc/xgcc -B/rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/./gcc/ -B/rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/bin/ -B/rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/lib/ -isystem /rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/include -isystem /rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/sys-includ e -g -O2 -msoft-float -O2 -I../../gcc-4.4.3/gcc/../newlib/libc/sys/rtems/include -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../gcc-4.4.3/libgcc -I../../../../gcc-4.4.3/libgcc/. -I../../../../gcc-4.4.3/libgcc/../gcc -I../../../../gcc-4.4.3/libgcc/../include -DHAVE_CC_TLS -o _bswapdi2.o -MT _bswapdi2.o -MD -MP -MF _bswapdi2.dep -DL_bswapdi2 -c ../../../../gcc-4.4.3/libgcc/../gcc/libgcc2.c \ /rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/./gcc/xgcc -B/rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/./gcc/ -B/rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/bin/ -B/rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/lib/ -isystem /rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/include -isystem /rtems/mcoutinho/ri/gcc-without-newlib/prefix/sparc-edisoft-rtems/sys-includ e -g -O2 -msoft-float -O2 -I../../gcc-4.4.3/gcc/../newlib/libc/sys/rtems/include -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../.././gcc -I../../../../gcc-4.4.3/libgcc -I../../../../gcc-4.4.3/libgcc/. -I../../../../gcc-4.4.3/libgcc/../gcc -I../../../../gcc-4.4.3/libgcc/../include -DHAVE_CC_TLS -o _fixunssfsi.o -MT _fixunssfsi.o -MD -MP -MF _fixunssfsi.dep -DL_fixunssfsi -c ../../../../gcc-4.4.3/libgcc/../gcc/libgcc2.c \ In file included from /rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/./gcc/include-fixed/sysli mits.h:7, from /rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/./gcc/include-fixed/limit s.h:11, from ../../../../gcc-4.4.3/libgcc/../gcc/libgcc2.c:1693: /rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/./gcc/include-fixed/limit s.h:122:61: error: no include path in which to search for limits.h make[4]: *** [_fixunssfsi.o] Error 1 make[4]: Leaving directory `/rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/sparc-edisoft-rtems/soft /libgcc' make[3]: *** [multi-do] Error 1 make[3]: Leaving directory `/rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/sparc-edisoft-rtems/libg cc' make[2]: *** [all-multi] Error 2 make[2]: Leaving directory `/rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc/sparc-edisoft-rtems/libg cc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/rtems/mcoutinho/ri/gcc-without-newlib/tools/b-gcc' make: *** [all] Error 2 So when the flag -DL_fixunssfsi is passed to compile libgcc2.c, the system will try to find the limits.h file which is part of the newlib, but I don't want newlib. I've tried several different configurations and versions of GCC. As far as I know, versions GCC-3.X work, but GCC-4.X don't :(. My goal is to have the most basic cross-compiler possible, not dependent on any system or library that will use it. I also would like not to have to apply a patch to GCC in order to do this. Is this possible? Tools versions: gcc-4.4.3 binutils-2.20 Many thanks Kind regards Manuel Coutinho Junior Programmer - Space EDISOFT, S.A. Rua Quinta dos Medronheiros - Lazarim Apartado 382 Monte de Caparica 2826-801 Caparica Portugal