LFS SVN Chapter 6.13 misleading note

Guy Dalziel krendoshazin at dementedfury.org
Fri Sep 11 06:15:28 PDT 2009


On Fri, Sep 11, 2009 at 01:58:51PM +0200, Philipp Christian Loewner wrote:
> root:/sources/gmp-4.3.1# ./configure --prefix=/usr --enable-cxx --enable-mpbsd
> checking build system type... athlon64-pc-linux-gnu
> checking host system type... athlon64-pc-linux-gnu
> checking for a BSD-compatible install... /tools/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking ABI=64
> checking compiler gcc -pipe -O2 -march=athlon64-sse3 -fomit-frame-pointer ABI=32  -pipe -O2 -march=athlon64-sse3 -fomit-frame-pointer... no
> checking ABI=32
> checking compiler gcc -pipe -O2 -march=athlon64-sse3 -fomit-frame-pointer ABI=32  -pipe -O2 -march=athlon64-sse3 -fomit-frame-pointer... no
> checking compiler icc -pipe -O2 -march=athlon64-sse3 -fomit-frame-pointer ABI=32  -pipe -O2 -march=athlon64-sse3 -fomit-frame-pointer... no
> checking whether cc is gcc... yes
> checking compiler cc -pipe -O2 -march=athlon64-sse3 -fomit-frame-pointer ABI=32  -pipe -O2 -march=athlon64-sse3 -fomit-frame-pointer... no
> configure: error: could not find a working compiler, see config.log for details

Your problem here is not the ABI variable, your problem is the fact that
it can't find a working copy of GCC. Why this is I can't tell you,
you'll have to check your PATH and backtrace your steps. See the
attached log, on a 64-bit system it first checks whether the current
compiler can compile 64-bit binaries, as I've compiled a 32-bit system
the answer is no so it defaults to 32-bit.

Having said that, however - on a seperate note - the use of ABI=32 should
stop GMP from checking for 64-bit compatibility to begin with. I don't
believe that putting ABI=32 in the CFLAGS is working, but using `ABI=32
./configure --prefix=/usr --enable-cxx --enable-mpbsd' would serve the
purpose. Can anyone else with a 64-bit system confirm this?
-------------- next part --------------
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=64
checking compiler gcc -O2 -pedantic -m64 ... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... yes
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer has sizeof(long)==4... yes
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer  -mtune=core2... yes
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2  -march=core2... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20090911/9d67746a/attachment.sig>


More information about the lfs-dev mailing list