LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   LFS6.3-Errors while compile GCC accroding to THE LFS BOOK (http://www.linuxquestions.org/questions/linux-newbie-8/lfs6-3-errors-while-compile-gcc-accroding-to-the-lfs-book-901020/)

oscareee888 09-04-2011 07:59 AM

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!

grail 09-04-2011 08:29 AM

Well my first question would be what is your source of LFS? Even the current stable release is using gcc-4.5.2

oscareee888 09-04-2011 09:41 PM

Quote:

Originally Posted by grail (Post 4461084)
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

grail 09-05-2011 02:50 AM

Ok ... fair enough. Which chapter do your steps come from? (ie all the sed lines and so on)

druuna 09-05-2011 03:54 AM

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.

grail 09-05-2011 05:09 AM

@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

druuna 09-05-2011 06:20 AM

@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.

oscareee888 09-06-2011 08:53 PM

Quote:

Originally Posted by druuna (Post 4461926)
@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!


All times are GMT -5. The time now is 11:27 PM.