LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-11-2006, 06:56 AM   #1
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Blog Entries: 11

Rep: Reputation: 36
gcc 4.0.3 first pass - 'libgcc_s.so.1'


My computer is 2.5 gigahertz, 256M ram and HD space of 10 gig. Installation of my Mandrake distribution was pretty quick. It's really old (Mandrake 7.2 - 2.2.17 kernel) I got through binutils fast (beginning of chapter 5). gcc is a problem again. The computer will 'make bootstrap' and even 'make install' but now I get this message when I try to get the version number of the new gcc. I type 'gcc --version'. And it types 'gcc: error in loading shared libraries: libgcc_s.so.1: cannot open shared object file: no such file or directory'. If I go to /tools/lib the file seems to be there. I'm still stuck on gcc-4.0.3.(!!) I think I got the config flags right... '--enable-shared' and all. Any help would be apreciated.

Last edited by radiodee1; 10-11-2006 at 06:58 AM.
 
Old 10-12-2006, 12:38 PM   #2
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
Looks like a bug in the book. It lists 2.95.3 as minimum gcc version for the host system, but versions older than 3.0 (IIRC) don't include libgcc_s.so. Because packages compiled before the "Adjusting the Toolchain" step use libraries from the host system, the library is not found. This could be solved by adding /tools/lib to /etc/ld.so.conf and then running ldconfig, but that old system is likely to cause other problems later in the build. Note that the minimum host kernel requirement of LFS is 2.6. You really should install a more modern host distro or use the LFS LiveCD as host.
 
Old 10-13-2006, 06:50 AM   #3
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
Thanks alot. I'm not sure what I'm going to do, but I appreciate the help... I may try editing ld.so.conf and see after that how long I can follow the book untill the next crisis. Quick question: ldconfig takes the name of the library as a parameter, right? you would type 'ldconfig libgcc_s.so' or do I have the command or library name wrong? Do you run ldconfig on any file that is effected after a change to ld.so.config? Thanks again.
 
Old 10-13-2006, 06:23 PM   #4
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675

Original Poster
Blog Entries: 11

Rep: Reputation: 36
Thanks again. I figured out 'ldconfig'. It takes a directory. I edited ld.so.conf and ran ldconfig and now, if the PATH is set right, I get the response I want from 'gcc --version'. Thanks.
 
  


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
Out of Memory gcc-3.4.1 -Pass 1 status1 Linux From Scratch 22 09-10-2006 05:21 PM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM
GCC Second pass fails thelonewolf Linux From Scratch 1 08-06-2005 11:07 AM
GCC second pass Mystified Linux From Scratch 6 07-28-2005 09:21 PM
GCC pass 1 error mugwump84 Linux From Scratch 2 05-10-2005 05:21 PM

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

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