LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-04-2011, 08:59 AM   #1
oscareee888
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: Disabled
Question LFS6.3-Errors while compile GCC accroding to THE LFS BOOK


hi
i make the LFS system wiht LiveCD these days
no error be given previous step
while i compile GCC with codes the LFS BOOK given as

###codes begin###
tar xvf $LFS/gcc-4.1.2.tar.bz2
cd gcc-4.1.2
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in
mkdir -v ../gcc-build
cd ../gcc-build
../gcc-4.1.2/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++
make

###codes end###
after make ,system gives me 3 errors:
make[2]:*** no rule to make target 'all' .stop.
make[1]:*** [all-gcc] error 2
make:***[all] error 2

http://life.chinaunix.net/bbsfile/mo...b6c158dd13.png
how to solve it ? and why? it's the second time compiled GCC~!
please help me!
thanks!

Last edited by oscareee888; 09-04-2011 at 09:18 AM. Reason: add some information~!
 
Old 09-04-2011, 09:29 AM   #2
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,698

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
Well my first question would be what is your source of LFS? Even the current stable release is using gcc-4.5.2
 
Old 09-04-2011, 10:41 PM   #3
oscareee888
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by grail View Post
Well my first question would be what is your source of LFS? Even the current stable release is using gcc-4.5.2
LiveCD LFS 6.3 $LFS=/sources
 
Old 09-05-2011, 03:50 AM   #4
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,698

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
Ok ... fair enough. Which chapter do your steps come from? (ie all the sed lines and so on)
 
Old 09-05-2011, 04:54 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Looking at the statements used you seem to be building chapter 6.12.

Can you explain why you are still using $LFS and why it is wrongly set (to /sources)?

Throughout the book LFS is set to the lfs mount-point (export LFS=/mnt/lfs) and once you enter the chrooted environment in chapter 6.4 $LFS isn't used any more until you reach chapter 6.59.

Can you elaborate on what it is you are doing and if you changed anything on your own account?

BTW: You do know that LFS 6.3 is rather old (it is from 2007)? You should still be able to build 6.3, but if you are planning on using it instead of it being an exercise I would suggest building the current stable LFS version.

Hope this helps.
 
Old 09-05-2011, 06:09 AM   #6
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,698

Rep: Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988Reputation: 1988
@druuna - it appears you did the same as me from the LiveCD point of view 6.3 is apparently the latest where the online book is up to 6.8
 
Old 09-05-2011, 07:20 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
@grail / @oscareee888:

Seen from the LiveCD point of view 6.3 is the "latest", but as mentioned on the LFS LiveCD page the LiveCD is no longer maintained. It used to be that every stable LFS version had its own accompanying LiveCD. The LFS stopped doing that after LFS 6.3.

If I need the LFS liveCD I download the one that does not carry the (old) 6.3 packages (the nosrc version). If a tarbal of all packages for LFS 6.X is preferred above downloading single packages have a look here: LFS PAckages.

A word of caution about the LFS liveCD: Although in most cases the LFS liveCD can still be used, there are cases that it cannot. Certain combinations of state of the art hardware being one.

Hope this helps.
 
Old 09-06-2011, 09:53 PM   #8
oscareee888
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by druuna View Post
@grail / @oscareee888:

Seen from the LiveCD point of view 6.3 is the "latest", but as mentioned on the LFS LiveCD page the LiveCD is no longer maintained. It used to be that every stable LFS version had its own accompanying LiveCD. The LFS stopped doing that after LFS 6.3.

If I need the LFS liveCD I download the one that does not carry the (old) 6.3 packages (the nosrc version). If a tarbal of all packages for LFS 6.X is preferred above downloading single packages have a look here: LFS PAckages.

A word of caution about the LFS liveCD: Although in most cases the LFS liveCD can still be used, there are cases that it cannot. Certain combinations of state of the art hardware being one.

Hope this helps.

thanks very much ! i compile the source code again !wonderfully ,it doesn't break this time!
 
  


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
libgcc Compile errors during LFS 6.8 chapter 5.5 (GCC pass 1) 1nKoGn17o Linux From Scratch 7 08-03-2011 04:07 AM
GCC command not found LFS book 6.3, section 6.7.1 cdc5205 Linux From Scratch 1 08-16-2008 02:56 PM
i got error in 6.12-GCC-4.0.3 of LFS-Book-6.2 luckybtn Linux From Scratch 1 08-06-2008 10:52 AM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 05:23 PM


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