LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Glibc 2.14.1 Pass 1 build error. (http://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-2-14-1-pass-1-build-error-920382/)

ubuntudude12 12-24-2011 03:14 PM

Glibc 2.14.1 Pass 1 build error.
 
Hello,

I am using Linux From Scratch 7,0, on Ubuntu Linux 11.10. I am using 1686. I am currently trying to compile Glibc with the make command. When I run the command as the lfs user, I receive the following error:

Code:

make[2]: Entering directory `/mnt/lfs/sources/glibc-2.14.1/iconv'
i686-lfs-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-lfs-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-lfs-linux-gnu-gcc  --print-file-name=crtend.o` /mnt/lfs/sources/glibc-build/csu/crtn.o
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.6.1/../../../../i686-lfs-linux-gnu/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.14.1/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1'
make: *** [all] Error 2


druuna 12-24-2011 03:31 PM

Hi,

Assuming you are here: 5.7. Glibc-2.14.1

Did you forget this step:
Quote:

ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'`
Which is the last step of this chapter: 5.5. GCC-4.6.2 - Pass 1

Don't forget to remove the glibc source and build directory first before you retry.....

Hope this helps.


All times are GMT -5. The time now is 07:59 AM.