[MacPorts] #70951: Linker ld warning -ld_classic is deprecated when compiling with gcc14
MacPorts
noreply at macports.org
Fri Sep 27 16:29:42 UTC 2024
#70951: Linker ld warning -ld_classic is deprecated when compiling with gcc14
-----------------------+---------------------
Reporter: haberg-1 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sequoia
Port: gcc14 |
-----------------------+---------------------
Comment (by markmentovai):
This was forked from #70866. Here’s the relevant portion of what I said at
ticket:70866#comment:34:
> This warning doesn’t come from gcc. It comes from Apple’s ld, as of
Xcode 16 (and the corresponding Command Line Tools version). MacPorts gcc
requests this linker: [https://github.com/macports/macports-
ports/blob/f3a3d36e576fcbf2a9ee970cf497741d349b0a16/lang/gcc14/Portfile#L229
lang/gcc14/Portfile]. (`${prefix}/bin/ld-classic`
[https://github.com/macports/macports-
ports/blob/32bc043e582c33a4636fee958774739e7cb90e5b/devel/ld64/files/ld-
classic-xcode is this wrapper] that finds and runs `ld -ld_classic`.)
>
> It’s possible that MacPorts gcc no longer needs the `ld-classic`
workaround as long as [https://github.com/gcc-
mirror/gcc/commit/0fe7962afc7c01488432b98b6f442b24946a490d gcc
0fe7962afc7c] is in effect. That change has been cherry-picked as far back
as [https://github.com/gcc-
mirror/gcc/commit/9488ad0d780fae91afa910410cb4e6da8d607fd9 gcc-11].
--
Ticket URL: <https://trac.macports.org/ticket/70951#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list