Re: [MacPorts] #70866: gcc14 doesn’t build for x86_64 on macOS 15 (Xcode 16): “Undefined symbols for architecture x86_64” while linking libgcc_s.1.dylib
MacPorts
noreply at macports.org
Fri Sep 27 15:00:16 UTC 2024
#70866: gcc14 doesn’t build for x86_64 on macOS 15 (Xcode 16): “Undefined symbols
for architecture x86_64” while linking libgcc_s.1.dylib
---------------------------+-----------------------------------
Reporter: markmentovai | Owner: markmentovai
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: fixed | Keywords: sonoma sequoia x86_64
Port: gcc14 |
---------------------------+-----------------------------------
Comment (by markmentovai):
Replying to [comment:33 haberg-1]:
> It installs now, but I get a linker warning when compiling a C++
program:
> ld: warning: -ld_classic is deprecated and will be removed in a future
release
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`.)
A new bug should be filed for this. It’s not related to this bug report,
“Undefined symbols for architecture x86_64” while linking libgcc_s.1 from
gcc14.
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/70866#comment:34>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list