[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 05:50:28 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):
I have been trying to show that gcc builds gmp incorrectly when using the
standard linker too, just like clang does...
but no matter what I do, I can't seem to force gcc14 to use the standard
linker. It always uses ld_classic, eg:
{{{
libtool: link: gcc-mp-14 -O2 -pedantic -fomit-frame-pointer -m64
-mtune=nehalem -march=nehalem -o .libs/t-toom6h t-toom6h.o
../../tests/.libs/libtests.a /Users/cunningh/gmp-6.3.0/.libs/libgmp.dylib
../../.libs/libgmp.dylib
ld: warning: -ld_classic is deprecated and will be removed in a future
release
}}}
I thought gcc had been changed recently to no longer use ld_classic --
that is what the commits said
https://github.com/macports/macports-
ports/commits/master/lang/gcc14/Portfile
but there have been some fixups and refixups in gcc and I"m not sure just
now what it is doing.
what I do know is that these gcc14 versions:
{{{
% port -v installed gcc14 libgcc14
The following ports are currently installed:
gcc14 @14.2.0_3+stdlib_flag (active) requested_variants=''
platform='darwin 23' archs='x86_64' date='2024-09-30T22:25:34-0700'
libgcc14 @14.2.0_3+stdlib_flag (active) requested_variants=''
platform='darwin 23' archs='x86_64' date='2024-09-30T22:25:29-0700'
}}}
which are current, are using ld_classic as above.
--
Ticket URL: <https://trac.macports.org/ticket/70859#comment:31>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list