Installing latest root version: v6-22-99

Dear root experts,

I am trying to install a most recent root version from the source by following these steps:

# substitute `v6-22-00-patches` with the patches branch of the latest release
$ git clone --branch v6-22-00-patches root_src
$ mkdir root_build root_install && cd root_build
$ cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src # && check cmake configuration output for warnings or errors
$ cmake --build . -- install -j4 # if you have 4 cores available for compilation
$ source ../root_install/bin/ # or thisroot.{fish,csh}

When typing:

cmake --build . – install -j4

it’s built until 62% and then I have these errors:

[ 62%] Building CXX object core/base/CMakeFiles/Base.dir/src/String.cxx.o
In file included from /opt/root/root_src/core/base/src/String.cxx:19:
/opt/root/root_src/core/base/inc/TBuffer.h:393:31: error: 'Tmpl' does not refer to a value
   auto cl = TClass::GetClass<Tmpl>();
/opt/root/root_src/core/base/inc/TBuffer.h:382:17: note: declared here
template <class Tmpl> TBuffer &operator>>(TBuffer &buf, Tmpl *&obj)
/opt/root/root_src/core/base/inc/TBuffer.h:393:37: error: expected expression
   auto cl = TClass::GetClass<Tmpl>();
/opt/root/root_src/core/base/inc/TBuffer.h:400:39: error: 'Tmpl' does not refer to a value
   auto cl = (obj) ? TClass::GetClass<Tmpl>() : nullptr;
/opt/root/root_src/core/base/inc/TBuffer.h:398:17: note: declared here
template <class Tmpl> TBuffer &operator<<(TBuffer &buf, const Tmpl *obj)
/opt/root/root_src/core/base/inc/TBuffer.h:400:45: error: expected expression
   auto cl = (obj) ? TClass::GetClass<Tmpl>() : nullptr;
/opt/root/root_src/core/base/inc/TBuffer.h:412:42: error: 'T' does not refer to a value
   auto cl = (objptr) ? TClass::GetClass<T>() : nullptr;
/opt/root/root_src/core/base/inc/TBuffer.h:409:17: note: declared here
template <class T>
/opt/root/root_src/core/base/inc/TBuffer.h:412:45: error: expected expression
   auto cl = (objptr) ? TClass::GetClass<T>() : nullptr;
6 errors generated.
make[2]: *** [core/base/CMakeFiles/Base.dir/src/String.cxx.o] Error 1
make[1]: *** [core/base/CMakeFiles/Base.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 62%] Built target RootPcmObjs
[ 62%] Built target Unix
-- AFTERIMAGE configure command succeeded.  See also /opt/root/root_src/root_build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-configure-*.log
[ 62%] Performing build step for 'AFTERIMAGE'
-- AFTERIMAGE build command succeeded.  See also /opt/root/root_src/root_build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-*.log
[ 62%] Performing install step for 'AFTERIMAGE'
-- AFTERIMAGE install command succeeded.  See also /opt/root/root_src/root_build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-install-*.log
[ 62%] Completed 'AFTERIMAGE'
[ 62%] Built target AFTERIMAGE
make: *** [all] Error 2

Could someone advice please what’s going one.

Best regards,


that’s weird, our automated builds ran just last night without compilation errors on all platforms.

What compiler and compiler version are you using?



Thanks for replying:
If I do gcc -v I got:

Configured with: --prefix=/Applications/ --with-gxx-include-dir=/Applications/
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Applications/

I installed cmake using brew (brew install cmake), and the version is:

cmake version 3.19.0

I also wanted to precise that I recently moved to macOs Big Sur

Uhm I don’t have much experience with MacOS I’m afraid, I think we need to ping @Axel .

Can you share your CMakeCache.txt, please?

You can also just curl -O and untar that?

Thanks Axel for replying.
When I run the command (note also the “Dbuiltin_glew=ON” option that I have to include otherwise I will have an incorrect configuration):

cmake -DCMAKE_INSTALL_PREFIX=/opt/root/root_install /opt/root/root_src -Dbuiltin_glew=ON 

here is the output:

