work-around for Xcode 15 linker issue?

Murray Eisenberg murrayeisenberg at gmail.com
Tue Oct 3 20:29:26 UTC 2023


I was just trying what was recommended by Maxim Abalenkov 

> On Oct 3, 2023, at 4:15 PM, Chris Jones <jonesc at hep.phy.cam.ac.uk> wrote:
> 
> 
> 
>> On 3 Oct 2023, at 9:03 pm, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
>> 
>> Several ports I had been trying tore-ininstall under macOS Sonoma (in order to re-install, finally, maxima and wxMaxima,
>> still seem to be failing configuration, even though I did add the two exports to my ~/.profile (and, of course, after restarting the shell), namely:
>> 
>> ipopt, sbcl, scalapack, scotch
>> 
>> I've updated existiing, or filed new, tickets about that.
>> 
>> Anything else to try?
> 
> Adding those exports to your personal profile was never going to help with macports builds, as those builds do not run as your user, but the macports one. So its not surprising they did not help.
> 
> The only real way forward is for affected ports to be updated to explicitly use the classic linker option. If trac tickets do not exist for the issues you see please submit them so the maintainers in question can take a look.
> 
> Chris
> 
>> 
>>> On Oct 2023 16:18:25 +0100, Maxim Abalenkov <maxim.abalenkov at gmail.com <mailto:maxim.abalenkov at gmail.com>> wrote:
>>> 
>>> ... As mentioned in the previous posts on this list, please see Apple?s comments on the new linker issue:
>>> 
>>> https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Linking?
>>> Xcode 15 Release Notes | Apple Developer Documentation
>>> developer.apple.com <http://developer.apple.com/>
>>> 
>>> For now, use Xcode 15 and its command line tools and try to enforce the old linker by defining the following environment variables:
>>> 
>>>  export MACOSX_DEPLOYMENT_TARGET=12
>>>  export OTHER_LDFLAGS=-Wl,-ld_classic
>>> 
>>> You may place them into your ~/.profile file. I hope this helps.
>>> 
>>> 
>>>> On 2 Oct 2023, at 15:29, Murray Eisenberg <murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>> wrote:
>>>> 
>>>> As reported at grac.macports.org <http://grac.macports.org/> <http://grac.macports.org/>, a number of ports will no longer install because configure fails with Xcode 15, which apparently has a linker issues.
>>>> 
>>>> Some have suggested reverting to Xcode 14.3.1, to work around those issues.
>>>> 
>>>> But under macOS Sonoma, that does not seem to be an option: After replacing Xcode 15 with Xcode 14.3.1, and similarly for the command-line tools, if I open Xcode 14.3.1, I get an error that this version of Xcode will not work with the OS (Sonoma).
>>>> 
>>>> Is there some other work-around?
>> 
>> ---
>> Murray Eisenberg		murrayeisenberg at gmail.com
>> Mobile (413)-427-5334
>> 503 King Farm Blvd #101		
>> Rockville, MD 20850-6667

---
Murray Eisenberg		murrayeisenberg at gmail.com
Mobile (413)-427-5334
503 King Farm Blvd #101		
Rockville, MD 20850-6667	



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20231003/664a47bb/attachment.htm>


More information about the macports-users mailing list