errors during and after compiling gmp 5.0.2 with gcc 4.5.0 on SuSE 11.3

Martin Schröder martin.schroeder78 at googlemail.com
Mon Oct 10 00:39:42 CEST 2011


Hello,
i'd like to report some possible bugs in The GNU
Multiple Precision Arithmetic Library.
Tonight  I poked around with it and encountered some errors
during compiling and after running the "make check" routines.

First of all, to get the succesfully configured build system to compile
the library, I had to comment out
the line "Error, error, this data is for 62 bits" in several .h and .c
files.
These files were

fib_table.h
mp_bases.h
mpn/mp_bases.c
mpn/fib_table.c
mpn/perfsqr.h
mpz/fac_ui.h


After compiling the library with gcc 4.5.0, I was running "make check"
as recommended, and got two more errors.


make  check-TESTS
make[4]: Entering directory `/home/martin/src/gmp-5.0.2/tests/mpn'
PASS: t-asmtype
PASS: t-aors_1
PASS: t-divrem_1
PASS: t-fat
PASS: t-get_d
PASS: t-instrument
PASS: t-iord_u
MP_BASES_CHARS_PER_LIMB_10 wrong
/bin/sh: Zeile 5:  3142 Abgebrochen             ${dir}$tst
FAIL: t-mp_bases
t-perfsqr.c:100: GNU MP assertion failed: ((mp_limb_t)
0x3fe8b7250d1a9340L) == ((mp_limb_t) 0xffa2dc94346a4dL) <<
refmpn_count_leading_zeros (((mp_limb_t) 0xffa2dc94346a4dL))
/bin/sh: Zeile 5:  3161 Abgebrochen             ${dir}$tst
FAIL: t-perfsqr
PASS: t-scan
PASS: t-toom22
PASS: t-toom32
PASS: t-toom33
PASS: t-toom42
PASS: t-toom43
PASS: t-toom44
PASS: t-toom52
PASS: t-toom53
PASS: t-toom62
PASS: t-toom63
PASS: t-toom6h
PASS: t-toom8h
PASS: t-hgcd
PASS: t-matrix22
PASS: t-mullo
PASS: t-mulmod_bnm1
PASS: t-sqrmod_bnm1
PASS: t-invert
PASS: t-div
PASS: t-bdiv
====================================
2 of 30 tests failed
Please report to gmp-bugs at gmplib.org
====================================

If someone is interested in more details, please don't hesitate to
contact me.

Best regards,
Martin Schröder


More information about the gmp-bugs mailing list