LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-24-2011, 03:14 PM   #1
ubuntudude12
LQ Newbie
 
Registered: Dec 2011
Posts: 20

Rep: Reputation: Disabled
Arrow 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
 
Old 12-24-2011, 03:31 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
1 members found this post helpful.
  


Reply

Tags
glibc, lfs, link



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR:During Making of glibc-build(GLIBC-2.12.1) gau190188 Linux From Scratch 1 01-04-2011 05:19 AM
Configure: error: cannot compute sizeof (long double) in glibc pass 2 irfanali Linux From Scratch 29 02-03-2010 06:48 AM
glibc 1st pass error cody0416 Linux From Scratch 13 03-01-2009 10:28 PM
LFS binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 07:06 AM
glibc error on 2nd pass buffed317 Linux From Scratch 3 09-05-2004 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration