On Tue, Oct 08, 2019 at 11:15:33PM +0200, Noryungi wrote:
>Any ideas? It seems it has also hit other projects, such as Brew.
I saw the same issue, also with 10.14.6 and XCode 11.1.
Checking mk/platform/Darwin.mk, I can see the following two checks:
. if !defined(OSX_SDK_PATH)
OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx${OSX_VERSION} --show-sdk-path 2>/dev/null || echo /nonexistent
OSX_TOLERATE_SDK_SKEW?= no
. if ${OSX_SDK_PATH} == "/nonexistent" && !empty(OSX_TOLERATE_SDK_SKEW:M[Yy][Ee][Ss])
OSX_SDK_PATH!= /usr/bin/xcrun --sdk macosx --show-sdk-path 2>/dev/null || echo /nonexistent
. endif
The first xcrun check will naturally fail as XCode 11.1 installs the 10.15 SDK. The
second xcrun check is not called by default as OSX_TOLERATE_SDK_SKEW is not set
to "yes" by default. Setting that variable in /usr/pkg/etc/mk.conf resolved the
issue for me.
I'm guessing a permanent fix in Darwin.mk may be a better option otherwise lots
of people are going to run into this one...
Cheers, MJ
--
Michael-John Turner * mj%mjturner.net@localhost * http://mjturner.net/