LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-11-2007, 09:43 AM   #1
Sydney Grew
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
GCC compilation: 48 hours (not out)


The Linux from Scratch is a good idea; I thought I would give it a try on a lap-top. Acer, seven years old, 233 Mhz, 4 Gb hard drive, 32 Mb memory. I made an 80 Mb swap partition, downloaded the live CD, and got started.

Very impressed by the ability of the live CD to correctly detect the PCMCIA slot with its ethernet card, and the Neomagic screen. The last time I tried Linux (several different distributions a year or so ago) it could not do that.

So I proceeded with the compilations in chapter 5. Binutils - yes, it took several hours, but all went well. Very educational and encouraging. Then GCC - off it goes. Ten minutes later it is still compiling. Well, let it go on, out of curiosity. But forty-eight hours later it is still compiling!

Now in my long (forty-five year) experience with computers, no compilation of anything should take longer than ten minutes. There is something badly wrong if it takes longer than that on a machine like that.

And this is precisely the sort of experience which puts people off Linux. (I know it is possible to install GCC binaries quickly without recompiling it , but that is not really the point.)

To the newcomer there is often the appearance of deliberate obfuscation about many aspects of Linux, and this was exemplified by a) the unnecessary messages which flashed by for forty-eight hours, b) their inscrutability, and c) the unnecessary size and complexity of this compiler and the way it is built.

How about a GCC expert or two sitting down to revise this package so that it builds in ten minutes, eh? Please don't say it is impossible. In the meantime I find Linux from Scratch a good idea but wholly impractical in my surely not untypical case.
 
Old 06-11-2007, 10:02 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
You have got to be kidding me.

This is the entire reason people use binaries. GCC is an incredibly useful (and complex) piece of code. There is absolutely no way it is ever going to compile in ten minutes.

Quote:
Now in my long (forty-five year) experience with computers, no compilation of anything should take longer than ten minutes. There is something badly wrong if it takes longer than that on a machine like that.
Believe me, there are tons of programs and packages for Linux, Windows, Mac OS, etc. that take WAY longer then 10 minutes to compile and there is absolutely nothing wrong with that.

Last edited by jtshaw; 06-11-2007 at 10:04 AM.
 
Old 06-11-2007, 10:04 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The first time I installed LFS it was on an pentium 233 with 64 Mb ram and 2 small (8 + 32 Gb) disks. Compiling of some packets took a long time, some (gcc for example) I let run overnight (it took 10 hours or so, if memory serves me right).

I do agree that 48+ hours seems too long. On the other hand you don't 'just' compile gcc, you are probably at the make bootstrap part (you don't mention this) which compiles gcc several times. But you should already know that with all the experience you have
 
Old 06-11-2007, 10:12 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
For more information on what is actually happening when you build GCC see the GCC Install Documentation from GNU.

I'm also going to go ahead and prepare you... if you build KDE, Gnome, or a Linux Kernel on that box it is probably going to take longer then 10 minutes... Kernel will probably be about 25, Gnome or KDE could take 8 hours depending on how much of it you install.
 
  


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
have gcc compilation error during gcc installtion in linuxfromscratch vbshanmugaprakash Linux - General 3 12-13-2006 05:52 AM
Kernel compilation with old GCC rangalo Slackware 3 12-14-2005 03:35 PM
compilation prob with gcc srinis Programming 4 03-15-2005 04:53 AM
should I use gcc-2.95.3 for kernel compilation shanenin Linux From Scratch 9 07-25-2004 10:24 PM
GCC 3.4.0 Compilation Crashes derryp Linux From Scratch 3 06-11-2004 04:22 PM

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

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

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