LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-07-2010, 01:37 PM   #1
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Error compiling Glibc 2.11.1 (Chapter 6.9)


Hello all,

I decided to build LFS (6.6) on an old spare laptop, running the LFS LiveDVD. Everything up to now has gone great, no problems apart from the normal typing errors and subsequent head scratching. But now I'm running into one that I cannot find a solution for.

I'm in my chroot environment, running as root, all is going well as shown after:
Code:
cp -v ../glibc-2.11.1/iconvdata/gconv-modules iconvdata
make -k check 2>&1 | tee glibc-check-log
grep Error glibc-check-log
in the error log:
Code:
root:/sources/glibc-build# grep Error glibc-check-log 
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
Then when running the make install I get the following after quite some time:
Code:
/tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
Execution of gcc failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
  Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
  Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,
  libm.so should point to the newly installed glibc file - and there should be
  only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [install] Error 1
make[1]: Leaving directory `/sources/glibc-2.11.1'
make: *** [install] Error 2
As far as I can tell, everything is in place, no weird things, but I cannot get past this point. Can anyone shed some light please?

Kind regards,

Eric
 
Old 05-07-2010, 03:04 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by EricTRA View Post
Code:
root:/sources/glibc-build# grep Error glibc-check-log 
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
Then when running the make install I get the following after quite some time:
Code:
/tools/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: : No such file: No such file or directory
collect2: ld returned 1 exit status
Execution of gcc failed!
The script has found some problems with your installation!
Please read the FAQ and the README file and check the following:
- Did you change the gcc specs file (necessary after upgrading from
  Linux libc5)?
- Are there any symbolic links of the form libXXX.so to old libraries?
  Links like libm.so -> libm.so.5 (where libm.so.5 is an old library) are wrong,
  libm.so should point to the newly installed glibc file - and there should be
  only one such link (check e.g. /lib and /usr/lib)
You should restart this script from your build directory after you've
fixed all problems!
Btw. the script doesn't work if you're installing GNU libc not as your
primary library!
make[1]: *** [install] Error 1
make[1]: Leaving directory `/sources/glibc-2.11.1'
make: *** [install] Error 2
As far as I can tell, everything is in place, no weird things, but I cannot get past this point. Can anyone shed some light please?

Kind regards,

Eric
Hi,

according to the book the error in the test suite is non-critical and can be ignored.
When you issued 'make' everything was fine? It finished without complaining?
Also, could you post the output of the ./configure command and maybe the make log (as attachment) ?
Also post the result of
Code:
gcc -dumpspec
ls -l /tools/i686-pc-linux-gnu/bin/
 
Old 05-08-2010, 02:11 AM   #3
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,805
Blog Entries: 1

Original Poster
Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi crts,

This morning I got up, cleaned up where I left of yesterday, and started the Glibc part from scratch. And guess what!!?? This time it compiled correctly. I guess I made, yet another, typo compiling yesterday.

Thanks for your reply though, it's much appreciated.

Kind regards,

Eric
 
Old 03-27-2013, 02:21 AM   #4
unis1988
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
errors in the scripts

I got the same problem a few days ago , and fortunately I found the reason . Just a redundant blank space. To compile the Glibc 2.11.1 , we need to modify the test-installation.pl file ! However , in the sed command there is a long string, if we do not pay enough attention to the blank space in the string ,errors occurs.

Code:
-Wl,-dynamic-linker=$DL
In the code above there is no blank space in front of and behind the comma. I just got a redundant blank space behind the comma, then the same errors occured.

Hope useful~
 
Old 03-27-2013, 02:41 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
An option would be to copy and paste these
types of commands
 
  


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
glibc chapter 6.9 error jol123 Linux From Scratch 1 03-28-2007 04:03 PM
LFS 6.0 Chapter 6: compiling glibc problem Sakur Linux From Scratch 3 08-13-2005 11:39 PM
Error cross-compiling glibc, chapter 5 donbellioni Linux From Scratch 2 09-17-2004 02:12 PM
glibc-2.3.3 in chapter 6 error znif Linux From Scratch 11 06-28-2004 07:15 AM
Chapter 6 Glibc error in configure MasterC Linux From Scratch 6 07-17-2003 01:17 PM


All times are GMT -5. The time now is 07:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration