Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 12-29-2006, 07:02 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 13
Blog Entries: 4

Rep: Reputation: 0
LFS 6.2-3 chp. 5.4 GCC-4.0.3 compile error

I am trying to build LFS for the second time in my Linux explorations. I'm a somewhat of a newbie. I've been using SimplyMEPIS 6.0 for the last month or so and I'm starting to get the hang of playing around in Linux a lot better. I've already created my own shell script for the Chapter 5 environment for use with the LFS live CD, as I'm using that as my host. I've been using the hint for using the live cd from 6.1 as my guide and the 6.2 stable book. I've gotten the ls to come up in all color in the "clean environment" the same way that it does in the "normal environment" just to give you some hint that I'm not a "total loss newbie" or anything, lol.

I've gotten binutils pass1 to build correctly, even though I've gone through this part like 45 times in the last 2 days. Needless to say, I almost have everything I need to type in memory and barely need to look at the book. binutils has failed a couple of times on me, but at the moment has been compiled and installed without errors. But when I try to compile gcc I can't get more than 15 minutes into the build process, which going by SBU's should take me approximately 72 minutes. The last 3 times I've tried compiling I've run into segfaults. Twice at regex.o and once at toplevel.o. On other build attempts I've come across different errors, and forgive my tiredness, I can't remember exactly what they are.

I was wondering if after the error I have to rm the build directory and start over from making the build directory or is it possible for me to type make bootstrap at the prompt again. I tried that a couple times to see what it would do, and it looked like it started off from where it left off, but I'm not sure. How do I get past this?

I'm running a 766MHz PIII, 512MB 133MHz SDRAM, 80GB WD Caviar, 523MB Swap. I'm already dual booting Windows ME (which I never use) and SimplyMEPIS and wanting to add LFS to that mix as well. I've searched this for the last two days, and can't search LFS's mailing lists for this because the search is broken??? and can't connect to the IRC network either. I'm at a total loss, which is why I'm asking here. It's my last resort.

Thank you for any help,
Old 12-29-2006, 04:45 PM   #2
LQ Newbie
Registered: Mar 2006
Posts: 13
Blog Entries: 4

Original Poster
Rep: Reputation: 0
Okie dokie. Now before I asked for help, I had read about segfaults being a problem with memory. After posting this, and sleeping, I did more research and found the LFS mailing list archives and perused those for a little while and found something about it might being problems with hardware. Of particular note is the processor possibly getting a little hot and causing intermittent errors at random points in the compiling of larger programs, like GCC-4.0.3. So I decided to try underclocking my system one notch to see if that helped, and to my delight, it worked. After many attempts at compiling GCC-4.0.3, it finally compiled without a hiccup and I got it installed. I have now moved on to the following chapters in the book.

Now I do have another question, if anyone would be so kind as to answer. Underclocking the system won't effect the final product will it? In other words, when I'm finished building LFS, I'll be able to turn the system clock back to normal and my LFS system should work correctly, right? I'll be using all the same hardware, just turning the system clock back to 133MHz from 124MHz FSB.

Even if I don't get an answer for this, hopefully this will help others that may come across the same problems I did and they won't have to ask like I did.

Last edited by threekgtvr4; 12-29-2006 at 09:59 PM.


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
LFS GCC - first pass install error arnuld Linux From Scratch 2 12-20-2006 07:59 AM
gcc make error in ch5.5 of LFS 6.0 Barnette Linux From Scratch 5 01-03-2005 11:09 AM
Something terribly went wrong with install of lfs.. near chp.5 Zero-0-Effect Linux From Scratch 2 03-12-2004 06:45 AM
GCC first build for LFS, bootstrap error Blibblob Linux From Scratch 8 01-07-2004 05:50 PM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 06:16 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration