[MacPorts] #68322: libgcc12 @12.3.0: ld: library not found for -ld_classic
MacPorts
noreply at macports.org
Mon Oct 2 20:33:41 UTC 2023
#68322: libgcc12 @12.3.0: ld: library not found for -ld_classic
-----------------------+--------------------
Reporter: k6wx | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: libgcc12 |
-----------------------+--------------------
Comment (by cjones051073):
Replying to [comment:25 Dave-Allured]:
> Okay. All I can say now is that command option `-ld_classic` passed to
any older version of the Xcode linker by any mechanism, has an exact
explanation for "library not found". `-ld_classic` is being
misinterpreted as a library request of the form `-l${short_lib_name}`.
Linker looks for `libd_classic.dylib` and does not find it. This might
not be the right explanation, but it is likely.
No it is not. The -ld_classic option is only used by gcc when the user is
running macOS13 or newer, and then only when they also have Xcode15 or
newer.
https://github.com/macports/macports-
ports/blob/master/lang/gcc12/Portfile#L168
Honestly, this is IMHO not where the problem lies.
>
> Kristen, I suggest that in addition to updating your CLT, also `port
selfupdate` before testing again.
This for me is the far more likely reason, as it also explains why the
issue doesn't seem to affect others. The configuration gcc12 has to work
around the Xcode15 issues have been used just fine in a number of other
places so far.
--
Ticket URL: <https://trac.macports.org/ticket/68322#comment:26>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list