I had two different machines (both intel and arm64) that were no longer able to compile C++ code after MacOS automatically updated to Command Line Tools for Xcode version 16 on Sequoia. After the update, clang is no longer able to find libc++ headers, e.g.
fatal error: 'cmath' file not found 100 | #include <cmath> | ^~~~~~~ 1 error generated. The solution is given on https://trac.macports.org/wiki/SequoiaProblems: 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 fix is to delete the stray directory if it exists: sudo rm -rf /Library/Developer/CommandLineTools/usr/include/c++ Hope this helps some others. _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac