[MacPorts] #70859: gmp @6.3.0: tests fail when built with clang on Intel only, but pass when assembly is disabled. Forcing ld_classic appears to fix the issue.

MacPorts noreply at macports.org
Tue Oct 1 14:31:40 UTC 2024


#70859: gmp @6.3.0: tests fail when built with clang on Intel only, but pass when
assembly is disabled. Forcing ld_classic appears to fix the issue.
-----------------------+---------------------------------
  Reporter:  haberg-1  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  ventura
      Port:  gmp       |
-----------------------+---------------------------------

Comment (by kencu):

 OK, confirmed. This issue has absolutely nothing to do with building with
 either gcc or clang, and is 100% related to ld_classic vs ld_prime.

 If gcc14 is built to use the new linker, and gmp is built with gcc14, then
 gmp fails every bit as badly as clang does:

 {{{
  t-gcdext_1 t-gcdext_1.o ../../tests/libtests.la ../../libgmp.la
 libtool: warning: '-no-install' is ignored for westmere-apple-darwin23.6.0
 libtool: warning: assuming '-no-fast-install' instead
 libtool: link: gcc-mp-14 -O2 -pedantic -fomit-frame-pointer -m64
 -mtune=nehalem -march=nehalem -o .libs/t-gcdext_1 t-gcdext_1.o
 ../../tests/.libs/libtests.a /Users/cunningh/gmp-6.3.0/.libs/libgmp.dylib
 ../../.libs/libgmp.dylib
 /Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
 PASS: t-asmtype
 PASS: t-aors_1
 ../../test-driver: line 107: 36828 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-divrem_1
 PASS: t-mod_1
 ../../test-driver: line 107: 36866 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-fat
 PASS: t-get_d
 PASS: t-instrument
 PASS: t-iord_u
 PASS: t-mp_bases
 PASS: t-perfsqr
 PASS: t-scan
 PASS: logic
 ../../test-driver: line 107: 37022 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-toom22
 ../../test-driver: line 107: 37041 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-toom32
 ../../test-driver: line 107: 37060 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-toom33
 ../../test-driver: line 107: 37079 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-toom42
 ../../test-driver: line 107: 37098 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-toom43
 ../../test-driver: line 107: 37117 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-toom44
 ../../test-driver: line 107: 37136 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-toom52
 ../../test-driver: line 107: 37155 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-toom53
 ../../test-driver: line 107: 37174 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-toom54
 ../../test-driver: line 107: 37193 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-toom62
 ../../test-driver: line 107: 37212 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-toom63
 ../../test-driver: line 107: 37231 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-toom6h
 ../../test-driver: line 107: 37250 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-toom8h
 PASS: t-toom2-sqr
 PASS: t-toom3-sqr
 PASS: t-toom4-sqr
 ../../test-driver: line 107: 37326 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-toom6-sqr
 ../../test-driver: line 107: 37345 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-toom8-sqr
 ../../test-driver: line 107: 37364 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-div
 ../../test-driver: line 107: 37383 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-mul
 ../../test-driver: line 107: 37402 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-mullo
 ../../test-driver: line 107: 37421 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-sqrlo
 ../../test-driver: line 107: 37440 Trace/BPT trap: 5       "$@" >
 $log_file 2>&1
 FAIL: t-mulmod_bnm1
 ../../test-driver: line 107: 37459 Trace/BPT trap: 5       "$@" >
 $log_file 2>&1
 FAIL: t-sqrmod_bnm1
 PASS: t-mulmid
 ../../test-driver: line 107: 37497 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-mulmod_bknp1
 ../../test-driver: line 107: 37516 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-sqrmod_bknp1
 SKIP: t-addaddmul
 ../../test-driver: line 107: 37554 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-hgcd
 ../../test-driver: line 107: 37573 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-hgcd_appr
 ../../test-driver: line 107: 37592 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-matrix22
 ../../test-driver: line 107: 37611 Trace/BPT trap: 5       "$@" >
 $log_file 2>&1
 FAIL: t-invert
 ../../test-driver: line 107: 37630 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-bdiv
 ../../test-driver: line 107: 37649 Illegal instruction: 4  "$@" >
 $log_file 2>&1
 FAIL: t-fib2m
 PASS: t-broot
 PASS: t-brootinv
 PASS: t-minvert
 ../../test-driver: line 107: 37725 Segmentation fault: 11  "$@" >
 $log_file 2>&1
 FAIL: t-sizeinbase
 PASS: t-gcd_11
 PASS: t-gcd_22
 PASS: t-gcdext_1
 ============================================================================
 Testsuite summary for GNU MP 6.3.0
 ============================================================================
 # TOTAL: 53
 # PASS:  20
 # SKIP:  1
 # XFAIL: 0
 # FAIL:  32
 # XPASS: 0
 # ERROR: 0
 ============================================================================
 See tests/mpn/test-suite.log
 Please report to gmp-bugs at gmplib.org (see https://gmplib.org/manual
 /Reporting-Bugs.html)
 ============================================================================
 make[5]: *** [test-suite.log] Error 1
 make[4]: *** [check-TESTS] Error 2
 make[3]: *** [check-am] Error 2
 make[2]: *** [check-recursive] Error 1
 make[1]: *** [check-recursive] Error 1
 make: *** [check] Error 2
 cunningh at macpro gmp-6.3.0 %
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70859#comment:35>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list