[MacPorts] #71085: port -dv selfupdate fails for Macports 2.10.2, Sonoma 14.7, xcode 16

MacPorts noreply at macports.org
Fri Oct 11 13:29:58 UTC 2024


#71085: port -dv selfupdate fails for Macports 2.10.2, Sonoma 14.7, xcode 16
-----------------------+--------------------
  Reporter:  kcap-tha  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  base      |    Version:  2.10.2
Resolution:            |   Keywords:
      Port:            |
-----------------------+--------------------

Comment (by kcap-tha):

 My SDK, based on where the errors are coming from, is pointing here:
 {{{
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/
 }}}


 When I look at the `usr/include/mach/port.h` it's actually empty, that
 screams "problem" to me.
 Check this out:


 `ls -l
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/mach/port.h`
 {{{
 -r--r--r--  1 root  wheel  0 Apr 24 23:38
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/mach/port.h

 }}}

 So I verified:

 {{{
 xcode-select --install
 xcode-select: note: Command line tools are already installed. Use
 "Software Update" in System Settings or the softwareupdate command line
 interface to install updates
 }}}

 So I removed the CommandLineTools (`rm -rf
 /Library/Developer/CommandLineTools/`) and re-installed (`xcode-select
 --install`) them.

 I tried the `port -dv selfupdate` command again and the build completed
 this time.
 So, to your point, it was specific to my machine.  The real mystery is how
 did port.h become empty?

 Thanks for helping me find the right places to poke around and get this
 issue resolved.
 Appreciate all you guys do for the MacPorts project.

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


More information about the macports-tickets mailing list