Installation Issue on Mac (Ventura 13.3.1)(M1 Max)

I’ve run into an installation from source code issue in which the cxxabi.h header file cannot be found. There are several versions of this file on my computer, e.g.


I am running python 3.11.3.

The relevant part of the build output is:

%>sudo cmake --build .  --target install 

[ 47%] Generating G__Core.cxx, ../lib/Core.pcm
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /usr/local/root-6.28.02/build/include/Rtypes.h:195:
In file included from <module-includes>:4:
/usr/local/root-6.28.02/build/include/TClassEdit.h:29:10: fatal error: 'cxxabi.h' file not found
#include <cxxabi.h>
In file included from input_line_3:2:
/usr/local/root-6.28.02/build/include/Rtypes.h:195:10: fatal error: could not build module 'ROOT_Foundation_Stage1_NoRTTI'
#include "TIsAProxy.h"
Error: Error loading the default rootcling header files.
make[2]: *** [core/G__Core.cxx] Error 1
make[1]: *** [core/CMakeFiles/G__Core.dir/all] Error 2
make: *** [all] Error 2

Here is the cmake output:

-- The C compiler identification is AppleClang
-- The CXX compiler identification is AppleClang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/ - 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/ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.39.2 (Apple Git-143)") 
-- Checking internet connectivity
-- Checking internet connectivity - found
-- Looking for Python
-- Found Python3: /opt/homebrew/opt/python@3.11/libexec/bin/python (found version "3.11.3") found components: Interpreter Development NumPy Development.Module Development.Embed 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found a macOS system 13.3
-- Found an AArch64 system
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Failed
-- ROOT Platform: macosx
-- ROOT Compiler: AppleClang
-- ROOT Processor: arm64
-- ROOT Architecture: macosxarm64
-- Build Type: 'Release' (flags = '-O3 -DNDEBUG')
-- Compiler Flags:  -std=c++14 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ -O3 -DNDEBUG
-- ROOT default compression algorithm: zlib
CMake Deprecation Warning at cmake/modules/RootBuildOptions.cmake:428 (message):
  >>> Option 'gfal' is deprecated and will be removed in the next release of
  ROOT.  Please contact should you still need it.
Call Stack (most recent call first):
  CMakeLists.txt:166 (include)

-- PyROOT will be built for version 3.11.3
-- Looking for ZLib
-- Found ZLIB: /Applications/ (found version "1.2.11") 
-- Looking for nlohmann/json.hpp
-- nlohmann/json.hpp not found. Switching on builtin_nlohmannjson option
-- Building freetype version 2.12.1 included in ROOT itself
-- Looking for PCRE
-- Found PCRE: /opt/homebrew/include (found version "8.45") 
-- Looking for LZMA
-- Looking for lzma_auto_decoder in /Applications/
-- Looking for lzma_auto_decoder in /Applications/ - found
-- Looking for lzma_easy_encoder in /Applications/
-- Looking for lzma_easy_encoder in /Applications/ - found
-- Looking for lzma_lzma_preset in /Applications/
-- Looking for lzma_lzma_preset in /Applications/ - found
-- Found LibLZMA: /Applications/ (found version "5.4.2") 
-- Looking for xxHash
-- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR) 
-- xxHash not found. Switching on builtin_xxhash option
-- Looking for ZSTD
-- Found ZSTD: /opt/homebrew/lib/libzstd.dylib  
-- Looking for LZ4
-- Found LZ4: /opt/homebrew/lib/liblz4.dylib (found version "1.9.4") 
-- Found GIF: /opt/homebrew/lib/libgif.dylib (found version "5.2.1") 
-- Found TIFF: /opt/homebrew/lib/libtiff.dylib (found version "4.4.0")  
-- Found PNG: /opt/homebrew/lib/libpng.dylib (found version "1.6.39") 
-- Found JPEG: /opt/homebrew/lib/libjpeg.dylib (found version "80") 
-- Looking for AfterImage
-- AfterImage not found. Switching on builtin_afterimage option
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- Found GSL: /opt/homebrew/Cellar/gsl/2.7.1/include (found suitable version "2.7.1", minimum required is "1.10") 
-- Looking for OpenGL
-- Found OpenGL: /Applications/   
-- Looking for gl2ps
-- Found gl2ps: /opt/homebrew/lib/libgl2ps.dylib  
-- Looking for LibXml2
-- Found LibXml2: /Applications/ (found version "2.9.4") 
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) 
-- OpenSSL not found, switching ON 'builtin_openssl' option.
-- Found OpenSSL: /usr/local/root-6.28.02/build/builtins/openssl/OPENSSL-prefix/include (found version "1.1.1g") 
-- Looking for MySQL
-- MySQL not found. Switching off mysql option
-- Looking for Oracle
-- Oracle not found.
-- Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/
--    currently found includes: 
-- Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/
-- Oracle not found. Switching off oracle option
-- Looking for PostgreSQL
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR) 
-- PostgreSQL not found. Switching off pgsql option
-- Looking for SQLite
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") 
-- Found Sqlite: /Applications/  
-- Looking for Pythia6
-- Pythia6 not found. Switching off pythia6 option
-- Looking for Pythia8
-- Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY) 
-- Pythia8 not found. Switching off pythia8 option
-- Looking for FFTW3
-- Found fftw3 includes at /opt/homebrew/include
-- Found fftw3 library at /opt/homebrew/lib/libfftw3.dylib
-- Looking for CFITSIO
-- Found CFITSIO: /opt/homebrew/lib/libcfitsio.dylib (found version "4.2") 
-- Looking for XROOTD
-- Found Xrootd version num: 5.5.4 (setting -DROOTXRDVERS=500050004)
--              libXrdMain not found: xproofd will be a wrapper around xrootd
--              libXrdClient not found: use built-in
--              include_dirs: /opt/homebrew/include/xrootd;/usr/local/root-6.28.02/source/proof/xrdinc
--              libraries: /opt/homebrew/lib/libXrdUtils.dylib;/opt/homebrew/lib/libXrdCl.dylib
-- Non-builtin XROOTD must not be used with builtin OpenSSL. Disabling the 'xrootd' option.
-- GFAL library not found. Set variable GFAL_DIR to point to your gfal installation
                      and the variable SRM_IFCE_DIR to the srm_ifce installation
