LinuxQuestions.org
Visit Jeremy's Blog.
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 05-30-2016, 01:19 AM   #1
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Rep: Reputation: Disabled
LFS 7.9 - Unable to 'make test' glibc-2.23 (Chapter 6.9)


I've been having the same issue using 3 different distress, my latest one being Salix 14.01 LXDE Live x86_amd64.

In a nutshell it asks for libraries that resides under /tool/lib that it can't find inside other directories. Here's an example.

make[2]: *** No rule to make target '/sources/glibc-2.23/build/rt/librt.a', needed by '/sources/glibc-2.23/build/conform/symlist-stdlibs-ISO'. Stop.
make[2]: Leaving directory '/sources/glibc-2.23/conform'
Makefile:214: recipe for target 'conform/tests' failed
make[1]: *** [conform/tests] Error 2
make[1]: Leaving directory '/sources/glibc-2.23'
Makefile:9: recipe for target 'check' failed
make: *** [check] Error 2

... libra.a does exist under /tools/lib. So I ended up doing a symlink like this to resolve it:

ln -s /tools/lib/librt.a /sources/glibc-2.23/build/rt/librt.a

Basically this happened for a total of 5 times. So I had to do those as well...

ln -s /tools/lib/librt.so /sources/glibc-2.23/build/rt/librt.so
ln -s /tools/lib/libmvec.so.1 /sources/glibc-2.23/build/mathvec/libmvec.so.1
ln -s /tools/lib/libpthread.so /sources/glibc-2.23/build/nptl/libpthread.so
ln -s /tools/lib/libdl.so.2 /sources/glibc-2.23/build/dlfcn/libdl.so.2

... And at the end it compiled successfully.

Did I do something wrong that make this not finding the right libraries at the right place?

Thx....
 
Old 05-30-2016, 02:19 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I would say something went wrong at ch 6.6 The 1st part, If you read the discription "The purpose of each link".
 
Old 05-30-2016, 08:56 AM   #3
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
... Thx for your answer.

I checked /usr/lib and this is what i have....

/usr/lib/libmvec.so.1 doesn't exists
/usr/lib/libdl.so.2 doesn't exist...
/usr/lib/librt.so exists, but it's a symbolic link to points to ../../lib/librt.so.1 but that file doesn't exists.
/usr/lib/libpthread.so exists. (???)

If you check chapter 6.6, there is no mention to have those files copied over.

I checked more the logs, and i saw this....

/bin/ginstall -c /mnt/lfs/sources/glibc-2.23/build/nptl/libpthread.so /tools/lib/libpthread-2.23.so.new

first.... I only have in /bin those files: bash, cat, echo, pwd, sh and stty. I did a find / -name 'ginstall' and found nothing. Should i create a symlink /bin/ginstall that points to /tools/bin/install (which actually exists)?

Second, why is it /mnt/lfs/sources/.../? Isn't supposed to be straight /sources/.../?

The /tools/lib portion is right though... Weird.

Is that the problem?

Thx...

Last edited by Mordillo98; 05-30-2016 at 09:06 AM.
 
Old 05-30-2016, 10:39 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
If you are seeing /mnt/lfs anything your not in the chroot enviroment
 
Old 05-30-2016, 12:06 PM   #5
Mordillo98
LQ Newbie
 
Registered: May 2012
Posts: 27

Original Poster
Rep: Reputation: Disabled
... That's the thing. I am in it.

Oh well. My symlinks did the job and the others are compiling fine so... Case closed.

Thx.
 
  


Reply



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
[SOLVED] LFS 7.3 - make install errors for Glibc-2.17 in Chapter 5.7 Luc1f3r Linux From Scratch 9 05-03-2016 06:36 AM
LFS 6.7 Chapter 6 Glibc Make -k errors karm Linux From Scratch 3 11-10-2010 11:13 AM
Errors when running Glibc-2.3.6 test suite (reference: LFS 6.2 chapter 6.9) PingFloyd Linux From Scratch 2 02-02-2007 09:43 PM
LFS 6-1: Glibc Test Suite Fails at end with 2 errors in Chapter 6 TGWDNGHN Linux From Scratch 1 07-26-2005 12:23 PM
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM

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

All times are GMT -5. The time now is 02:00 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