[MacPorts] #57143: Unable to determine location of a macOS SDK

MacPorts noreply at macports.org
Thu Oct 4 00:56:21 UTC 2018


#57143: Unable to determine location of a macOS SDK
------------------------+--------------------
  Reporter:  ivanatina  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  base       |    Version:  2.5.99
Resolution:             |   Keywords:
      Port:             |
------------------------+--------------------

Comment (by vtjnash):

 I saw this recently too. I'm on 10.13 with latest XCode (10.0).

 Here's an example port action that tried to read this information and
 failed:
 {{{
 ~$ sudo port deactivate python27
 Error: Unable to determine location of a macOS SDK.
 Error: python27: Error executing universal: can't read
 "configure.sdkroot": Unable to determine location of a macOS SDK.
 Warning: Failed to open Portfile from registry for python27
 @2.7.15_1+universal
 Note: It is not recommended to uninstall/deactivate a port that has
 dependents as it breaks the dependents.
 }}}

 I also at other times got the warning that I should run `xcode-select
 --install`. Perhaps this message could be improved however. Standalone, it
 seems fine, but if you run `xcode-select --install', the dialog box that
 pops up presents XCode as a valid alternative. This is especially
 confusing because it used to actually be that XCode was required.
 {{{
 ~$ sudo port install nodejs10
 Warning: System headers do not appear to be installed. Most ports should
 build correctly, but if you experience problems due to a port depending on
 system headers, please file a ticket at https://trac.macports.org.
 Warning: You can install them as part of the Xcode Command Line Tools
 package by running `xcode-select --install'.
 }}}


 And just one more note, I tested that with forcing 10.14 it works:
 {{{
 echo macosx_sdk_version 10.14 | sudo tee -a
 /opt/local/etc/macports/macports.conf
 }}}
 and also that installing the Developer Tools through `xcode-select
 --install` makes it work.

-- 
Ticket URL: <https://trac.macports.org/ticket/57143#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list