LFS6.3-Errors while compile GCC accroding to THE LFS BOOK
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
tar xvf $LFS/gcc-4.1.2.tar.bz2
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
../gcc-4.1.2/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
after make ,system gives me 3 errors:
make:*** no rule to make target 'all' .stop.
make:*** [all-gcc] error 2
make:***[all] error 2
how to solve it ? and why? it's the second time compiled GCC~!
please help me!
Well my first question would be what is your source of LFS? Even the current stable release is using gcc-4.5.2
Ok ... fair enough. Which chapter do your steps come from? (ie all the sed lines and so on)
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.
@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
@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 10:53 AM.|