[lfs-support] gmp 5.0.5 + mpfr 3.1.0 failure - part. solved

2012-06-04 Thread Tobias Gasser
Bruce Dubbs schrieb:

 checking for recent GMP... yes
 checking for __gmpz_init in -lgmp... no
 

i had a typo with the 'adjust'. thus ld was searching the wrong
places... meanwhile the basic system is up and running

tobias
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] gmp 5.0.5

2012-06-04 Thread Tobias Gasser

i still have the errors in the gmp tests.

as the book says the tests are critical, i'd like to fix them. but as
already mentionned, google was no help - at least not for me.

is anybody else able to reproduce the errors?

tobias
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] gmp 5.0.5 + mpfr 3.1.0 failure

2012-06-01 Thread Tobias Gasser

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


Re: [lfs-support] gmp 5.0.5 + mpfr 3.1.0 failure

2012-06-01 Thread Bruce Dubbs
Tobias Gasser wrote:
 mpfr configure fails with:
 
 
 ...
 checking for recent GMP... yes
 checking for __gmpz_init in -lgmp... no

I'm not sure what's happening, but I have:

$ nm /usr/lib/libgmp.so |grep gmpz_init
00019a60 T __gmpz_init
00019a90 T __gmpz_init2
0001a9c0 T __gmpz_init_set
0001aa40 T __gmpz_init_set_d
0001aa80 T __gmpz_init_set_si
0001aaf0 T __gmpz_init_set_str
0001ab50 T __gmpz_init_set_ui
00019b10 T __gmpz_inits

Perhaps a mistake in installing gmp?

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] gmp 5.0.5 + mpfr 3.1.0 failure

2012-06-01 Thread Tobias Gasser
Bruce Dubbs schrieb:
 Tobias Gasser wrote:
 mpfr configure fails with:


 ...
 checking for recent GMP... yes
 checking for __gmpz_init in -lgmp... no
 
 I'm not sure what's happening, but I have:
 
 $ nm /usr/lib/libgmp.so |grep gmpz_init
 00019a60 T __gmpz_init
 00019a90 T __gmpz_init2
 0001a9c0 T __gmpz_init_set
 0001aa40 T __gmpz_init_set_d
 0001aa80 T __gmpz_init_set_si
 0001aaf0 T __gmpz_init_set_str
 0001ab50 T __gmpz_init_set_ui
 00019b10 T __gmpz_inits

strange.

 Perhaps a mistake in installing gmp?

i did it as in the book... but i'll redo again.

thanks for the hint!

tobias
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page