-- For the time being switching OFF 'gfal' option
-- ftgl library not found. Set variable FTGL_ROOT_DIR to point to your installation
-- For the time being switching ON 'builtin_ftgl' option
-- Checking for module 'davix>=0.6.4'
--   Found davix, version 0.8.4
-- Looking for TBB
-- Found TBB: /opt/homebrew (Required is at least version "2018")  
-- Looking for VDT
-- Could NOT find Vdt (missing: VDT_INCLUDE_DIR VDT_LIBRARY) (Required is at least version "0.4")
-- VDT not found. Ensure that the installation of VDT is in the CMAKE_PREFIX_PATH
--                Switching ON 'builtin_vdt' option
-- Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored
-- Looking for BLAS for optional parts of TMVA
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for dgemm_
-- Looking for dgemm_ - found
-- Found BLAS: /Applications/  
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Building LLVM in 'Release' mode.
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /Applications/
-- Found libtool - /Applications/
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /Applications/  
-- Native target architecture is AArch64
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Applications/
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM host triple: arm64-apple-darwin22.4.0
-- LLVM default target triple: arm64-apple-darwin22.4.0
-- Building with -fPIC
-- Found Python3: /opt/homebrew/opt/python@3.11/libexec/bin/python (found suitable version "3.11.3", minimum required is "3.0") found components: Interpreter 
-- Linker detection: ld64
-- Targeting AArch64
-- Targeting NVPTX
-- Clang version: 13.0.0
-- Host linker version: 857.1
-- Not building amdgpu-arch: hsa-runtime64 not found
-- Cling version (from VERSION file): ROOT_1.0~dev
-- Cling will look for C++ headers in '/Applications/' at runtime.
-- And if not found, will invoke: '/Applications/ ' for them.
-- Performing Test CXX_HAS_fno_rtti
-- Performing Test CXX_HAS_fno_rtti - Success
-- Performing Test C_HAS_Wno_strict_overflow
-- Performing Test C_HAS_Wno_strict_overflow - Success
-- Performing Test C_HAS_Wno_maybe_uninitialized
-- Performing Test C_HAS_Wno_maybe_uninitialized - Failed
-- Performing Test C_HAS_Wno_parentheses_equality
-- Performing Test C_HAS_Wno_parentheses_equality - Success
-- Looking for m
-- Looking for m - not found
-- Use SSL API VERSION 1.1 for civetweb
-- Performing Test GCC_HAS_BIDI_CHARS_FLAG
-- Performing Test GCC_HAS_BIDI_CHARS_FLAG - Failed
-- Distributed RDataFrame enabled
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Failed
-- Performing Test found_stdstringview
-- Performing Test found_stdstringview - Success
-- Performing Test found_stod_stringview
-- Performing Test found_stod_stringview - Failed
-- Performing Test found_opplusequal_stringview
-- Performing Test found_opplusequal_stringview - Success
-- Performing Test found_stdapply
-- Performing Test found_stdapply - Failed
-- Performing Test found_stdinvoke
-- Performing Test found_stdinvoke - Failed
-- Performing Test found_stdindexsequence
-- Performing Test found_stdindexsequence - Success
-- Performing Test found_attribute_always_inline
-- Performing Test found_attribute_always_inline - Success
-- Performing Test has_found_attribute_noinline
-- Performing Test has_found_attribute_noinline - Success
-- Performing Test found_hardware_interference_size
-- Performing Test found_hardware_interference_size - Failed
Running /usr/local/root-6.28.02/source/build/unix/
Making /usr/local/root-6.28.02/build/ginclude/compiledata.h
-- ROOT Configuration 

System          Darwin-22.4.0
Processor       10 core Apple M1 Max (arm64)
Build type      Release
Install path    /usr/local/root-6.28.02/install
Compiler        AppleClang
Compiler flags:
C                -m64 -pipe -W -Wall -fsigned-char -fno-common -Qunused-arguments -pthread -O3 -DNDEBUG
C++              -std=c++14 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ -O3 -DNDEBUG
Linker flags:
Executable       -mmacosx-version-min=13.3

-- Enabled support for:  asimage builtin_afterimage builtin_clang builtin_cling builtin_freetype builtin_ftgl builtin_glew builtin_gtest builtin_llvm builtin_nlohmannjson builtin_openssl builtin_openui5 builtin_vdt builtin_xxhash clad cocoa dataframe davix exceptions fftw3 fitsio gdml http imt libcxx mathmore mlp minuit2 opengl pyroot roofit rpath runtime_cxxmodules shared sqlite ssl tmva tmva-cpu tmva-pymva spectrum vdt xml
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/root-6.28.02/build
[ /usr/local/root-6.28.02/build ]

_ROOT Version: 6.28.02
_Platform: Apple M1 Max Ventura 13.3.1
_Compiler: clang 14.0.3

This is a known issue (just search on this forum) that will be fixed soon. See also

Doh! I realized shortly after I posted.

Is there a way to get the source code for the nightlies, rather than the precompiled versions? I believe I am using a different python version that the pre-compiled version, so I need to build from source.

(I did see a posting on this, but it lead me to a point where the git server was asking for a username … I am assuming that it is not the username for this forum).

You can use git to checkout the master branch (use

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.