[MacPorts] SequoiaProblems modified

MacPorts Wiki noreply at macports.org
Wed Sep 18 21:10:36 UTC 2024


Page "SequoiaProblems" was changed by jmroot
Diff URL: <https://trac.macports.org/wiki/SequoiaProblems?action=diff&version=5>
Revision 5
Comment: fix for C++ issue
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: SequoiaProblems
=========================================================================
--- SequoiaProblems (version: 4)
+++ SequoiaProblems (version: 5)
@@ -8,15 +8,15 @@
 
 MacPorts must be [https://www.macports.org/install.php installed] in a version configured for macOS 15 Sequoia. If you update from an older OS version, you need to run `port migrate` to reinstall MacPorts base and installed ports that are not OS-independent (see link above).
 
-Ensure you have Xcode 16.0 or greater installed and selected (e.g. `sudo xcode-select -s /Applications/Xcode.app/Contents/Developer`), ~~and that you have the command line tools installed (`xcode-select --install`)~~. (CLTs should probably be avoided for now, see below.) You also have to agree to the license by running `sudo xcodebuild -license`. 
+Ensure you have Xcode 16.0 or greater installed and selected (e.g. `sudo xcode-select -s /Applications/Xcode.app/Contents/Developer`), and that you have the command line tools installed (`xcode-select --install`). (See below for a potential problem when upgrading from older CLT versions.) You also have to agree to the license by running `sudo xcodebuild -license`. 
 
 There have been reports that the `-license` option might not be sufficient alone, and following command might be required to agree to the license: `sudo xcodebuild -runFirstLaunch`
 
 == Compiling C++ fails ==
 
-The C++ compiler in the Command Line Tools for Xcode 16 appears to be broken on Sequoia; it does not look in the correct place for C++ headers. The majority of ports that contain C++ code will likely fail to build as a result.
+The installer for the Command Line Tools for Xcode 16 does not delete a directory that was installed by some older versions of the CLTs, which unfortunately causes clang++ to look in the wrong place for C++ headers. The majority of ports that contain C++ code will fail to build as a result.
 
-The workaround is to use the compiler in the Xcode app. Either not installing the CLTs in the first place, or deleting `/Library/Developer/CommandLineTools` if they are already installed, will force MacPorts to use Xcode instead.
+The fix is to delete the stray directory if it exists: `sudo rm -rf /Library/Developer/CommandLineTools/usr/include/c++`
 
 Ticket: #70750
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/SequoiaProblems>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'SequoiaProblems' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list