work-around for Xcode 15 linker issue?

Maxim Abalenkov maxim.abalenkov at gmail.com
Wed Oct 4 10:08:17 UTC 2023


Dear Murray, Chris et al.,

How are you? I’m very sorry. I didn’t mean to mislead anybody. I’m also learning. What user does MacPorts run as? Maybe it would be possible to pass these environment variables to that ‘MacPorts’ user?

—
Best wishes,
Maxim

Maxim Abalenkov \\ maxim.abalenkov at gmail.com
+44 7 486 486 505 \\ www.maxim.abalenkov.uk

> On 3 Oct 2023, at 21:25, Chris Jones <jonesc at hep.phy.cam.ac.uk> wrote:
> 
> Hi,
> 
> Just incase any one else reads this, anything you add to your user profile will nit have any effect on port builds, as these do not run as your user. So don’t try this expecting it to fix port builds. 
> 
> Chris
> 
>> On 2 Oct 2023, at 4:18 pm, Maxim Abalenkov <maxim.abalenkov at gmail.com> wrote:
>> 
>> Hello Murray,
>> 
>> How are you? 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
>> 
>> 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.
>> 
>>>> Best wishes,
>> Maxim
>> 
>> Maxim Abalenkov \\ maxim.abalenkov at gmail.com
>> +44 7 486 486 505 \\ www.maxim.abalenkov.uk
>> 
>>> On 2 Oct 2023, at 15:29, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
>>> 
>>> As reported at 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	
>>> 
>>> 
>>> 
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20231004/920b68c7/attachment.htm>


More information about the macports-users mailing list