After updating to Mac OS 15.4 + latest Xcode etc I am unable to run cmake on todays origin/master:
The command I run is:
cmake -DCMAKE_INSTALL_PREFIX=/opt/hep/root/main_April4_2025 /Users/markhodgkinson/root_src_April2025 -GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_STANDARD=17
-Dfail-on-missing=ON
-Dgdml=ON
-Dx11=ON
-Dpyroot=ON
-Ddataframe=ON
-Dmysql=OFF
-Doracle=OFF
-Dpgsql=OFF
-Dsqlite=OFF
-Dpythia6=OFF
-Dpythia8=OFF
-Dfftw3=OFF
-Dbuiltin_cfitsio=ON
-Dbuiltin_xxhash=ON
-Dbuiltin_afterimage=ON
-Dbuiltin_openssl=OFF
-Dbuiltin_ftgl=ON
-Dbuiltin_glew=ON
-Dbuiltin_gsl=ON
-Dbuiltin_gl2ps=ON
-Dbuiltin_xrootd=ON
-Dgfal=OFF
-Ddavix=ON
-Dbuiltin_vdt=ON
-Dxrootd=OFF
-Dtmva=ON
which gives the following errors:
– The C compiler identification is AppleClang 17.0.0.17000013
– The CXX compiler identification is AppleClang 17.0.0.17000013
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
CMake Error at CMakeLists.txt:62 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:72 (strip_path)
CMake Error at CMakeLists.txt:62 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:76 (strip_path)
– Found Git: /usr/bin/git (found version “2.39.5 (Apple Git-154)”)
– Building ROOT version 6.35.01
– Looking for a CUDA compiler
– Looking for a CUDA compiler - NOTFOUND
– The default C++ standard in use by the detected compiler (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++) is lower than C++17. Setting C++17 as the minimum standard.
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
– Found Threads: TRUE
– Found a macOS system
– Found an AArch64 system
– Performing Test GLIBCXX_USE_CXX11_ABI
– Performing Test GLIBCXX_USE_CXX11_ABI - Failed
– ROOT default compression algorithm: zlib
CMake Error at cmake/modules/RootBuildOptions.cmake:393 (message):
‘builtin_afterimage’ is no longer part of ROOT 6.35.01 build options.
Call Stack (most recent call first):
CMakeLists.txt:96 (include)
Is there a solution?
Cheers,
Mark