I'm trying to build a mips-elf toolchain hosted on Windows using Linux as the build machine but I'm running into the following error:
mips-elf-gcc -nostdinc -isystem /tmp/gccbuild/build/gcc/./gcc/include -B/tmp/gccbuild/build/gcc/mips-elf/newlib/ -isystem /tmp/gccbuild/build/gcc/mips-elf/newlib/targ-include -isystem /tmp/gccbuild/src/gcc/newlib/libc/include -B/tmp/gccbuild/build/gcc/mips-elf/libgloss/mips -L/tmp/gccbuild/build/gcc/mips-elf/libgloss/libnosys -L/tmp/gccbuild/src/gcc/libgloss/mips -O2 -g -g -O2 -msoft-float -O2 -O2 -g -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -G 0 -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../.././gcc -I/tmp/gccbuild/src/gcc/libgcc -I/tmp/gccbuild/src/gcc/libgcc/. -I/tmp/gccbuild/src/gcc/libgcc/../gcc -I/tmp/gccbuild/src/gcc/libgcc/../include -DHAVE_CC_TLS -o _fixunssfsi.o -MT _fixunssfsi.o -MD -MP -MF _fixunssfsi.dep -DL_fixunssfsi -c /tmp/gccbuild/src/gcc/libgcc/../gcc/libgcc2.c \ -DLIBGCC2_UNITS_PER_WORD=4 In file included from /tmp/gccbuild/src/gcc/libgcc/../gcc/libgcc2.c:1697: /tmp/gccbuild/src/gcc/newlib/libc/include/limits.h:130:26: error: no include path in which to search for limits.h make[4]: *** [_fixunssfsi.o] Error 1 make[4]: Leaving directory `/tmp/gccbuild/build/gcc/mips-elf/soft-float/libgcc' make[3]: *** [multi-do] Error 1 make[3]: Leaving directory `/tmp/gccbuild/build/gcc/mips-elf/libgcc' make[2]: *** [all-multi] Error 2 make[2]: Leaving directory `/tmp/gccbuild/build/gcc/mips-elf/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/tmp/gccbuild/build/gcc' make: *** [all] Error 2 [EMAIL PROTECTED]:/tmp/toolchain/build$ What I did: - built toolchain hosted on Linux, generating mips-elf target code. Added it to the path. - ran script below - gcc 4.3.2, gmp 4.3.2, mpfr 2.3.1, newlib CVS HEAD(>16.0), binutils 2.18 - I messed around with trying to add the right include files without too much luck. The problem is that I don't really know what's wrong... - trying to build a GCC toolchain under Windows seems like a complete non-starter - tried GCC CVS HEAD - tried some other targets without luck, same result. (arm-elf, powerpc-eabi). The most recent google hits I've found: - http://sourceware.org/ml/libc-alpha/2007-03/msg00017.html # Build toolchain for $1 target set -e rm -rf $GCCBUILD/gcc #rm -rf $GCCBUILD/binutils rm -rf $GCCBUILD/gdb rm -rf $GCCBUILD/install export PATH=$GCCBUILD/install/bin:$PATH export TARGET=$1 export HOST_OPTION="--host=i586-mingw32msvc --build=i686-pc-linux-gnu" #mkdir $GCCBUILD/binutils #cd $GCCBUILD/binutils #$GCCSRC/binutils/configure $HOST_OPTION --enable-multilib --enable-interwork --target=$TARGET --prefix=$GCCBUILD/install #make #make install #cd .. mkdir $GCCBUILD/gcc cd $GCCBUILD/gcc $GCCSRC/gcc/configure $HOST_OPTION --disable-libssp --target=$TARGET --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --disable-shared --enable-newlib -v --enable-multilib --disable-threads --enable-sjlj-exceptions --enable-libstdcxx-allocator=malloc --prefix=$GCCBUILD/install --enable-interwork --with-gmp=$GCCBUILD/gmp --with-mpfr=$GCCBUILD/mpfr make make install cd .. mkdir $GCCBUILD/gdb cd $GCCBUILD/gdb $GCCSRC/gdb/configure $HOST_OPTION --target=$TARGET --prefix=$GCCBUILD/install make make install cd .. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer