make check problem on Linux x86_64 with clang 3.0 and -m32

Max Neunhoeffer neunhoef at
Fri Jan 27 13:40:25 CET 2012

Dear GMP team,

I tested
today in the following configuration:

On Linux x86_64 (Ubuntu 11.04, 64bit) using the clang compiler in
version 3.0 (downloaded from
) I did the following:

  Untar gmp
  export CC=clang
  export CFLAGS="-m32"
  ./configure ABI=32
  make check

and the output ended like in the attached file.

clang -v     says:

clang version 3.0 (tags/RELEASE_30/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

uname -a     says:

Linux schur 2.6.38-13-generic #53-Ubuntu SMP Mon Nov 28 19:33:45 UTC
2011 x86_64 x86_64 x86_64 GNU/Linux

./config.guess     says:


sh configfsf.guess      says:


By the way: The same compiler without "-m32" and "ABI=32" works and
the checks are all passed.

I hope this helps to find a bug in either the gmp library or the clang

Best regards,

Max Neunhoeffer    
> > > > > > > > > > >  May the Source be with you! < < < < < < < < < < < < 
The University of St Andrews is a registered Scottish charity: No SC013532

-------------- next part --------------
make  check-TESTS
make[4]: Entering directory `/tmp/gmp-5.0.3-20120125/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: 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
PASS: 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
/bin/bash: line 5: 16854 Segmentation fault      ${dir}$tst
FAIL: t-hamdist
PASS: t-oddeven
/bin/bash: line 5: 16943 Segmentation fault      ${dir}$tst
FAIL: t-popcount
PASS: t-set_f
PASS: t-io_raw
PASS: t-import
PASS: t-export
PASS: t-pprime_p
PASS: t-nextprime
2 of 58 tests failed
Please report to gmp-bugs at, see
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/tmp/gmp-5.0.3-20120125/tests/mpz'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/tmp/gmp-5.0.3-20120125/tests/mpz'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/tmp/gmp-5.0.3-20120125/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/tmp/gmp-5.0.3-20120125'
make: *** [check] Error 2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.gz
Type: application/octet-stream
Size: 73080 bytes
Desc: not available
URL: <>

More information about the gmp-bugs mailing list