[lfs-support] Another problem: Glibc in Chapter 5.7

Andrew Benton b3nton at gmail.com
Thu Jan 26 15:47:31 PST 2012


On Thu, 26 Jan 2012 20:35:19 +0100
"Mario Meier" <beanme at gmx.at> wrote:

> Dear Support,
> 
> I have another problem: Building Glibc (Chapter 5.7) fails during make.
> 
> This time, I have copied the output immediately:
> 
> mv -f /mnt/lfs/sources/glibc-build/libc.so.6.new /mnt/lfs/sources/glibc-build/libc.so.6
> i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -o /mnt/lfs/sources/glibc-build/iconv/iconvconfig  -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both /mnt/lfs/sources/glibc-build/csu/crt1.o /mnt/lfs/sources/glibc-build/csu/crti.o `i686-pc-linux-gnu-gcc  --print-file-name=crtbegin.o` /mnt/lfs/sources/glibc-build/iconv/iconvconfig.o /mnt/lfs/sources/glibc-build/iconv/strtab.o /mnt/lfs/sources/glibc-build/iconv/xmalloc.o /mnt/lfs/sources/glibc-build/iconv/hash-string.o  -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl /mnt/lfs/sources/glibc-build/libc.so.6 /mnt/lfs/sources/glibc-build/libc_nonshared.a  /mnt/lfs/sources/glibc-build/elf/ld.
>  so  -lgcc -lgcc_eh  `i686-pc-linux-gnu-gcc  --print-file-name=crtend.o` /mnt/lfs/sources/glibc-build/csu/crtn.o
> /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgcc_eh

It seems something went wrong when you installed gcc. The first pass of
gcc should be calling itself i686-lfs-linux-gnu, not i686-pc-linux-gnu.
ld cannot find libgcc_eh.a which should have been installed as part of
gcc. You gcc is b0rken. I would start again. Make sure you follow the
book carefully.

Andy



More information about the lfs-support mailing list