-- Detected ROOT_VERSION 6.22.99
-- Looking for Python
-- Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version "3.8.2")
-- ROOT default compression algorithm: zlib
-- PyROOT will be built for versions 3.8.2 (Main) and 2.7.16
-- Performing Test HAS_LIBCXX11
-- Performing Test HAS_LIBCXX11 - Success
-- Found a macOS system 11.0
-- Found an x86_64 system
-- Found LLVM compiler collection
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: Release (flags = '-O3 -DNDEBUG')
-- Compiler Flags: -O3 -DNDEBUG  -std=c++11 -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++
-- Looking for ZLib
-- Building freetype version 2.6.1 included in ROOT itself
-- Looking for PCRE
-- Looking for LZMA
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- Looking for OpenGL
-- Looking for gl2ps
-- Could NOT find gl2ps (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR) 
-- gl2ps not found. Switching on builtin_gl2ps option
-- Looking for LibXml2
-- Found LibXml2: /Applications/ (found version "2.9.4") 
-- Found OpenSSL: /opt/local/lib/libcrypto.dylib (found version "1.1.1d")  
-- 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 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
-- FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation
--                  Alternatively, you can also enable the option 'builtin_fftw3' to build FFTW3 internally'
--                  For the time being switching OFF 'fftw3' option
-- Looking for CFITSIO
-- CFITSIO not found. You can enable the option 'builtin_cfitsio' to build the library internally'
--                    For the time being switching off 'fitsio' option
-- Looking for XROOTD
-- XROOTD not found, enabling 'builtin_xrootd' option
-- Downloading and building XROOTD version 
-- 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
-- Could NOT find FTGL (missing: FTGL_INCLUDE_DIR) 
-- 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'
--   No package 'davix' found
-- Looking for uuid_generate_random in uuid
-- Looking for uuid_generate_random in uuid - not found
-- Found libuuid: /Applications/  
-- Davix dependencies not found, switching OFF 'davix' option.
-- Looking for TBB
-- Could NOT find TBB (missing: TBB_ROOT_DIR TBB_INCLUDE_DIR) (Required is at least version "2018")
-- TBB not found, enabling 'builtin_tbb' option
-- Performing Test CXX_HAS_mno_rtm
-- Performing Test CXX_HAS_mno_rtm - Success
-- Looking for VDT
-- Found Vdt: /usr/local/include (found suitable version "0.4", minimum required is "0.4") 
-- 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/  
-- TMVA: Numpy or Python development package not found for python /Applications/ Switching off tmva-pymva option
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Building LLVM in 'Release' mode.
-- The ASM compiler identification is Clang
-- 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 X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Applications/
-- LLVM host triple: x86_64-apple-darwin20.1.0
-- LLVM default target triple: x86_64-apple-darwin20.1.0
-- Building with -fPIC
-- Found PythonInterp: /Applications/ (found version "3.8.2") 
-- Constructing LLVMBuild project information
-- SysLibs: curses;/Applications/
-- Targeting X86
-- Targeting NVPTX
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.7~dev
-- Cling will look for C++ headers in '/Applications/' at runtime.
-- And if not found, will invoke: '/Applications/ ' for them.
-- Performing Test __result
-- Performing Test __result - Failed
-- Performing Test CXX_HAS_fno_rtti
-- Performing Test CXX_HAS_fno_rtti - Success
-- Performing Test CXX_HAS_Wno_conditional_uninitialized
-- Performing Test CXX_HAS_Wno_conditional_uninitialized - 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
-- 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 - Failed
-- 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
Running /opt/root/root_src/build/unix/
Making /opt/root/root_build/ginclude/compiledata.h
-- Enabled support for:  asimage builtin_afterimage builtin_clang builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_lz4 builtin_tbb builtin_xrootd builtin_xxhash builtin_zstd clad cocoa dataframe exceptions gdml http imt libcxx mathmore mlp opengl pyroot roofit runtime_cxxmodules shared sqlite ssl tmva tmva-cpu spectrum vdt xml xrootd
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/root/root_build

I attached the CMakeCache.txt you askedCMakeCache.txt (132.2 KB)
I think the root version shouldn’t be a problem. Actually I just received a new MacBook from work where catalina is installed, and I was able to install the same root version following the same procedure without any problem.

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