Changes between Version 4 and Version 5 of SequoiaProblems


Ignore:
Timestamp:
Sep 18, 2024, 9:10:35 PM (9 days ago)
Author:
jmroot (Joshua Root)
Comment:

fix for C++ issue

Legend:

Unmodified
Added
Removed
Modified
  • SequoiaProblems

    v4 v5  
    99MacPorts 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).
    1010
    11 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`.
     11Ensure 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`.
    1212
    1313There 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`
     
    1515== Compiling C++ fails ==
    1616
    17 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.
     17The 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.
    1818
    19 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.
     19The fix is to delete the stray directory if it exists: `sudo rm -rf /Library/Developer/CommandLineTools/usr/include/c++`
    2020
    2121Ticket: #70750