On Feb 21, 2020, at 15:59, Greg Earle wrote: > -- > mojavemac:/ root# port install mercurial > Warning: The macOS 10.14 SDK does not appear to be installed. Ports may not > build correctly. > Warning: You can install it as part of the Xcode Command Line Tools package > by running `xcode-select --install'. > ---> Computing dependencies for mercurial > ---> Fetching archive for mercurial > ---> Attempting to fetch mercurial-5.3_1.darwin_18.x86_64.tbz2 from > https://packages.macports.org/mercurial > ---> Attempting to fetch mercurial-5.3_1.darwin_18.x86_64.tbz2 from > https://ywg.ca.packages.macports.org/mirror/macports/packages/mercurial > ---> Attempting to fetch mercurial-5.3_1.darwin_18.x86_64.tbz2 from > http://aus.us.packages.macports.org/macports/packages/mercurial > ---> Fetching distfiles for mercurial > ---> Verifying checksums for mercurial > ---> Extracting mercurial > ---> Applying patches to mercurial > ---> Configuring mercurial > ---> Building mercurial > Error: Failed to build mercurial: command execution failed > Error: See > /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_mercurial/mercurial/main.log > for details. > Error: Follow https://guide.macports.org/#project.tickets to report a bug. > Error: Processing of port mercurial failed > -- > > I don't understand why I get complaints about the SDK when it's most > definitely installed. > > -- > mojavemac:/ root# xcode-select --install > xcode-select: error: command line tools are already installed, use "Software > Update" to install updates > -- > > I verified that both > "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" > and "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" have a 10.14.6 SDK > installed in them. > > (I get the same complaints on my office Mac but that has Xcode 11.3.1 on it. > I figured it was because that version installs a Catalina SDK.) > > Anyway, the mercurial port install log file says > > -- > [...] > :info:build building 'mercurial.cext.osutil' extension > :info:build /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe > -Os > -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -isysroot/ > -Imercurial > -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -c mercurial/cext/osutil.c -o > build/temp.macosx-10.14-x86_64-2.7/mercurial/cext/osutil.o -DHAVE_BSD_STATFS > :info:build mercurial/cext/osutil.c:1334:10: fatal error: > 'ApplicationServices/ApplicationServices.h' file not found > :info:build #include <ApplicationServices/ApplicationServices.h> > :info:build ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > :info:build 1 error generated.
I guess you do not have /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk. I don't know why; that should be part of Xcode 10.x.
