[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 19:21:22 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):
You are correct that a linker is installed with all our recent clang
ports. However, it is not used, by default at least. I believe that even
on the most recent llvm builds that linker is not considered "ready for
prime time". I believe the new xcode linker (which is causing our troubles
here) is a fork of that project, however.
The linker used by default by macports-clang versions continues to be the
one pointed to by the ld64 port with it's shim in {{{${prefix}/bin/ld}}},
and most often that points to {{{ld64 +xcode}}} to pick up the xcode-
supplied linker.
I did mention that on MacOS 12.7 gmp built without troubles using clang-18
to build it. MacOS 12.7 uses the xcode linker, which at that stage of
things is equivalent to "ld_classic". I was using that example more to
support the idea that it wasn't something with newer clangs that was
causing the build errors, it was something else (like the linker).
--
Ticket URL: <https://trac.macports.org/ticket/70859#comment:52>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list