mpfr configure fails with:
...
checking for recent GMP... yes
checking for __gmpz_init in -lgmp... no
configure: error: libgmp not found or uses a different ABI (including
static vs shared).
Please read the INSTALL file -- see In case of problem.
libgmp seems to be properly installed:
ld.so.cache points to the correct locations for libgmp and libgmpxx, ldd
on both has no missing dependencies, libgmp.la and libgmpxx.la both have
an empty old_library directive (thus i assume both are dynamic only as i
always configure with --disable-static).
neither the INSTALL nor google was of any help - at least none of them
seems to fit my configuration, most were about compiling on apples.
having a closer look at gmp, i had to see some failures during the tests:
...
PASS: t-fat
mpn_get_d wrong on 2^n
bit 0
exp 0
want_bit 0
sign 0
n=0x1
nsize1
want =[00 00 00 00 00 00 F0 3F] 1
got =[00 00 10 00 00 00 00 00] 5.1806537865363093631e-318
/bin/sh: line 5: 10259 Aborted ${dir}$tst
FAIL: t-get_d
...
PASS: t-bin
mpz_get_d wrong on 2**0
z=1
want 1
got 5.1806537865363093631e-318
/bin/sh: line 5: 15711 Aborted ${dir}$tst
FAIL: t-get_d
mpz_get_d_2exp wrong on 2**1
z=0x2
want =[00 00 00 00 00 00 E0 3F] 0.5
got =[00 00 10 00 00 00 00 00] 5.1806537865363093631e-318
want exp 2
got exp 2
/bin/sh: line 5: 15734 Aborted ${dir}$tst
FAIL: t-get_d_2exp
...
PASS: t-aorsmul
mpz_cmp_d wrong (from check_low_z_one)
got 1
want 0
x=2
y 5.18065e-318
x=0x2
y 5.18065e-318
y 00 00 10 00 00 00 00 00
/bin/sh: line 5: 16072 Aborted ${dir}$tst
FAIL: t-cmp_d
...
PASS: t-equal
mpq_get_d wrong on 2**-97
q=1/158456325028528675187087900672
want =[00 00 00 00 00 00 E0 39] 6.3108872417680944433e-30
got =[00 00 10 00 00 00 00 00] 5.1806537865363093631e-318
/bin/sh: line 5: 17208 Aborted ${dir}$tst
FAIL: t-get_d
...
PASS: t-fits
should be one ulp from 1: -inf
/bin/sh: line 5: 19520 Aborted ${dir}$tst
FAIL: t-get_d
mpf_get_d_2exp wrong on 2**-513
f=0x0.8@-128
want =[00 00 00 00 00 00 E0 3F] 0.5
got =[00 00 10 00 00 00 00 00] 5.1806537865363093631e-318
want exp -512
got exp -512
/bin/sh: line 5: 19543 Aborted ${dir}$tst
FAIL: t-get_d_2exp
...
PASS: t-locale
t-misc.cc:119: GNU MP assertion failed: d == 123.0
/bin/sh: line 5: 22158 Aborted ${dir}$tst
FAIL: t-misc
...
as the book reads the tests as critical, i guess the libgmp and/or
libgmpxx might really be broken.
googling about the 'get_d'-failures and the 'assertion failed' mentonied
problems with CFLAGS. as i don't set them, i have no clue where to dig on...
snippet from 'configure' for mpfr:
checking for CC and CFLAGS in gmp.h... yes CC=gcc -std=gnu99 CFLAGS=-m32
-O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro
checking for CC=gcc -std=gnu99 and CFLAGS=-m32 -O2 -pedantic
-fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro... yes
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
same for gmp (ABI=32 ./configure...):
checking whether to enable maintainer-specific portions of Makefiles... 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=pentiumpro... yes
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer
-mtune=pentiumpro -march=pentiumpro... yes
checking for gcc... gcc
checking whether the C compiler works... yes
as far as i understand, the relevant options m32, march and mtune are
the same.
thanks for any help
tobias
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page