Hello, I am trying to rebuild gcc, for my target (ia32/amd64 bootloader) I will not use any library whatsoever, target is ia32.
If I do: rm -f -r ../toolchain mkdir ../toolchain ../toolchain/source ../toolchain/build tar --directory ../toolchain -xjf ../binutils-2.19.1.tar.bz2 mv ../toolchain/binutils-2.19.1 ../toolchain/source/binutils tar --directory ../toolchain -xjf ../gmp-4.3.1.tar.bz2 mv ../toolchain/gmp-4.3.1 ../toolchain/source/gmp tar --directory ../toolchain -xzf ../mpfr-2.4.1.tar.gz mv ../toolchain/mpfr-2.4.1 ../toolchain/source/mpfr tar --directory ../toolchain -xjf ../ppl-0.10.2.tar.bz2 mv ../toolchain/ppl-0.10.2 ../toolchain/source/ppl tar --directory ../toolchain -xzf ../cloog-ppl-0.15.3.tar.gz #mv ../toolchain/cloog-ppl-0.15.3 ../toolchain/source/cloog-ppl mv ../toolchain/cloog-ppl ../toolchain/source/cloog-ppl tar --directory ../toolchain -xjf ../gcc-4.4.1.tar.bz2 mv -f ../toolchain/gcc-4.4.1/* ../toolchain/source rmdir ../toolchain/gcc-4.4.1 ( cd ../toolchain/build ; \ ../source/configure --prefix=/home/etienne/projet/toolchain --without-headers --without-libs --enable-languages=c --disable-multilib --disable-threads --disable-nls --disable-shared --enable-tls ; \ make bootstrap ; make install ) the install ends up with: make[6]: Entering directory `/home/etienne/projet/toolchain/build/binutils/libiberty/testsuite' make[6]: Nothing to be done for `install'. make[6]: Leaving directory `/home/etienne/projet/toolchain/build/binutils/libiberty/testsuite' make[5]: Leaving directory `/home/etienne/projet/toolchain/build/binutils/libiberty' make[4]: Nothing to be done for `install-target'. make[4]: Leaving directory `/home/etienne/projet/toolchain/build/binutils' make[3]: Leaving directory `/home/etienne/projet/toolchain/build/binutils' /bin/sh: line 3: cd: ./fixincludes: No such file or directory make[2]: *** [install-fixincludes] Error 1 make[2]: Leaving directory `/home/etienne/projet/toolchain/build' make[1]: *** [install] Error 2 make[1]: Leaving directory `/home/etienne/projet/toolchain/build' make: *** [newtoolchain] Error 2 I tried simpler configure commands like: ../source/configure --prefix=$(P_PWD)/toolchain --enable-languages=c --disable-multilib --disable-threads --enable-tls but got exactly the same error message. Is there something obviously wrong here, or something to disable fixinclude treatments? This is on a simple Debian v5 ia32 PC. If I try to compile/install binutils, then gmp, then mfpr, then gcc I get a working compiler, but it seems that it is not the "right way" to do it. Thanks for any pointers, Etienne.