[MacPorts] #68343: ffmpeg configure fails, clang unable to create executables
MacPorts
noreply at macports.org
Thu Oct 5 12:51:51 UTC 2023
#68343: ffmpeg configure fails, clang unable to create executables
---------------------------+----------------------
Reporter: ShadSterling | Owner: (none)
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: ffmpeg |
---------------------------+----------------------
Comment (by cjones051073):
Replying to [comment:12 kencu]:
> Chris, so this is twice now this issue shows up, where a user has Xcode
15 installed but also has out of date command line tools, so this error
comes up when the -ld_classic flag is sent to the older ld in the CLTs
that doesn't understand it.
>
> I can't think of any good fix other than noticing the issue in their
logs and telling people to update their CLTs, but Ryan is asking for one.
>
> Can you think up some magic incantation to get past this issue?
I guess in principle it would be possible to query the CLT and xcode
vesions, using something similar to what I do here
https://github.com/macports/macports-
ports/blob/master/lang/gcc13/Portfile#L174
to detect when to apply the flag in gcc builds.
It probably though would not make sense to do this at the port level, so
its something someone would have to propose adding to base (perhaps adding
it to port diagnose).
That though will take a long time to get to users, and by then who knows
perhaps Apple would have fixed the issue anyway...
Until then, I think it is just a cause of being aware of this and looking
out for it..
--
Ticket URL: <https://trac.macports.org/ticket/68343#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list