LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-09-2014, 06:14 PM   #1
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Rep: Reputation: 31
attempt to open ... libgcc.so failed


Still plodding slowly through LFS Version 7.4.

I've completed all the steps in Section 6.10 Adjusting the Toolchain. All of the tests described in pages 98-99 are successful and out of curiosity I tried and succeeded in compiling and running a Hello World.

But when I looked through the contents of dummy.log I noticed that some attempts to open library files did fail. I ran
Code:
grep failed dummy.log
and here is the output:
Code:
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc.so failed
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc_s.so failed
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc_s.a failed
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libc.so failed
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libc.a failed
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc.so failed
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc_s.so failed
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc_s.a failed
On the other hand when I "grep succeeded dummy.log" I get
Code:
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc.a succeeded
attempt to open /usr/lib/../lib64/libgcc_s.so succeeded
attempt to open /usr/lib/../lib64/libc.so succeeded
attempt to open /lib64/libc.so.6 succeeded
attempt to open /usr/lib64/libc_nonshared.a succeeded
attempt to open /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc.a succeeded
attempt to open /usr/lib/../lib64/libgcc_s.so succeeded
(along with various other unrelated "succeeded" lines).

So, can I assume that all is well and these "fails" can be disregarded?
 
Old 02-09-2014, 08:36 PM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
I think all that stuff is okay.

I built a 32-bit system, but I have equivalent results for your grep failed dummy.log test even now in my working BLFS system (except for the '/tools' part, of course).

For your second homemade test, the second line succeeded because of the symlink in /usr/lib created back in section 6.6 (I think). The third, fourth, and fifth lines succeeded because you just finished installing Glibc in /usr/lib. The sixth line is the same as the second line.

Since all of the checks in the book were correct, I would proceed on. That's my opinion anyway.
 
1 members found this post helpful.
Old 02-09-2014, 09:46 PM   #3
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Original Poster
Rep: Reputation: 31
Thanks. It's reassuring to know that you have similar results on a working system.

I realize now that all of those libgcc lines aren't really relevant at this stage anyway since those libraries are part of gcc, not glibc. I just wonder why the linker is looking in /tools/lib/gcc/x86_64-unknown-linux-gnu/ for libc libraries. Maybe it will become clear later on.
 
  


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
Failed attempt in installing Ubuntu lakemanitou1 Linux - Newbie 2 02-22-2012 03:11 PM
ln -vs libgcc.a `gcc -print-libgcc-file-name | ......file exists jpeters Linux From Scratch 3 03-26-2009 09:40 PM
Failed attempt at 2.6.10 icpsvt Slackware 6 02-08-2005 08:25 PM
every attempt has failed ed_norton Linux - Newbie 3 04-03-2004 04:59 PM
Switch to Slackware 9.0 attempt 1: FAILED Ekim Gram Slackware 8 06-02-2003 02:15 PM

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

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