[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
Wed Oct 2 18:57:33 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:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:  invalid   |   Keywords:  ventura
      Port:  gmp       |
-----------------------+---------------------------------
Changes (by kencu):

 * status:  assigned => closed
 * resolution:   => invalid


Comment:

 OK, this looks sorted.

 We had established there is no need to force any particular compiler, and
 the problem was with the new linker.

 Mark elegantly determined that it was "flat-namespace" that was the
 killer, and that because we set MACOSX_DEPLOYMENT_TARGET in MacPorts, that
 flat namespace is not going to be added to our macports builds.

 I can certainly confirm that there is no "flat namespace" in the macports
 builds:

 {{{
 /bin/sh ../libtool  --tag=CC   --mode=link clang  -O2 -pedantic -fomit-
 frame-pointer -m64 -mtune=nehalem -march=nehalem -no-install  -o
 libtests.la  memory.lo misc.lo refmpf.lo refmpn.lo refmpq.lo refmpz.lo
 spinner.lo trace.lo amd64call.lo amd64check.lo ../libgmp.la
 }}}

 and upstream has updated libtool already so that users playing with this
 outside of macports should see their "make check" working right with the
 next release.

 Case closed!

 Of the closing options -- the only one that really fits is "invalid" as
 this never affected macports builds anyway, in the end.

 If someone doesn't like "invalid", feel free to reclose it with whatever
 you want.

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


More information about the macports-tickets mailing list