MPFR seems to hate the ABI selected by my GMP installation. However, when specifically using ABI=32 in the GMP configuration and following it with the MPFR config, I continue to get "libgmp not found or uses different ABI"
I tried configuring on a different processor, the Intel Atom. I get the same error.
I didn't have this error when configuring on an old Pentium 3 processor but, no longer have access to the P3 so I'm stuck with either the Atom or the i5.
Is this a common issue or does anyone know how to get around it?
i5-2400 CPU @ 3.10GHz
configure –prefix=/tools –build=$LFS_TGT –with-gmp-include=/tools/include –with-mpfr-lib=/tools/lib
$LFS_TGT (just the target OS)
libgmp not found or uses a different ABI.
"Please read the INSTALL file -- see "In case of problem".
Output from config.log concerning CC and CFLAGS:
This test (checking for __gmpz_init in -lgmp) comes after the gmp.h detection. The failure occurs either because the GMP library could not be found (as it is not in the provided library search paths) or because the GMP library that was found does not have the expected ABI (e.g. 32-bit vs 64-bit). The latter problem can have several causes:
A wrong libgmp library has been picked up. This can occur if you have several GMP versions installed on the machine and something is wrong with the provided library search paths.
Wrong compiler options (CFLAGS) were given. In general, the presence or absence of the -m64 compiler option must match the library ABI.
A wrong gmp.h file has been picked up (if you have several GMP versions installed). Indeed, by default, MPFR gets the compiler options from the gmp.h file (with GMP 4.2.3 or later); this is needed because GMP does not necessarily use the default ABI. The consequence is that if the gmp.h file is associated with a library using a different ABI, the ABI-related options will be incorrect. Hence the failure.
Note: The config.log output gives more information than the error message. In particular, see the output of the test: checking for CC and CFLAGS in gmp.h; it should give you the default compiler options (from gmp.h).
Configure:3770: checking for CC and CFLAGS in gmp.h
Configure:3797: result: yes CC=gcc –std=gnu99 CFLAGS=-m32 -02 –pedantic –fomit-frame-pointer –mtune=pentiumpro –march=pentiumpro
Configure:3803: checking for CC=gcc –std=gnu99 and CFLAGS=-m32 -02 –pedantic –fomit-frame-pointer –mtune=pentiumpro –march=pentiumpro
Configure:3807: result: yes