LinuxQuestions.org
Review your favorite Linux distribution.
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 04-15-2010, 12:24 PM   #1
liptonik
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Rep: Reputation: 0
Error making Glibc-2.11.1


I have this error:

/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../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

LFS 6.6 at Glibc-2.11.1
OS LFS livecd (lfslivecd-x86-6.3-r2145)
gcc 4.4.3
 
Old 04-15-2010, 03:02 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by liptonik View Post
I have this error:

/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../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

LFS 6.6 at Glibc-2.11.1
OS LFS livecd (lfslivecd-x86-6.3-r2145)
gcc 4.4.3
See if this post helps you:
http://www.linuxquestions.org/questi...8/#post3840941

The commands have to be issued at the end of chapter 5.5.
 
Old 04-19-2010, 03:54 AM   #3
liptonik
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Original Poster
Rep: Reputation: 0
i have next error making gcc PASS 2:

make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/libdecnumber'
make[2]: Entering directory '/mnt/lfs/sources/gcc-build/gcc'
make[2]: ***No rule to make target 'all'. Stop.
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2

i think i did something wrong :/ but this test (before making binutils pass2):

Quote:
echo 'main(){}' > dummy.c
$LFS_TGT-gcc -B/tools/lib dummy.c
readelf -l a.out | grep ': /tools'
has given correct output.

i don't know if a need to type this:
Quote:
case $(uname -m) in
x86_64)
for file in $(find gcc/config -name t-linux64) ; do \
cp -v $file{,.orig}
sed '/MULTILIB_OSDIRNAMES/d' $file.orig > $file
done
;;
esac
because, there is said that "On x86_64, unsetting the multilib spec for GCC ensures that it won't attempt to link against libraries on the host:"
and i don't know if i had x86_64. I had Intel Core 2 Duo P8400.

excuse me my poor english :/

Last edited by liptonik; 04-19-2010 at 05:10 AM.
 
Old 04-19-2010, 05:21 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally Posted by liptonik View Post
i have next error making gcc PASS 2:

make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/libdecnumber'
make[2]: Entering directory '/mnt/lfs/sources/gcc-build/gcc'
make[2]: ***No rule to make target 'all'. Stop.
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
This is the aftermath. The error happened in the lines before this. We don't know what went wrong because you haven't shown us the error.

Quote:
Originally Posted by liptonik View Post
i don't know if a need to type this:


because, there is said that "On x86_64, unsetting the multilib spec for GCC ensures that it won't attempt to link against libraries on the host:"
and i don't know if i had x86_64. I had Intel Core 2 Duo P8400.
It's safer to copy and paste from firefox. Typing can lead to typos. If you don't know whether your system is x86_64 or i686 use the command uname -m

Just copy and paste the commands from the book. It will do the right thing based on the output of uname -m
 
Old 04-19-2010, 06:47 AM   #5
liptonik
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Original Poster
Rep: Reputation: 0
ok, i have coped with this error, but have next configuring Expect:

checking for Tcl private headers... configure: error /tools/include direcotry doesn't contain private headers

and i don't know what did wrong
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 : glibc invalid pointer error gpfdez83 Programming 3 11-04-2009 02:48 PM
i have an error when i try to install Glibc(5.7. Glibc-2.8-20080929, Version 6.4) robineecc1 Linux From Scratch 0 12-14-2008 11:45 AM
LFS 6.2 Section 5.6 - Error making glibc-2.3.6 dustin_wielenga Linux From Scratch 3 01-05-2008 02:01 PM
Problems making glibc-2.4 magesing Linux From Scratch 8 05-31-2006 04:11 AM
problem making glibc. netstv Linux - Software 0 10-18-2004 04:29 PM

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

All times are GMT -5. The time now is 03:41 AM.

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