t-prec: failure on 32/64-bit Linux

David A. Desrosiers desrod at gnu-designs.com
Wed Apr 2 21:28:55 CEST 2008


I'm having trouble getting one of the gmp tests to pass on any Linux 
platform. Here's the results on the x86_64/2.6 machine:

Linux apps19 2.6.9-55.9.ELsmp #1 SMP Tue Jun 19 07:44:28 EDT 2007 
x86_64 x86_64 x86_64 GNU/Linux

PASS: t-assign
PASS: t-binary
PASS: t-cast
PASS: t-constr
PASS: t-headers
PASS: t-istream
PASS: t-locale
PASS: t-misc
PASS: t-ops
PASS: t-ostream
/dev/gmp/4.2.2/tests/cxx/t-prec.cc:56: GNU MP 
assertion failed: __gmpf_eq(_a, _c, very_large_prec)
/bin/sh: line 1: 15076 Aborted                 ${dir}$tst
FAIL: t-prec
PASS: t-rand
PASS: t-ternary
PASS: t-unary
==================================
1 of 14 tests failed
Please report to gmp-bugs at swox.com
==================================

It also fails on i386/2.4 as well, as follows:

Linux apps21 2.4.21-47.ELhugemem #1 SMP Wed Jul 5 20:30:35 EDT 
2006 i686 athlon i386 GNU/Linux

PASS: t-assign
PASS: t-binary
PASS: t-cast
PASS: t-constr
PASS: t-headers
PASS: t-istream
PASS: t-locale
PASS: t-misc
PASS: t-ops
PASS: t-ostream
/dev/gmp/4.2.2/tests/cxx/t-prec.cc:56: GNU MP 
assertion failed: __gmpf_eq(_a, _c, very_large_prec)
FAIL: t-prec
PASS: t-rand
PASS: t-ternary
PASS: t-unary
==================================
1 of 14 tests failed
Please report to gmp-bugs at swox.com
==================================

Has anyone figured out if this is a showstopper issue, or if there's a 
fix for it at this time?

Somewhat related, in the same version of gmp, we see the following on 
Solaris:

PASS: t-addsub
PASS: t-cmp
PASS: t-mul
PASS: t-mul_i
PASS: t-tdiv
PASS: t-tdiv_ui
PASS: t-fdiv
PASS: t-fdiv_ui
PASS: t-cdiv_ui
PASS: t-gcd
PASS: t-gcd_ui
PASS: t-lcm
PASS: dive
PASS: dive_ui
PASS: t-sqrtrem
PASS: convert
ld.so.1: io: fatal: relocation error: R_SPARC_WDISP22: file 
/dev/gmp/4.2.2/sparc.sunos.5.8/.libs/libgmp.so.3: 
symbol _cerror: value 0x3342c3 does not fit
FAIL: io
ld.so.1: t-inp_str: fatal: relocation error: R_SPARC_WDISP22: file 
/dev/gmp/4.2.2/sparc.sunos.5.8/.libs/libgmp.so.3: 
symbol _cerror: value 0x334a8d does not fit
FAIL: t-inp_str
PASS: logic
PASS: bit
PASS: t-powm
PASS: t-powm_ui
PASS: t-pow
PASS: t-div_2exp
PASS: reuse
PASS: t-root
PASS: t-perfsqr
PASS: t-jac
PASS: t-bin
PASS: t-get_d
PASS: t-get_d_2exp
PASS: t-get_si
PASS: t-set_d
PASS: t-set_si
PASS: t-fac_ui
PASS: t-fib_ui
PASS: t-lucnum_ui
PASS: t-scan
PASS: t-fits
PASS: t-divis
PASS: t-divis_2exp
PASS: t-cong
PASS: t-cong_2exp
PASS: t-sizeinbase
PASS: t-set_str
PASS: t-aorsmul
PASS: t-cmp_d
PASS: t-cmp_si
PASS: t-hamdist
PASS: t-oddeven
PASS: t-popcount
PASS: t-set_f
ld.so.1: t-io_raw: fatal: relocation error: R_SPARC_WDISP22: file 
/dev/gmp/4.2.2/sparc.sunos.5.8/.libs/libgmp.so.3: 
symbol _cerror: value 0x334b3e does not fit
FAIL: t-io_raw
PASS: t-import
PASS: t-export
PASS: t-pprime_p
==================================
3 of 56 tests failed
Please report to gmp-bugs at swox.com
==================================

Thanks in advance.



More information about the gmp-bugs mailing list