make check failure

Mauro Zallocco mauroz at cipheroptics.com
Tue Aug 26 21:31:40 CEST 2008


Hello.

I downloaded gmp-4.3.3.tar.bz2:
I am doing a native build on a linux MIPS based platform with GCC
version 3.4.3

Installed the package as follows:

tar -xvf gmp-4.3.3.tar.bz2
cd gmp-4.3.3
./configure
make
make check

The configure went well.
The make had a compile error as follows:
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
-DOPERATION_mp_bases -
O3 -mabi=32 -c mp_bases.c  -fPIC -DPIC -o .libs/mp_bases.o
mp_bases.c:14: error: `inf' undeclared here (not in a function)
mp_bases.c:14: error: initializer element is not constant
mp_bases.c:14: error: (near initialization for
`__gmpn_bases[2].chars_per_bit_ex
actly')
mp_bases.c:14: error: initializer element is not constant
mp_bases.c:14: error: (near initialization for `__gmpn_bases[2]')
mp_bases.c:15: error: initializer element is not constant
mp_bases.c:15: error: (near initialization for
`__gmpn_bases[3].chars_per_bit_ex
actly')
mp_bases.c:15: error: initializer element is not constant
mp_bases.c:15: error: (near initialization for `__gmpn_bases[3]')
mp_bases.c:16: error: initializer element is not constant
mp_bases.c:16: error: (near initialization for
`__gmpn_bases[4].chars_per_bit_ex
.
.
.

Which I fixed by replacing all occurrences of inf with 0xffffffff
The make then completed.

The make check did a lot of compiles then I get the following:

make  check-TESTS
make[4]: Entering directory `/root/JVM-Kaffee/gmp-4.2.2/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
/bin/sh: line 1: 11904 Segmentation fault      ${dir}$tst
FAIL: t-gcd
PASS: t-gcd_ui
PASS: t-lcm
PASS: dive
PASS: dive_ui
PASS: t-sqrtrem
in realloc: redzone clobbered after block
/bin/sh: line 1: 12044 Aborted                 ${dir}$tst
FAIL: convert
/bin/sh: line 1: 12069 Segmentation fault      ${dir}$tst
FAIL: io
PASS: t-inp_str
PASS: logic
PASS: bit
PASS: t-powm
PASS: t-powm_ui
in free: redzone clobbered after block
/bin/sh: line 1: 12209 Aborted                 ${dir}$tst
FAIL: t-pow
PASS: t-div_2exp
PASS: reuse
PASS: t-root
PASS: t-perfsqr
in free: redzone clobbered after block
/bin/sh: line 1: 12326 Aborted                 ${dir}$tst
FAIL: 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
in free: redzone clobbered after block
/bin/sh: line 1: 12604 Aborted                 ${dir}$tst
FAIL: t-divis
in free: redzone clobbered after block
/bin/sh: line 1: 12629 Aborted                 ${dir}$tst
FAIL: t-divis_2exp
in free: redzone clobbered after block
/bin/sh: line 1: 12654 Aborted                 ${dir}$tst
FAIL: t-cong
in free: redzone clobbered after block
/bin/sh: line 1: 12679 Aborted                 ${dir}$tst
FAIL: t-cong_2exp
PASS: t-sizeinbase
PASS: t-set_str
PASS: t-aorsmul
in free: redzone clobbered after block
/bin/sh: line 1: 12773 Aborted                 ${dir}$tst
FAIL: t-cmp_d
PASS: t-cmp_si
PASS: t-hamdist
in free: redzone clobbered after block
/bin/sh: line 1: 12844 Aborted                 ${dir}$tst
FAIL: t-oddeven
in free: redzone clobbered after block
/bin/sh: line 1: 12869 Aborted                 ${dir}$tst
FAIL: t-popcount
PASS: t-set_f
PASS: t-io_raw
in realloc: redzone clobbered before block
/bin/sh: line 1: 12940 Aborted                 ${dir}$tst
FAIL: t-import
t-export.c:145: GNU MP assertion failed: ((src)->_mp_alloc) >=
((((src)->_mp_size)) >= 0 ? (((src)->_mp_size)) : -(((src)->_mp_size)))
/bin/sh: line 1: 12965 Aborted                 ${dir}$tst
FAIL: t-export
PASS: t-pprime_p
==================================
14 of 56 tests failed
Please report to gmp-bugs at swox.com
==================================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/root/JVM-Kaffee/gmp-4.2.2/tests/mpz'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/root/JVM-Kaffee/gmp-4.2.2/tests/mpz'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/root/JVM-Kaffee/gmp-4.2.2/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/root/JVM-Kaffee/gmp-4.2.2'
make: *** [check] Error 2
[root at XLR-732 gmp-4.2.2]$

Please let me know if you see anything obvious, or have any suggestions.

Mauro Zallocco
Engineering Director
CipherOptics Inc.
www.cipheroptics.com



The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting all copies. Thank you.


More information about the gmp-bugs mailing list