make check failed on Mac OS X 10.7.3 w/clang -O4

近藤 充弘 miche at me.com
Thu Apr 12 18:02:44 CEST 2012


hi gmp project,

I encountered failure while make check on Mac OS X with clang -O4(see below).
Because make check was succeeded with -O0, -O1, -O2 and -O3 options,
this might be a bug of clang compiler related LLVM system.
I attached several logs, is there anything else which i can do?

regards,

---
mitsuhiro kondo
miche at mac.com


--- optimization options summary of clang compiler
       -O0 -O1 -O2 -Os -Oz -O3 -O4
           Specify which optimization level to use.  -O0 means "no
           optimization": this level compiles the fastest and generates the
           most debuggable code.  -O2 is a moderate level of optimization
           which enables most optimizations.  -Os is like -O2 with extra
           optimizations to reduce code size.  -Oz is like -Os (and thus -O2),
           but reduces code size further.  -O3 is like -O2, except that it
           enables optimizations that take longer to perform or that may
           generate larger code (in an attempt to make the program run
           faster).  On supported platforms, -O4 enables link-time
           optimization; object files are stored in the LLVM bitcode file
           format and whole program optimization is done at link time. -O1 is
           somewhere between -O0 and -O2.

--- os information
$ uname -a
Darwin MacBook.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64

--- config.guess 
core2-apple-darwin11.3.0

--- compiler version
$ clang -v
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix

--- console log
$ make check
make  check-recursive
Making check in tests
Making check in .
make  libtests.la t-bswap t-constants t-count_zeros t-gmpmax t-hightomask t-modlinv t-popc t-parity t-sub
make  check-TESTS
PASS: t-bswap
PASS: t-constants
PASS: t-count_zeros
PASS: t-gmpmax
PASS: t-hightomask
PASS: t-modlinv
PASS: t-popc
PASS: t-parity
PASS: t-sub
==================
All 9 tests passed
==================
Making check in devel
Making check in mpn
make  t-asmtype t-aors_1 t-divrem_1 t-mod_1 t-fat t-get_d t-instrument t-iord_u t-mp_bases t-perfsqr t-scan t-toom22 t-toom32 t-toom33 t-toom42 t-toom43 t-toom44 t-toom52 t-toom53 t-toom62 t-toom63 t-toom6h t-toom8h t-mul t-mullo t-mulmod_bnm1 t-sqrmod_bnm1 t-hgcd t-matrix22 t-invert t-div t-bdiv
make  check-TESTS
PASS: t-asmtype
PASS: t-aors_1
PASS: t-divrem_1
PASS: t-mod_1
PASS: t-fat
mpn_get_d wrong on 2^n
   bit      0
   exp      0
   want_bit 0
   sign     0
   n        =0x1
   nsize    1
   want     =[00 00 00 00 00 00 F0 3F] 1
   got      =[00 00 10 00 00 00 00 00] 5.1806537865363093631e-318
/bin/sh: line 1: 19552 Abort trap: 6           ${dir}$tst
FAIL: t-get_d
PASS: t-instrument
PASS: t-iord_u
PASS: t-mp_bases
PASS: 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-mul
PASS: t-mullo
PASS: t-mulmod_bnm1
PASS: t-sqrmod_bnm1
PASS: t-hgcd
PASS: t-matrix22
PASS: t-invert
PASS: t-div
PASS: t-bdiv
======================================================================================
1 of 32 tests failed
Please report to gmp-bugs at gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html
======================================================================================
make[4]: *** [check-TESTS] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 258886 bytes
Desc: not available
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20120413/9cce78f8/attachment-0001.obj>


More information about the gmp-bugs mailing list