Opened 5 years ago

Last modified 4 years ago

#59088 new defect

Xcode update broke linkages — at Version 7

Reported by: rhc54 (Ralph Castain) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.0
Keywords: xcode11 Cc: michaellass (Michael Lass)
Port:

Description (last modified by mf2k (Frank Schima))

Apple apparently included an Xcode update in a recent maintenance release. Since the update, I am unable to run many of the compiler ports (gcc, python) due to errors stating that system headers and libraries cannot be found. Investigation revealed that the ports were all configured with:

--with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk

However, the Xcode update apparently removed the MacOSX10.14.sdk and replaced it with MacOSX10.15.sdk - even though I have NOT updated the OS from Mojave!

I tried uninstalling all ports and reinstalling them, but that didn't help. Ditto for simply creating a MacOSX10.14.sdk symlink. Does anyone have a suggestion on how to get around this problem?

Change History (7)

comment:1 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: xcode headers removed

I guess you upgraded to Xcode 11. It is normal that Apple only includes the SDK for the most recent macOS in each new Xcode version, even if that is newer than your OS version.

I guess the path to the 10.14 SDK got baked into some ports in a way that impacts other ports. We'll have to identify all those places and fix each port not to do that.

comment:2 Changed 5 years ago by kencu (Ken)

It sounds like I would be smart to copy over the 10.14 SDK to /Library/Developer/CommandLineTools/SDKs/ before I upgrade Xcode...

comment:3 Changed 5 years ago by rhc54 (Ralph Castain)

Indeed - downgrading Xcode per suggestions on the user mailing list resolved the problem. The issues I encountered were with the gcc compilers, if that helps.

Meantime, I'll close this ticket as my problem has been resolved. Sorry for the noise. Apple slipped that one by me - my bad.

comment:4 Changed 5 years ago by kencu (Ken)

I think we're going to have to follow Apple's lead and use

--with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

comment:5 Changed 5 years ago by michaellass (Michael Lass)

Cc: michaellass added

comment:6 Changed 5 years ago by aivazis (Michael Aivazis)

In the meantime, can can someone show us how to generate a gcc specs file and drop it in the magic place to redirect sysroot to the new location?

comment:7 Changed 5 years ago by mf2k (Frank Schima)

Description: modified (diff)

In the future, please use WikiFormatting.

Note: See TracTickets for help on using tickets.