Linux From ScratchThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.