LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-06-2006, 06:17 PM   #1
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 669
Blog Entries: 11

Rep: Reputation: 36
Question gcc 4.0.3 first pass - 'make bootstrap'


I'm installing gcc-4.0.3 on LFS, first pass. That's the beginning of chapter 5. I've got an old Dell L400c, Pentium 3, 400MHZ, 31M RAM. I get to 'make bootstrap' and my installation hangs after the first 2 and 1/2 hours. I can leave it there for hours and nothing happens. The last thing on the screen is a command involving 'insn-attrtab.o' - I've done this 3 times and it always stops there. If I just 'make' without the bootstrap part, the whole thing completes in a little over an hour. The kernel on the machine is 2.2.17. It's an old Mandrake distro. Is my situation hopeless? Can I get LFS to work? Can I move on to the next step without 'make bootstrap' ? What is 'insn-attrtab.o' ?
 
Old 10-06-2006, 06:49 PM   #2
krigav
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by radiodee1
I'm installing gcc-4.0.3 on LFS, first pass. That's the beginning of chapter 5. I've got an old Dell L400c, Pentium 3, 400MHZ, 31M RAM. I get to 'make bootstrap' and my installation hangs after the first 2 and 1/2 hours. I can leave it there for hours and nothing happens. The last thing on the screen is a command involving 'insn-attrtab.o' - I've done this 3 times and it always stops there. If I just 'make' without the bootstrap part, the whole thing completes in a little over an hour. The kernel on the machine is 2.2.17. It's an old Mandrake distro. Is my situation hopeless? Can I get LFS to work? Can I move on to the next step without 'make bootstrap' ? What is 'insn-attrtab.o' ?
Hm, I think one reason why you can't bootstrap gcc could be that you run out of memory (31 Megs are not very much...). Another reason could be that the gcc version on your old mandrake installation is too old (could you maybe tell us what version the host gcc is?).

Further it's important to use "make bootstrap" to ensure that you temporarely toolchain is sane. More details about the bootstrap off gcc can be found in the LFS text.

HTH
 
Old 10-07-2006, 04:55 AM   #3
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
Hello, radiodee1
Let me put it this way:
1. 'make bootstrap' is important [see krigav above or the manual], however it is not compulsory. You could do well without it, but it's risky(!). It something goes wrong, it can show up at any stage, and you'll have to start from the very beginning.
2. You could enable a swap partition on your hard drive. It will definitely slow the process down, but at least it should push the process.
3. Don't ask about '*.o' [object] files here. If you need to know it, try to ask in Programming forum.

Good luck!!!
P.S.: If it was helpful, don't forget to post a reply.
 
Old 10-07-2006, 06:54 AM   #4
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 669
Blog Entries: 11

Original Poster
Rep: Reputation: 36
well gcc is version 2.95.3. I don't know what to do, really. I don't want to move on and sabotage myself. I cannot get more ram. What about 'make' and 'make install' gcc, then 'make bootstrap' gcc on top of that? is that sort of thing possible? if it's a ram issue that idea won't remedy the situation, right? I read the book where it describes why the gcc bootstrap option compiles gcc three times. I think my install hangs around the second compilation. maybe i will move on after all.
 
Old 10-08-2006, 05:12 PM   #5
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
radiodee1! Going back to my notes above:
1. You can try to do 'make' instead of 'make bootstrap'. Version 2.95.3 is not really old for this.
2. Is/are you hard drive(s) have say some hundred Mbytes of free unneeded space? Do you know what swap partitions are? Do you have any swap partitions on you hard drive(s)? If you have a partition, you have to unable it to get extra memory for compilation! If you have free space, you can create a swap and use it.

Don't give up!!!

Last edited by Vitalie Ciubotaru; 10-08-2006 at 05:16 PM.
 
Old 10-09-2006, 11:07 AM   #6
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 669
Blog Entries: 11

Original Poster
Rep: Reputation: 36
well, I checked my swap space and it's 246M. I only have 31M of ram. I always thought you were supposed to have swap space for twice your ram. I checked df and found I had about exactly 512M free on /, but over a gig on /home, so I tried to install the sources on /home/lfs and work the process from there. No luck. The whole thing hung at the same exact time as before. I typed ctrl-z after an hour of waiting and then killed the make that was suspended. I got a message saying, among other things, that I had just killed 'stage2_build'. I should try to find out what 'insn-attrtab.o' is, since it always hangs there... it may not advance my cause to know, but it would be good anyway. Does anyone know where I should go to find out... which forum, etc. Any other suggestions would also be helpfull.
 
Old 10-10-2006, 03:20 PM   #7
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 669
Blog Entries: 11

Original Poster
Rep: Reputation: 36
I've got a different solution. I have a different computer. It's 2.5 gigahertz. More ram (256M ram) and HD space (10 gig). Installation of my old Mandrake distribution was pretty quick. I got through binutils fast. gcc is a problem again. This new computer will 'make bootstrap' and even 'make install' but now I have a different problem. 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. Maybe I should put all this in a new thread.

Last edited by radiodee1; 10-10-2006 at 04:17 PM.
 
  


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
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
make bootstrap chipymunk Linux From Scratch 1 06-30-2005 09:44 PM
LFS5.1.1 gcc-core-3.3.3 bootstrap (first pass) error. Cynric Linux From Scratch 3 08-18-2004 09:34 PM
GCC first build for LFS, bootstrap error Blibblob Linux From Scratch 8 01-07-2004 05:50 PM
gcc 2.3 bootstrap error NGraphiX Linux From Scratch 1 05-15-2003 11:45 AM


All times are GMT -5. The time now is 02:25 AM.

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