[MacPorts] #66352: clang-15: unable to locate default SDK
MacPorts
noreply at macports.org
Thu Dec 1 09:27:04 UTC 2022
#66352: clang-15: unable to locate default SDK
-----------------------+-----------------------------
Reporter: judaew | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.0
Resolution: | Keywords: ventura, x86_64
Port: clang-15 |
-----------------------+-----------------------------
Comment (by judaew):
Thank you for taking the time for me. After rebuilding this port with
Xcode installed, the issue disappeared. Currently, Clang finds SDKs both
with and without Xcode.
P.S. If anyone gets this issue, then the best workaround without Xcode is
the SDKROOT variable. It should help Clang find a path to the SDK.
{{{
export SDKROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
# or
export SDKROOT=$(xcrun --show-sdk-path)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/66352#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list