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

Mario Meier beanme at gmx.at
Fri Jan 27 10:30:04 PST 2012


-------- Original-Message --------
   Date: Thu, 26 Jan 2012 23:47:31 +0000
   From: Andrew Benton <b3nton at gmail.com>
   To: lfs-support at linuxfromscratch.org
   Subject: Re: [lfs-support] Another problem: Glibc in Chapter 5.7
> 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/l
>  d.
> >  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.

Why? The book says, $LFS_TGT should be the return value of config.guess of binutils, which is (in this case) 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.

Oh no...

> 
> Andy
-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



More information about the lfs-support mailing list