Hi, every one, I searched the previous posts in the mailing list with "gcc bootstrap error" search keys before sending this message. WWW google search didn't help neither.
I tried to compile and bootstrap GCC 4.1.2 like written in the 6.3 stable book. First I got this final output before quiting: /tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc /tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc /tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc /tools/x86_64-unknown-linux-gnu/bin/ld: cannot find -lc collect2: ld returned 1 exit status make[3]: *** [32/libgcc_s.so] Error 1 make[3]: Leaving directory `/mnt/LFS/sources/gcc-build/gcc' make[2]: *** [stmp-multilib] Error 2 make[2]: Leaving directory `/mnt/LFS/sources/gcc-build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/mnt/LFS/sources/gcc-build/gcc' make: *** [bootstrap] Error 2 Then I searched the mailing list. Someone already had reported this error. The proposed solution would be to re-compile after cleaning the gcc-build/ directory with the --disable-shared option instead of the --enable-shared. I give it a try but now I have this output before quiting: checking whether make sets $(MAKE)... yes checking for --enable-version-specific-runtime-libs... no checking whether to enable maintainer-specific portions of Makefiles... no checking for x86_64-unknown-linux-gnu-gcc... /mnt/LFS/sources/gcc-build/./gcc/xgcc -B/mnt/LFS/sources/gcc-build/./gcc/ -B/tools/x86_64-unknown-linux-gnu/bin/ -B/tools/x86_64-unknown-linux-gnu/lib/ -isystem /tools/x86_64-unknown-linux-gnu/include -isystem /tools/x86_64-unknown-linux-gnu/sys-include -m32 checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. make[2]: *** [configure-target-libmudflap] Error 1 make[2]: Leaving directory `/mnt/LFS/sources/gcc-build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/mnt/LFS/sources/gcc-build' make: *** [bootstrap] Error 2 I checked every step in the book twice, everything seems to be ok. Can someone help me, please? My host distro is Gentoo,running on an amd athlon 64, I checked the requirements versions: bash, version 3.1.17(1)-release Binutils: version 2.16.1 bison (GNU Bison) 2.2 bzip2, Version 1.0.3, 15-Feb-2005. Coreutils: 6.4 diff (GNU diffutils) 2.8.7 GNU find version 4.3.2 GNU Awk 3.1.5 gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3) GNU C Library development release version 2.4, grep (GNU grep) 2.5.1 gzip 1.3.5 Linux version 2.6.20-gentoo ([EMAIL PROTECTED]) (gcc version 4.1.1 (Gentoo 4.1.1-r3)) #1 Sat Feb 24 18:00:15 CET 2007 GNU Make 3.81 patch 2.5.9 GNU sed version 4.1.5 tar (GNU tar) 1.16 Thanks. A.D. -- Eat meat! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
