Hi,
Thanks for the reply.  I do have libgcc_eh.a in my Debian system, as part of my 
gcc package, with no need for other packages.  But the goal of LFS is to 
isolate itself from the host system as much as possible right from the 
beginning.  Since I built and installed the gcc source into /tools before I 
built glibc, I figured it would use those libraries, no?  I would think it 
would be looking for /tools/lib/gcc/i686-pc-linux-gnu/4.3.2/libgcc_eh.a.  If 
so, then either the gcc build was wrong for not building this library, or the 
glibc build is wrong for depending on this library.

Bill

--- On Mon, 12/15/08, rblythe <[email protected]> wrote:

> From: rblythe <[email protected]>
> Subject: Re: glibc problems
> To: "LFS Support List" <[email protected]>
> Date: Monday, December 15, 2008, 7:19 PM
> Bill Mason wrote:
> > Hi,
> > Glibc-2.8-20080929 is no longer available on the Red
> Hat server mentioned in the LFS book,
> ftp://sources.redhat.com/pub/glibc/snapshots/glibc-2.8-20080929.tar.bz2.
>  Should this be added to the errata, with an alternate
> location provided?  I'm a little surprised that LFS 6.4
> is using a CVS snapshot of glibc, but I'm sure there was
> a good reason for it.
> >
> > The package I got was from the mirror at Oregon State
> University which hadn't been updated yet (it's gone
> now).  I'm having a problem compiling it, so it is
> possible that I don't have the right one.  I saw that
> someone else recently had a problem with it, but mine is
> different.  It's complaining that it's missing the
> gcc_eh library.  The details of my problem are below.
> >
> > LFS version 6.4, section 5.7
> > Host system Debian 4.0
> >
> > gcc -B/tools/bin/ -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 `gcc -B/tools/bin/
> --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 -lgcc -lgcc_eh
> `gcc
> >  -B/tools/bin/ --print-file-name=crtend.o`
> /mnt/lfs/sources/glibc-build/csu/crtn.o
> > /tools/bin/ld: cannot find -lgcc_eh
> > collect2: ld returned 1 exit status
> > make[2]: ***
> [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1
> > make[2]: Leaving directory
> `/mnt/lfs/sources/glibc-2.8-20080929/iconv'
> > make[1]: *** [iconv/others] Error 2
> > make[1]: Leaving directory
> `/mnt/lfs/sources/glibc-2.8-20080929'
> > make: *** [all] Error 2
> >
> > I grepped this directory as well as that of gcc-build
> and gcc-4.3.2 for "gcc_eh".  There is no trace of
> it in the gcc directories.  It's mentioned in several
> places in the glibc directories, including the ChangeLog
> which says that the dependency was added a few years ago.
> >
> > Can anyone help with this?
> >
> > Thank you,
> > Bill
> >
> >
> >       
> >   
> On my LFS system, the gcc_eh file is actually called
> *libgcc_eh.a* and 
> is located in /usr/lib/gcc/i686-pc-linux-gnu/4.2.2.  I am
> wondering 
> because you are using debian as your host build system if
> you should 
> check whether you have all of the available gcc packages
> installed 
> (example gcc-4.1-base, gcc-4.1, libgcc32-1, etc.). This is
> just a shot 
> in the dark as I don't use debian, but when I was using
> Mepis (a debian 
> derivative) I seem to remember having to install other gcc
> files in 
> order to build LFS correctly.
> I got this information from
> http://packages.debian.org/etch/gcc-4.1 but 
> I am not sure if it will solve your problem.
> 
> rblythe
> 
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page


      
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to