LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-08-2003, 02:39 PM   #1
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Rep: Reputation: 15
Is compiling gcc for stage 1 supposed to take this long...


Hi All,


I'm compiling gcc for stage 1 and its 2hrs plus and still going on a PII300.

.bash_profile
----------------
set +h
umask 022
LFS=/lfs
LFS_PACKAGES=/home/lfs/lfs-packages
LC_ALL=POSIX
LDFLAGS="-s"
PATH=/stage1/bin:$PATH
export LFS LFS_PACKAGES LC_ALL LDFLAGS PATH

PS1="[\u][\w]\$"


build script
--------------

#!/bin/bash -x

BASE_DIR=$LFS_PACKAGES
BUILD_DIR=$BASE_DIR/gcc-build

cd $BASEDIR \
&& mkdir $BUILD_DIR \
&& cd $BUILD_DIR \
&& CFLAGS="-O2 -pipe" $LFS_PACKAGES/gcc-3.2.3/configure --prefix=/stage1 --with-local-prefix=/stage1 --disable-nls --enable-shared \
&& make BOOT_LDFLAGS="-static -s" BOOT_CFLAGS="-O2 -pipe" STAGE1_CFLAGS="-pipe" bootstrap \
&& make install \
&& ln -sf gcc /stage1/bin/cc


Am I doing something wrong or is this normal length of time?

Thanks,

F
 
Old 05-08-2003, 02:58 PM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
have patience buddy, it a PII300 for crying out loud
 
Old 05-08-2003, 03:34 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by manthram
have patience buddy, it a PII300 for crying out loud
and also to add, don't double post the same questions. I closed the other thread as it is more suitable in the LFS forum.
 
Old 05-08-2003, 05:29 PM   #4
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Original Poster
Rep: Reputation: 15
I'm patient just wondering if it's normal.

Thanks, though.

Just completed:

make[3]: Leaving directory `/home/fbruno/lfs-packages/gcc-build/i686-pc-linux-gnu/boehm-gc'
make[3]: Entering directory `/home/fbruno/lfs-packages/gcc-build/i686-pc-linux-gnu/boehm-gc'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/fbruno/lfs-packages/gcc-build/i686-pc-linux-gnu/boehm-gc'
make[2]: Leaving directory `/home/fbruno/lfs-packages/gcc-build/i686-pc-linux-gnu/boehm-gc'
make[1]: Leaving directory `/home/fbruno/lfs-packages/gcc-build/i686-pc-linux-gnu/boehm-gc'
+ ln -sf gcc /stage1/bin/cc
+ AGS=-pipe
+ bootstrap
./2-make-gcc.sh: line 13: bootstrap: command not found

Why is the bootstrap command not found?

P.S. - I did not apply the patches mentioned below in the lfs.pdf.

patch −Np1 −i ../gcc−3.2.3−mmap_test.patch
patch −Np1 −i ../gcc−3.2.3−no_fixincludes.patch
patch −Np1 −i ../gcc−3.2.3−libstdc++_no_debug.patch
patch −Np1 −i ../gcc−3.2.3−libgcc_no_debug.patch

Let me try that first, then compile and I'll have feedback by tomorrow
 
Old 05-08-2003, 07:05 PM   #5
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
Re: Is compiling gcc for stage 1 supposed to take this long...

Quote:
Originally posted by frankietomatoes

I'm compiling gcc for stage 1 and its 2hrs plus and still going on a PII300.
You think that's bad, try compiling java

(openssl, XFree86, mozilla, and openoffice also take a really long time... get used to it
 
Old 05-09-2003, 12:10 AM   #6
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Original Poster
Rep: Reputation: 15
Now you're really scaring me, I better get a better system for this.

BTW,

The problems I was having with gcc are gone when compiling with the instructions from:

LFS-BOOK-CVS-2003-05-07.pdf

only 2 patches needed instead of 4 from the earlier lfs book.

patch −Np1 −i ../gcc−3.2.3−mmap_test.patch
patch −Np1 −i ../gcc−3.2.3−no_fixincludes.patch

Thanks, now to my next problem post.
 
Old 05-09-2003, 12:15 AM   #7
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
kde takes forever. Around 2 days on an AMD 950 w 512 mb ram.

Last edited by fancypiper; 05-09-2003 at 12:16 AM.
 
Old 05-09-2003, 12:54 AM   #8
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Original Poster
Rep: Reputation: 15
You cant be serious!!!!

This LFS will put hair on your chest, even the ladies.
 
Old 05-09-2003, 12:55 AM   #9
frankietomatoes
Member
 
Registered: Oct 2002
Posts: 44

Original Poster
Rep: Reputation: 15
SH$%,

On my PII300 with 256MB, I'm lucky if it'll compile in a week!
 
Old 05-09-2003, 01:44 AM   #10
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
i compiled kde 2.2 on an athlon 1.3 with 640 megs and
it took about 6 hours i think. it seems like kdelibs took
about 1.5 hours.
mozilla takes about 45 minutes.
xfree86 4.2 about an hour.
seems like xmame took 45 minutes.
gcc 3.2 seemed like 30 minutes or 40.
these numbers are from memory, so they are
probably accurate to within an order of magnitude.
 
Old 05-09-2003, 03:07 AM   #11
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
I've done all of my LFS work on a 500Mhz, 128mb system.... what's the rush?

Once it's done, it's over with and you have that warm feeling inside from the knowledge that everything you are using was compiled on your own box

PS. - Yeah... stay away from kde
 
Old 05-09-2003, 10:59 AM   #12
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 45
java - 6 hours

What was worse was that I had to repeat the process 5 times to get the install options correct - it would compile for 2 - 4 hours then chuck out a compile error, I was not best pleased!

But, it is all worth it becuse java runs like a dream as does the rest of the lfs system. Just plucking up the courage to compile OpenOffice...
 
  


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
Half of my applications are broken. I am using Gentoo stage 1 on 3 nptl (stage 1.5) dragonslay Linux - Games 3 04-01-2005 06:23 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 12:38 PM
Long pause at audit stage of boot up Henster Linux - General 4 09-26-2004 12:42 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
How long should it take to compile gcc? frankietomatoes Linux - General 2 05-08-2003 03:21 PM


All times are GMT -5. The time now is 12:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration