[MacPorts] #70750: MacOS Sequoia: C++ headers are not found with CLTs installed
MacPorts
noreply at macports.org
Wed Sep 18 19:34:21 UTC 2024
#70750: MacOS Sequoia: C++ headers are not found with CLTs installed
-----------------------+---------------------
Reporter: SaintBol | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sequoia
Port: |
-----------------------+---------------------
Comment (by wdormann):
Replying to [comment:34 kencu]:
> Then I blew out the CLTs with {{{ sudo rm -rf
/Library/Developer/CommandLineTools}}} and installed the current CLTs
(Xcode 16, not Xcode 16.1 beta) and then everything works fine.
OK, so this is interesting. I attempted this (removing the directory) and
then installing CLT via {{{xcode-select --install}}} on my system that has
Xcode 16 installed. The result of this?
{{{
Error: The installed version of the Command Line Tools for Xcode
(15.3.0.0.1.1708646388) is too old to use on the installed OS version.
Please install version 16 or later on macOS 15.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port pcre failed
}}}
So oddly the {{{xcode-select}}} tool (from Xcode 16? {{{xcode-select
version 2409}}}), installs CLT 15.3.0.0.1.1708646388? In the past I
recall using {{{xcode-select}}} (I think? It's a bit of a blur to me by
now) to upgrade from the Terminal CLT 15.3.0.0.1.1708646388 to CLT 16, and
that worked well enough to get MacPorts working, though in a semi-broken
way as outlined in this bug.
I don't have the environment available to me at the moment, but I wonder
if somehow my broken state was encountered because the system somehow had
both CLT 16 installed, but also remnants of the prior CLT
15.3.0.0.1.1708646388?
Anyway,
I was able to get MacPorts fully working by:
1. {{{sudo rm -rf /Library/Developer/CommandLineTools}}}
1. Install CLT 16 from the DMG available from
https://developer.apple.com/download/all/
({{{Command_Line_Tools_for_Xcode_16.dmg}}})
After this, everything is working fine.
--
Ticket URL: <https://trac.macports.org/ticket/70750#comment:37>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list