I'm building toolchain with gcc 3.3.6, binutils 2.16.1 and glibc-2.3.5.
Firstly I installed binutils (pass 1), secondly I installed gcc (pass 1),
then I installed headers from kernel 2.6.12 and glibc with options
described in LFS-Book 6.1. After that I adjusted the toolchain and
began second pass of gcc installation. But it fails on building
libiberty while checking whether the C compiler:
checking whether the C compiler ( /mnt/toolchain/src/gcc-build/gcc/xgcc
-B/mnt/toolchain/src/gcc-build/gcc/ -B/tools/i686-pc-linux-gnu/bin/
-B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -O2
-g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
make: *** [configure-target-libiberty] Error 1
I tried to compile dummy.c:
root [gcc-build]# echo "main(){}" > dummy.c
root [gcc-build]# ./gcc/xgcc dummy.c -o dummy
/tools/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
All works ok with glibc-2.3.3. What's wrong?
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page