gmp-5.0.5 1 of 59 tests failed

Dennis Clarke dclarke at blastwave.org
Fri Oct 26 00:11:43 CEST 2012


This is a rare bit of excitement : 

/opt/solarisstudio12.3/bin/cc -xc99=all -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../tests  -I/usr/local/include:/usr/sfw/include  -errfmt=error -erroff=%none -errshort=full -xstrconst -xildoff -m64 -xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -xtarget=ultraT2 -xcache=8/16/4:4096/64/16 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -c t-nextprime.c
"../../gmp-impl.h", line 3362: warning:  attribute "mode" is unknown, ignored
"../../gmp-impl.h", line 3363: warning:  attribute "mode" is unknown, ignored
"../../gmp-impl.h", line 3364: warning:  attribute "mode" is unknown, ignored
"../../gmp-impl.h", line 3365: warning:  attribute "mode" is unknown, ignored
"../../gmp-impl.h", line 3366: warning:  attribute "mode" is unknown, ignored
/bin/bash ../../libtool --tag=CC   --mode=link /opt/solarisstudio12.3/bin/cc -xc99=all  -errfmt=error -erroff=%none -errshort=full -xstrconst -xildoff -m64 -xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -xtarget=ultraT2 -xcache=8/16/4:4096/64/16 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE   -o t-nextprime t-nextprime.o ../../tests/libtests.la ../../libgmp.la 
libtool: link: /opt/solarisstudio12.3/bin/cc -xc99=all -errfmt=error -erroff=%none -errshort=full -xstrconst -xildoff -m64 -xmemalign=8s -xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1 -xtarget=ultraT2 -xcache=8/16/4:4096/64/16 -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -o .libs/t-nextprime t-nextprime.o  ../../tests/.libs/libtests.a /usr/local/build/gmp-5.0.5_sparcv9_002/.libs/libgmp.so ../../.libs/libgmp.so -R/usr/local/lib
ld: warning: file ../../.libs/libgmp.so: linked to /usr/local/build/gmp-5.0.5_sparcv9_002/.libs/libgmp.so: attempted multiple inclusion of file
gmake[4]: Leaving directory `/usr/local/build/gmp-5.0.5_sparcv9_002/tests/mpz'
gmake  check-TESTS
gmake[4]: Entering directory `/usr/local/build/gmp-5.0.5_sparcv9_002/tests/mpz'
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: t-invert
PASS: dive
PASS: dive_ui
PASS: t-sqrtrem
PASS: convert
PASS: io
PASS: t-inp_str
PASS: logic
PASS: bit
PASS: t-powm
PASS: t-powm_ui
PASS: t-pow
PASS: t-div_2exp
/bin/bash: line 5:  3426 Bus Error               (core dumped) ${dir}$tst
FAIL: reuse
PASS: t-root
PASS: t-perfsqr
PASS: t-perfpow
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
PASS: t-io_raw
PASS: t-import
PASS: t-export
PASS: t-pprime_p
PASS: t-nextprime
======================================================================================
1 of 59 tests failed
Please report to gmp-bugs at gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html
======================================================================================
gmake[4]: *** [check-TESTS] Error 1
gmake[4]: Leaving directory `/usr/local/build/gmp-5.0.5_sparcv9_002/tests/mpz'
gmake[3]: *** [check-am] Error 2
gmake[3]: Leaving directory `/usr/local/build/gmp-5.0.5_sparcv9_002/tests/mpz'
gmake[2]: *** [check-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/build/gmp-5.0.5_sparcv9_002/tests'
gmake[1]: *** [check-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/build/gmp-5.0.5_sparcv9_002'
gmake: *** [check] Error 2
$ 
$ find . -type f | grep reuse 
./tests/mpz/.libs/reuse
./tests/mpz/time_1351201185-pid_3426-uid_16411-gid_1-fid_reuse.core
./tests/mpz/reuse.c
./tests/mpz/reuse
./tests/mpz/reuse.o
./tests/mpf/reuse.c

$ dbx ./tests/mpz/.libs/reuse ./tests/mpz/time_1351201185-pid_3426-uid_16411-gid_1-fid_reuse.core
Reading reuse
core file header read successfully
Reading ld.so.1
Reading libgmp.so.10.0.5
Reading libc.so.1
Reading libc_psr.so.1
program terminated by signal BUS (invalid address alignment)
0xffffffff7f071b38: __gmpn_copyi+0x0068:        ldx      [%o1], %g1
Current function is redcify
  130     MPN_COPY (tp + n, up, un);
(dbx) where                                                                                                              
  [1] __gmpn_copyi(0x100139520, 0x3, 0x4, 0xffffffff7f0657c0, 0x0, 0xffffffff7f73cdf8), at 0xffffffff7f071b38 
=>[2] redcify(rp = 0x100139478, up = 0x3, un = 4, mp = 0x1001191a8, n = 3), line 130 in "powm.c"
  [3] __gmpn_powm(rp = 0x100139378, bp = 0x3, bn = 4, ep = 0x1001262b8, en = 1, mp = 0x1001191a8, n = 3, tp = 0x100139398), line 209 in "powm.c"
  [4] __gmpz_powm(r = 0xffffffff7fffece0, b = 0xffffffff7fffead0, e = 0xffffffff7fffed40, m = 0xffffffff7fffed30), line 188 in "powm.c"
  [5] main(argc = 1, argv = 0xffffffff7fffee38), line 539 in "reuse.c"
(dbx) 

(dbx) regs
current frame:  [2]
g0-g1    0x0000000000000000 0x0000000100119110
g2-g3    0x7c00000000000000 0x0000000000000000
g4-g5    0x0000000100139580 0x00000000815ff400
g6-g7    0x0000000000000000 0xffffffff7ee00200
o0-o1    0x0000000100139520 0x0000000000000003
o2-o3    0x0000000000000004 0xffffffff7f0657c0
o4-o5    0x0000000000000000 0xffffffff7f73cdf8
o6-o7    0xffffffff7fffdf41 0xffffffff7f065750
l0-l1    0x0000000000000004 0x0000000100139520
l2-l3    0xffffffff7f73c218 0x0000000000000003
l4-l5    0xffffffff7fffe820 0x0000000100139480
l6-l7    0x0000000000000007 0xffffffff7f18a0c0
i0-i1    0x0000000100139478 0x0000000000000003
i2-i3    0x0000000000000004 0x00000001001191a8
i4-i5    0x0000000000000003 0xffffffff7f73cdf8
i6-i7    0xffffffff7fffe051 0xffffffff7f065b58
y        0x0000000000000000
ccr      0x0000000000000011
pc       0xffffffff7f065750:redcify+0xd0    call     _PROCEDURE_LINKAGE_TABLE_+0x340 [PLT]      ! 0xffffffff7f18aa40
npc      0xffffffff7f071b3c:__gmpn_copyi+0x6c    inc      8, %o1
(dbx) 

$ dbx ./tests/mpz/.libs/reuse
Reading reuse
Reading ld.so.1
Reading libgmp.so.10.0.5
Reading libc.so.1
Reading libgcc_s.so.1
(dbx) 
(dbx) files           
reuse:
  reuse.c
  misc.c
  memory.c
libgcc_s.so.1:
  /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/gcc/libgcc2.c
  /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/gcc/unwind-dw2.c
  /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/gcc/unwind-dw2-fde.c
  /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/gcc/gthr-gnat.c
  /sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/gcc/unwind-c.c

ha ! 

Never mind .. found the problem. Even with Oracle Studio 12.3 I still can not build gmp without using gcc. 

It has been fun .. I would love to fix this however as everything was compiled and maybe there is an opportunity here ? 

Dennis 







More information about the gmp-bugs mailing list