[MacPorts] #61480: duti @1.5.4: fatal error: 'CoreFoundation/CoreFoundation.h' file not found
MacPorts
noreply at macports.org
Sun Nov 15 17:23:10 UTC 2020
#61480: duti @1.5.4: fatal error: 'CoreFoundation/CoreFoundation.h' file not found
------------------------+----------------------
Reporter: ryandesign | Owner: newtonne
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: | Port: duti
------------------------+----------------------
duti fails to build, for example on 10.10:
https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/127170/steps
/install-port/logs/stdio
{{{
clang: warning: no such sysroot directory:
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk'
}}}
{{{
./util.c:1:10: fatal error: 'CoreFoundation/CoreFoundation.h' file not
found
#include <CoreFoundation/CoreFoundation.h>
^
}}}
It is wrong for the build to try to determine what SDK to use. MacPorts
will tell the build what SDK, if any, should be used; the build should not
second-guess that.
The problem here happens because on 10.10 we are using Xcode 7.2.1 which
does not contain the 10.10 SDK and only contains the 10.11 SDK. For years
Apple has been introducing new versions of Xcode that contain only the
latest OS SDK, even if that version of Xcode runs on the previous version
of the OS.
--
Ticket URL: <https://trac.macports.org/ticket/61480>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list