Greetings all...
First of all, I hate to come charging in here only to have my first post be
about an apparent error in the LFS book.. but it seems that is how it shall
be.
Anyway... this is not my first go-round with LFS (my first was LFS 6.1,
IIRC), and I am a fairly experienced Linux user (started using Linux ~13
years ago, most of that time on Fedora).
I'm currently working on creating a 64bit LFS system from LFS SVN 20100109.
On Chapter 6.13 there is a note right at the beginning of the book, as
follows:
"Note
If you have a CPU which is capable of running 64-bit code and you have
specified CFLAGS in the environment, the configure script will attempt to
configure for 64-bits and fail. Avoid this by adding *ABI=32* to the
CFLAGSvariable for the duration of the configure command below, then
remove it
afterwards."
I tried it exactly as noted, and configure failed to complete. I then
attempted clearing CFLAGS and adding "ABI=32" as my only CFLAGS variable...
this also failed.
Leaving CFLAGS empty selected ABI=64 and the configure works perfectly. I
then (just to see what happens) redid configure with my default CFLAGS of
CFLAGS="-O3 -march=k8-sse3 -mtune=k8-sse3 -mfpmath=sse -m64 -pipe", and it
too completed successfully.
make check 2>&1 | tee gmp-check-log and awk '/tests passed/{total+=$2} ;
END{print total}' gmp-check-log resulted in a perfect test of all 143 tests
passing.
For the sake of accuracy... and to have logs to prove my case here... I then
deleted the gmp-4.3.1 directory and created this script to re-run the
install: http://www.oslb.net/gmp.script which I ran with './gmp.script >
gmp.log' .
This produced: http://www.oslb.net/gmp.log and
http://www.oslb.net/gmp-check-log .
As you can clearly see from the logs... gmp not only built correctly... it
passed all tests as well.
Clearly the note at the beginning of Chapter 6.13 is false.
Thoughts on this?
Lyos Gemini Norezel
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page