Root fails to build in Arch Linux.
$ cmake -DCMAKE_INSTALL_PREFIX=../install ../gitclone
output
```
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /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: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.36.0")
-- Detected ROOT_VERSION 6.27.01
-- Checking internet connectivity...
-- Yes
-- Looking for Python
-- Found Python3: /usr/bin/python3.10 (found version "3.10.4") found components: Interpreter Development NumPy Development.Module Development.Embed
-- Could NOT find Python2 (missing: Python2_NumPy_INCLUDE_DIRS NumPy) (found version "2.7.18")
-- Found GCC. Major version 11, minor version 2
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Success
-- ROOT Platform: linux
-- ROOT Compiler: GNU 11.2.0
-- ROOT Processor: x86_64
-- ROOT Architecture: linuxx8664gcc
-- Build Type: 'Release' (flags = '-O3 -DNDEBUG')
-- Compiler Flags: -std=c++17 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG
-- ROOT default compression algorithm: zlib
-- PyROOT will be built for versions 3.10.4 (Main) and 2.7.18
-- Looking for ZLib
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.12")
-- Looking for nlohmann/json.hpp
-- nlohmann/json.hpp not found. Switching on builtin_nlohmannjson option
-- Looking for Freetype
-- Found Freetype: /usr/lib/libfreetype.so (found version "2.12.1")
-- Looking for PCRE
-- Found PCRE: /usr/include (found version "8.45")
-- Looking for LZMA
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so - found
-- Found LibLZMA: /usr/lib/liblzma.so (found version "5.2.5")
-- Looking for xxHash
-- Found xxHash: /usr/lib/libxxhash.so (found version "0.8.1")
-- Looking for ZSTD
-- Found ZSTD: /usr/lib/libzstd.so
-- Looking for LZ4
-- Found LZ4: /usr/lib/liblz4.so (found version "1.9.3")
-- Looking for X11
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- X11_INCLUDE_DIR: /usr/include
-- X11_LIBRARIES: /usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so
-- X11_Xpm_INCLUDE_PATH: /usr/include
-- X11_Xpm_LIB: /usr/lib/libXpm.so
-- X11_Xft_INCLUDE_PATH: /usr/include
-- X11_Xft_LIB: /usr/lib/libXft.so
-- X11_Xext_INCLUDE_PATH: /usr/include
-- X11_Xext_LIB: /usr/lib/libXext.so
-- Found GIF: /usr/lib/libgif.so (found version "5.2.1")
-- Found TIFF: /usr/lib/libtiff.so (found version "4.3.0")
-- Found PNG: /usr/lib/libpng.so (found version "1.6.37")
-- Found JPEG: /usr/lib/libjpeg.so (found version "80")
-- Looking for AfterImage
-- Could NOT find AfterImage (missing: AFTERIMAGE_INCLUDE_DIR AFTERIMAGE_LIBRARIES)
-- AfterImage not found. Switching on builtin_afterimage option
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0")
-- Found GSL: /usr/include (found suitable version "2.7.1", minimum required is "1.10")
-- Looking for OpenGL
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Looking for GLEW
-- Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES)
-- GLEW not found. Switching on builtin_glew option
-- 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: /usr/lib/libxml2.so (found version "2.9.13")
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1n")
-- Looking for MySQL
-- Found MySQL: /usr/include/mysql
-- Looking for Oracle
-- Oracle not found.
-- Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
-- currently found includes:
-- Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
-- currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
-- 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: /usr/include
-- 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 /usr/include
-- Found fftw3 library at /usr/lib/libfftw3.so
-- Looking for CFITSIO
-- Could NOT find CFITSIO (missing: CFITSIO_LIBRARY CFITSIO_INCLUDE_DIR)
-- 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 5.4.2
-- Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARY)
-- 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)
-- 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'
-- Package 'davix', required by 'virtual:world', not found
-- Looking for uuid_generate_random in uuid
-- Looking for uuid_generate_random in uuid - found
-- Found libuuid: /usr/include
-- Davix dependencies not found, switching OFF 'davix' option.
-- Looking for TBB
-- Found TBB: /usr (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 sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: /usr/lib/libblas.so
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Building LLVM in 'Release' mode.
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND)
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Found Python module pygments
-- Found Python module pygments.lexers.c_cpp
-- Found Python module yaml
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Found PythonInterp: /usr/bin/python3.10 (found version "3.10.4")
-- Constructing LLVMBuild project information
-- Linker detection: GNU ld
-- Targeting X86
-- Targeting NVPTX
-- Clang version: 9.0.1
-- Cling version (from VERSION file): ROOT_1.0~dev
-- Cling will look for C++ headers in '/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0:/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/x86_64-pc-linux-gnu:/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/backward' at runtime.
-- And then fallback to: 'c++'
-- 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 - Success
-- 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
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Success
-- 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 - Success
-- Performing Test found_stdinvoke
-- Performing Test found_stdinvoke - Success
-- 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 /home/razorr/Softwares/Installed/HEP/Root/gitclone/build/unix/compiledata.sh
Making /home/razorr/Softwares/Installed/HEP/Root/build/ginclude/compiledata.h
-- ROOT Configuration
System Linux-5.15.37-1-lts
Processor 2 core Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz (x86_64)
Build type Release
Install path /home/razorr/Softwares/Installed/HEP/Root/install
Compiler GNU 11.2.0
Compiler flags:
C -Wno-implicit-fallthrough -pipe -Wall -W -pthread -O3 -DNDEBUG
C++ -std=c++17 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG
Linker flags:
Executable -rdynamic
Module
Shared -Wl,--no-undefined -Wl,--hash-style="both"
-- Enabled support for: asimage builtin_afterimage builtin_clang builtin_cling builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_nlohmannjson builtin_openui5 builtin_vdt builtin_xrootd clad dataframe exceptions fftw3 gdml http imt mathmore mlp minuit2 mysql opengl pyroot roofit webgui root7 rpath runtime_cxxmodules shared sqlite ssl tmva tmva-cpu tmva-pymva spectrum vdt x11 xml xrootd
-- Configuring done
-- Generating done
-- Build files have been written to: /home/razorr/Softwares/Installed/HEP/Root/build
```
$ cmake --build . --target install -- -j4
truncated output
```
[ 75%] Building CXX object core/clingutils/CMakeFiles/ClingUtils.dir/src/TClingUtils.cxx.o
[ 75%] Built target Dictgen
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingClassInfo.cxx.o
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingDataMemberInfo.cxx.o
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingDeclInfo.cxx.o
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingDiagnostics.cxx.o
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingMemberIter.cxx.o
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingMethodArgInfo.cxx.o
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingMethodInfo.cxx.o
[ 75%] Built target ClingUtils
[ 75%] Building CXX object core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/src/rootcling_stage1.cxx.o
[ 75%] Linking CXX executable src/rootcling_stage1
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingRdictModuleFileExtension.cxx.o
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingTypedefInfo.cxx.o
[ 75%] Built target rootcling_stage1
[ 75%] Generating G__Core.cxx, ../lib/Core.pcm
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
input_line_1:1:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
Warning in cling::IncrementalParser::CheckABICompatibility():
Failed to extract C++ standard library version.
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
While building module 'Cling_Runtime_Extra' imported from /home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/RuntimeUniverse.h:27:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/DynamicExprInfo.h:13:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/DynamicExprInfo.h:40:7: error: use of undeclared identifier 'std'
std::string m_Result;
^
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
While building module 'Cling_Runtime_Extra' imported from /home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/RuntimeUniverse.h:27:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/DynamicLookupLifetimeHandler.h:12:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/DynamicLookupLifetimeHandler.h:56:7: error: use of undeclared identifier 'std'
std::string m_Type;
^
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
While building module 'Cling_Runtime_Extra' imported from /home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/RuntimeUniverse.h:27:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Visibility.h:13:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
While building module 'Cling_Runtime_Extra' imported from /home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/RuntimeUniverse.h:27:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:17:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:93:41: error: use of undeclared identifier 'std'
template ::value>::type>
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:93:56: error: use of undeclared identifier 'std'
template ::value>::type>
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:93:83: error: expected ',' or '>' in template-parameter-list
template ::value>::type>
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:95:14: error: use of undeclared identifier 'std'
return std::is_signed::value
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:94:35: error: no return statement in constexpr function
static constexpr EStorageType determineStorageTypeT(T*) {
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:198:11: error: use of undeclared identifier 'std'
= std::is_reference::value ?
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:199:40: error: use of undeclared identifier 'std'
determineStorageTypeT((typename std::remove_reference::type**)nullptr)
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:199:66: error: expected a qualified name after 'typename'
determineStorageTypeT((typename std::remove_reference::type**)nullptr)
^
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/Value.h:199:66: error: unknown type name 'type'
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
In file included from :1:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/Interpreter/RuntimeUniverse.h:27:10: fatal error: could not build module 'Cling_Runtime_Extra'
#include "cling/Interpreter/Visibility.h"
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
input_line_2:1:10: fatal error: could not build module 'Cling_Runtime'
#include "cling/Interpreter/RuntimeUniverse.h"
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingTypeInfo.cxx.o
While building module 'Core':
While building module 'ROOT_Rtypes' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:23:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/home/razorr/Softwares/Installed/HEP/Root/build/include/RtypesCore.h:28:10: note: submodule of top-level module 'std' implicitly imported here
#include // size_t, NULL
^
In file included from input_line_3:2:
/home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:23:10: fatal error: could not build module 'ROOT_Rtypes'
#include "RtypesCore.h"
~~~~~~~~^~~~~~~~~~~~~~
While building module 'Core':
While building module 'ROOT_Foundation_C' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:29:
In file included from :1:
/home/razorr/Softwares/Installed/HEP/Root/build/include/ThreadLocalStorage.h:60:10: fatal error: could not build module 'ROOT_Rtypes'
#include "RtypesCore.h"
~~~~~~~~^~~~~~~~~~~~~~
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/string_view:40:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/char_traits.h:39:10: note: submodule of top-level module 'std' implicitly imported here
#include // std::copy, std::fill_n
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/postypes.h:40:10: note: submodule of top-level module 'std' implicitly imported here
#include // For mbstate_t
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/postypes.h:68:15: error: expected '{'
namespace std _GLIBCXX_VISIBILITY(default)
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/postypes.h:68:15: error: C++ requires a type specifier for all declarations
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/postypes.h:68:35: error: expected expression
namespace std _GLIBCXX_VISIBILITY(default)
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/postypes.h:68:43: error: expected ';' after top level declarator
namespace std _GLIBCXX_VISIBILITY(default)
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/char_traits.h:41:10: note: submodule of top-level module 'std' implicitly imported here
#include // For WEOF, wmemmove, wmemset, etc.
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/char_traits.h:699:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/functional_hash.h:35:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/range_access.h:36:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/range_access.h:37:10: note: submodule of top-level module 'std' implicitly imported here
#include // common_type_t, make_signed_t
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/stl_iterator.h:63:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/stl_iterator_base_types.h:67:11: note: submodule of top-level module 'std' implicitly imported here
# include // For __void_t, is_convertible
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/ext/type_traits.h:35:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/move.h:57:10: note: submodule of top-level module 'std' implicitly imported here
#include // Brings in std::declval too.
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/stl_iterator.h:70:11: note: submodule of top-level module 'std' implicitly imported here
# include
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/ostream_insert.h:35:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/razorr/Softwares/Installed/HEP/Root/build/include/Rtypes.h:195:
/home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found
header "bits/utility.h"
^
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/ostream_insert.h:37:10: note: submodule of top-level module 'std' implicitly imported here
#include
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Error: Error loading the default rootcling header files.
make[2]: *** [core/CMakeFiles/G__Core.dir/build.make:474: core/G__Core.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:24008: core/CMakeFiles/G__Core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingValue.cxx.o
[ 75%] Built target MetaCling
make: *** [Makefile:156: all] Error 2
```
Root fails to build in Arch Linux.
$ cmake -DCMAKE_INSTALL_PREFIX=../install ../gitclone
output
``` -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /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: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.36.0") -- Detected ROOT_VERSION 6.27.01 -- Checking internet connectivity... -- Yes -- Looking for Python -- Found Python3: /usr/bin/python3.10 (found version "3.10.4") found components: Interpreter Development NumPy Development.Module Development.Embed -- Could NOT find Python2 (missing: Python2_NumPy_INCLUDE_DIRS NumPy) (found version "2.7.18") -- Found GCC. Major version 11, minor version 2 -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test GLIBCXX_USE_CXX11_ABI -- Performing Test GLIBCXX_USE_CXX11_ABI - Success -- ROOT Platform: linux -- ROOT Compiler: GNU 11.2.0 -- ROOT Processor: x86_64 -- ROOT Architecture: linuxx8664gcc -- Build Type: 'Release' (flags = '-O3 -DNDEBUG') -- Compiler Flags: -std=c++17 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG -- ROOT default compression algorithm: zlib -- PyROOT will be built for versions 3.10.4 (Main) and 2.7.18 -- Looking for ZLib -- Found ZLIB: /usr/lib/libz.so (found version "1.2.12") -- Looking for nlohmann/json.hpp -- nlohmann/json.hpp not found. Switching on builtin_nlohmannjson option -- Looking for Freetype -- Found Freetype: /usr/lib/libfreetype.so (found version "2.12.1") -- Looking for PCRE -- Found PCRE: /usr/include (found version "8.45") -- Looking for LZMA -- Looking for lzma_auto_decoder in /usr/lib/liblzma.so -- Looking for lzma_auto_decoder in /usr/lib/liblzma.so - found -- Looking for lzma_easy_encoder in /usr/lib/liblzma.so -- Looking for lzma_easy_encoder in /usr/lib/liblzma.so - found -- Looking for lzma_lzma_preset in /usr/lib/liblzma.so -- Looking for lzma_lzma_preset in /usr/lib/liblzma.so - found -- Found LibLZMA: /usr/lib/liblzma.so (found version "5.2.5") -- Looking for xxHash -- Found xxHash: /usr/lib/libxxhash.so (found version "0.8.1") -- Looking for ZSTD -- Found ZSTD: /usr/lib/libzstd.so -- Looking for LZ4 -- Found LZ4: /usr/lib/liblz4.so (found version "1.9.3") -- Looking for X11 -- Found X11: /usr/include -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- X11_INCLUDE_DIR: /usr/include -- X11_LIBRARIES: /usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so -- X11_Xpm_INCLUDE_PATH: /usr/include -- X11_Xpm_LIB: /usr/lib/libXpm.so -- X11_Xft_INCLUDE_PATH: /usr/include -- X11_Xft_LIB: /usr/lib/libXft.so -- X11_Xext_INCLUDE_PATH: /usr/include -- X11_Xext_LIB: /usr/lib/libXext.so -- Found GIF: /usr/lib/libgif.so (found version "5.2.1") -- Found TIFF: /usr/lib/libtiff.so (found version "4.3.0") -- Found PNG: /usr/lib/libpng.so (found version "1.6.37") -- Found JPEG: /usr/lib/libjpeg.so (found version "80") -- Looking for AfterImage -- Could NOT find AfterImage (missing: AFTERIMAGE_INCLUDE_DIR AFTERIMAGE_LIBRARIES) -- AfterImage not found. Switching on builtin_afterimage option -- Building AfterImage library included in ROOT itself -- Looking for GSL -- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") -- Found GSL: /usr/include (found suitable version "2.7.1", minimum required is "1.10") -- Looking for OpenGL -- Found OpenGL: /usr/lib/libOpenGL.so -- Looking for GLEW -- Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES) -- GLEW not found. Switching on builtin_glew option -- 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: /usr/lib/libxml2.so (found version "2.9.13") -- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1n") -- Looking for MySQL -- Found MySQL: /usr/include/mysql -- Looking for Oracle -- Oracle not found. -- Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client -- currently found includes: -- Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib -- currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND -- 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: /usr/include -- 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 /usr/include -- Found fftw3 library at /usr/lib/libfftw3.so -- Looking for CFITSIO -- Could NOT find CFITSIO (missing: CFITSIO_LIBRARY CFITSIO_INCLUDE_DIR) -- 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 5.4.2 -- Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARY) -- 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) -- 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' -- Package 'davix', required by 'virtual:world', not found -- Looking for uuid_generate_random in uuid -- Looking for uuid_generate_random in uuid - found -- Found libuuid: /usr/include -- Davix dependencies not found, switching OFF 'davix' option. -- Looking for TBB -- Found TBB: /usr (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 sgemm_ -- Looking for sgemm_ - found -- Found BLAS: /usr/lib/libblas.so -- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB -- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success -- Building LLVM in 'Release' mode. -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Could NOT find Z3: Found unsuitable version "0.0.0", but required is at least "4.7.1" (found Z3_LIBRARIES-NOTFOUND) -- Looking for backtrace -- Looking for backtrace - found -- backtrace facility detected in default set of libraries -- Found Backtrace: /usr/include -- Native target architecture is X86 -- Threads disabled. -- Doxygen disabled. -- Go bindings disabled. -- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) -- OCaml bindings disabled. -- Found Python module pygments -- Found Python module pygments.lexers.c_cpp -- Found Python module yaml -- LLVM host triple: x86_64-unknown-linux-gnu -- LLVM default target triple: x86_64-unknown-linux-gnu -- Building with -fPIC -- Found PythonInterp: /usr/bin/python3.10 (found version "3.10.4") -- Constructing LLVMBuild project information -- Linker detection: GNU ld -- Targeting X86 -- Targeting NVPTX -- Clang version: 9.0.1 -- Cling version (from VERSION file): ROOT_1.0~dev -- Cling will look for C++ headers in '/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0:/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/x86_64-pc-linux-gnu:/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/backward' at runtime. -- And then fallback to: 'c++' -- 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 - Success -- 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 -- Performing Test found_setresuid -- Performing Test found_setresuid - Success -- 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 - Success -- Performing Test found_stdinvoke -- Performing Test found_stdinvoke - Success -- 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 /home/razorr/Softwares/Installed/HEP/Root/gitclone/build/unix/compiledata.sh Making /home/razorr/Softwares/Installed/HEP/Root/build/ginclude/compiledata.h -- ROOT Configuration System Linux-5.15.37-1-lts Processor 2 core Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz (x86_64) Build type Release Install path /home/razorr/Softwares/Installed/HEP/Root/install Compiler GNU 11.2.0 Compiler flags: C -Wno-implicit-fallthrough -pipe -Wall -W -pthread -O3 -DNDEBUG C++ -std=c++17 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG Linker flags: Executable -rdynamic Module Shared -Wl,--no-undefined -Wl,--hash-style="both" -- Enabled support for: asimage builtin_afterimage builtin_clang builtin_cling builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_nlohmannjson builtin_openui5 builtin_vdt builtin_xrootd clad dataframe exceptions fftw3 gdml http imt mathmore mlp minuit2 mysql opengl pyroot roofit webgui root7 rpath runtime_cxxmodules shared sqlite ssl tmva tmva-cpu tmva-pymva spectrum vdt x11 xml xrootd -- Configuring done -- Generating done -- Build files have been written to: /home/razorr/Softwares/Installed/HEP/Root/build ```$ cmake --build . --target install -- -j4
truncated output
``` [ 75%] Building CXX object core/clingutils/CMakeFiles/ClingUtils.dir/src/TClingUtils.cxx.o [ 75%] Built target Dictgen [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingClassInfo.cxx.o [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingDataMemberInfo.cxx.o [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingDeclInfo.cxx.o [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingDiagnostics.cxx.o [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingMemberIter.cxx.o [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingMethodArgInfo.cxx.o [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingMethodInfo.cxx.o [ 75%] Built target ClingUtils [ 75%] Building CXX object core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/src/rootcling_stage1.cxx.o [ 75%] Linking CXX executable src/rootcling_stage1 [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingRdictModuleFileExtension.cxx.o [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingTypedefInfo.cxx.o [ 75%] Built target rootcling_stage1 [ 75%] Generating G__Core.cxx, ../lib/Core.pcm /home/razorr/Softwares/Installed/HEP/Root/build/etc/cling/std.modulemap:442:12: error: header 'bits/utility.h' not found header "bits/utility.h" ^ input_line_1:1:10: note: submodule of top-level module 'std' implicitly imported here #includeExpected behavior
Root builds without any errors.
To Reproduce
mkdir -p HEP/root
cd HEP/root
mkdir build install
git clone --depth=1 https://github.com/root-project/root gitclone
cd build
cmake -DCMAKE_INSTALL_PREFIX=../install ../gitclone
cmake --build . --target install -- -j4
Setup
Additional context
gcc -v
clang -v
cat /etc/*release