LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Error compiling Glibc 2.11.1 (Chapter 6.9) (http://www.linuxquestions.org/questions/linux-from-scratch-13/error-compiling-glibc-2-11-1-chapter-6-9-a-806533/)

EricTRA 05-07-2010 02:37 PM

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

crts 05-07-2010 04:04 PM

Quote:

Originally Posted by EricTRA (Post 3960633)
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/


EricTRA 05-08-2010 03:11 AM

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

unis1988 03-27-2013 03:21 AM

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~

spiky0011 03-27-2013 03:41 AM

An option would be to copy and paste these
types of commands


All times are GMT -5. The time now is 08:51 AM.