[MacPorts] #61736: qt5 clears configure.sdkroot which causes erroneous "SDK does not appear to be installed" warning
MacPorts
noreply at macports.org
Thu Feb 24 09:06:35 UTC 2022
#61736: qt5 clears configure.sdkroot which causes erroneous "SDK does not appear to
be installed" warning
---------------------------+---------------------------------
Reporter: cbitterfield | Owner: MarcusCalhoun-Lopez
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords:
Port: qt5 |
---------------------------+---------------------------------
Comment (by joostdekeijzer):
Hi,
On macOS Big Sur, I upgraded my Xcode to v13. Now eg. sqlitebrowser or
GPXSee don't build any more with the error: `xcrun: error: SDK "macosx11"
cannot be located`
{{{
[my-mac (joostdekeijzer):~]% xcodebuild -version
Xcode 13.2.1
Build version 13C100
[my-mac (joostdekeijzer):~]%
[my-mac (joostdekeijzer):~]% xcodebuild -showsdks
DriverKit SDKs:
DriverKit 21.2 -sdk driverkit21.2
iOS SDKs:
iOS 15.2 -sdk iphoneos15.2
iOS Simulator SDKs:
Simulator - iOS 15.2 -sdk iphonesimulator15.2
macOS SDKs:
macOS 12.1 -sdk macosx12.1
tvOS SDKs:
tvOS 15.2 -sdk appletvos15.2
tvOS Simulator SDKs:
Simulator - tvOS 15.2 -sdk appletvsimulator15.2
watchOS SDKs:
watchOS 8.3 -sdk watchos8.3
watchOS Simulator SDKs:
Simulator - watchOS 8.3 -sdk watchsimulator8.3
[my-mac (joostdekeijzer):~]%
[my-mac (joostdekeijzer):~]% ls -la
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
total 0
drwxr-xr-x 4 root wheel 128 Dec 20 13:33 .
drwxr-xr-x 6 root wheel 192 Dec 20 13:33 ..
drwxr-xr-x 7 root wheel 224 Dec 20 13:32 MacOSX.sdk
lrwxr-xr-x 1 root wheel 10 Dec 17 12:32 MacOSX12.1.sdk -> MacOSX.sdk
[my-mac (joostdekeijzer):~]%
[my-mac (joostdekeijzer):~]% ls -la
/Library/Developer/CommandLineTools/SDKs
total 0
drwxr-xr-x 8 root wheel 256 Feb 21 13:44 .
drwxr-xr-x 5 root wheel 160 Feb 16 15:19 ..
lrwxr-xr-x 1 root wheel 14 Feb 18 12:13 MacOSX.sdk -> MacOSX12.1.sdk
drwxr-xr-x 8 root wheel 256 Feb 16 15:25 MacOSX10.15.sdk
drwxr-xr-x 7 root wheel 224 Feb 18 12:14 MacOSX11.3.sdk
lrwxr-xr-x 1 root wheel 14 Feb 18 12:12 MacOSX11.sdk -> MacOSX11.3.sdk
drwxr-xr-x 7 root wheel 224 Feb 18 12:14 MacOSX12.1.sdk
lrwxr-xr-x 1 root wheel 14 Feb 18 12:11 MacOSX12.sdk -> MacOSX12.1.sdk
[my-mac (joostdekeijzer):~]%
}}}
To try to fix, I've uninstalled all ports, re-installed the commandline
tools, macports etc. But the error persists.
Below the output of `xcrun`
{{{
[my-mac (joostdekeijzer):~]% xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
[my-mac (joostdekeijzer):~]%
[my-mac (joostdekeijzer):~]% xcrun --sdk macosx --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk
[my-mac (joostdekeijzer):~]%
[my-mac (joostdekeijzer):~]% xcrun --sdk macosx11 --show-sdk-path
xcodebuild: error: SDK "macosx11" cannot be located.
xcodebuild: error: SDK "macosx11" cannot be located.
xcrun: error: unable to lookup item 'Path' in SDK 'macosx11'
[my-mac (joostdekeijzer):~]%
[my-mac (joostdekeijzer):~]% xcrun --sdk macosx12 --show-sdk-path
xcodebuild: error: SDK "macosx12" cannot be located.
xcodebuild: error: SDK "macosx12" cannot be located.
xcrun: error: unable to lookup item 'Path' in SDK 'macosx12'
[my-mac (joostdekeijzer):~]%
[my-mac (joostdekeijzer):~]% xcrun --sdk macosx12.1 --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk
[my-mac (joostdekeijzer):~]%
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61736#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list