Error for installing Root source in Ubuntu 22.04


Please read tips for efficient and successful posting and posting code

_ROOT Version:_v6.26
Platform: Ubuntu 22.04
Compiler: Not Provided


Hello,
i try to install Root from source on Ubuntu 22.04 LTS,

I copy/paste the lines from

But when i write:
cmake -DCMAKE_INSTALL_PREFIX=…/root_install …/root_src

i get many errors:

more /home/faure/install/c++/root_build/CMakeFiles/CMakeError.log
Determining if the function sgemm_ exists failed with the following output:
Change Dir: /home/faure/install/c++/root_build/CMakeFiles/CMakeTmp

Run Build Command(s):/bin/gmake -f Makefile cmTC_00fdc/fast && /bin/gmake  -f CMakeFiles/cmTC_00fdc.dir/build.make CMakeFiles/cmTC_00fdc.dir/build
gmake[1]: Entering directory '/home/faure/install/c++/root_build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_00fdc.dir/CheckFunctionExists.c.o
/bin/cc   -Wno-implicit-fallthrough -pipe -Wall -W -pthread -DCHECK_FUNCTION_EXISTS=sgemm_ -o CMakeFiles/cmTC_00fdc.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.22/Modules/CheckFunctionExists.c
Linking C executable cmTC_00fdc
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_00fdc.dir/link.txt --verbose=1
/bin/cc  -Wno-implicit-fallthrough -pipe -Wall -W -pthread -DCHECK_FUNCTION_EXISTS=sgemm_  -rdynamic  CMakeFiles/cmTC_00fdc.dir/CheckFunctionExists.c.o -o cmTC_00fdc 
/bin/ld: CMakeFiles/cmTC_00fdc.dir/CheckFunctionExists.c.o: in function `main':
CheckFunctionExists.c:(.text+0x14): undefined reference to `sgemm_'
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_00fdc.dir/build.make:99: cmTC_00fdc] Error 1
gmake[1]: Leaving directory '/home/faure/install/c++/root_build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_00fdc/fast] Error 2



Determining if the include file malloc/malloc.h exists failed with the following output:
Change Dir: /home/faure/install/c++/root_build/CMakeFiles/CMakeTmp

Run Build Command(s):/bin/gmake -f Makefile cmTC_d7880/fast && /bin/gmake  -f CMakeFiles/cmTC_d7880.dir/build.make CMakeFiles/cmTC_d7880.dir/build
gmake[1]: Entering directory '/home/faure/install/c++/root_build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_d7880.dir/CheckIncludeFile.c.o
/bin/cc   -Wno-implicit-fallthrough -pipe -Wall -W -pthread  -o CMakeFiles/cmTC_d7880.dir/CheckIncludeFile.c.o -c /home/faure/install/c++/root_build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/faure/install/c++/root_build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: malloc/malloc.h: No such file or directory
    1 | #include <malloc/malloc.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_d7880.dir/build.make:78: CMakeFiles/cmTC_d7880.dir/CheckIncludeFile.c.o] Error 1
gmake[1]: Leaving directory '/home/faure/install/c++/root_build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_d7880/fast] Error 2



Determining if the include file mach/mach.h exists failed with the following output:
Change Dir: /home/faure/install/c++/root_build/CMakeFiles/CMakeTmp

Run Build Command(s):/bin/gmake -f Makefile cmTC_6eecc/fast && /bin/gmake  -f CMakeFiles/cmTC_6eecc.dir/build.make CMakeFiles/cmTC_6eecc.dir/build
gmake[1]: Entering directory '/home/faure/install/c++/root_build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_6eecc.dir/CheckIncludeFile.c.o
/bin/cc   -Wno-implicit-fallthrough -pipe -Wall -W -pthread  -o CMakeFiles/cmTC_6eecc.dir/CheckIncludeFile.c.o -c /home/faure/install/c++/root_build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/faure/install/c++/root_build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: mach/mach.h: No such file or directory
    1 | #include <mach/mach.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

I don’t understand. Thanks for any help,

Hello,

Could you make sure you have installed all the ROOT dependencies? You can find a list here:

Hello, yes i did what is given here for ubuntu:

Hello,
Yes, i did the command given here:

Hello,

Then this should get you everything you need, any ideas @bellenot ?

@Frederic_Faure which version of gcc are you using?

EDIT: And BTW, instead of the content of CMakeFiles/CMakeError.log file, I would prefer to see the actual command line output when running cmake -DCMAKE_INSTALL_PREFIX=…/root_install …/root_src because most of the errors in CMakeFiles/CMakeError.log are expected (system/compatibility checks)

1 Like

Hello, here is what i get with the command: cmake -DCMAKE_INSTALL_PREFIX=…/root_install …/root_src

– Detected ROOT_VERSION 6.26.02
– Checking internet connectivity…
– Yes
– Looking for Python
– Could NOT find Python2 (missing: Python2_EXECUTABLE Python2_INCLUDE_DIRS Python2_LIBRARIES Python2_NumPy_INCLUDE_DIRS Interpreter Development NumPy Development.Module Development.Embed)
– Found GCC. Major version 11, minor version 2
– 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 version 3.10.4
– Looking for ZLib
– Looking for Freetype
– Looking for PCRE
– Looking for LZMA
– Looking for ZSTD
– Looking for X11
– 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 LibXml2
– Looking for MySQL
– Looking for SQLite
– Looking for FFTW3
– Downloading and building XROOTD version 5.4.2
– Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored
– Looking for BLAS for optional parts of TMVA
– Building LLVM in β€˜Release’ mode.
– Could NOT find Z3: Found unsuitable version β€œ0.0.0”, but required is at least β€œ4.7.1” (found Z3_LIBRARIES-NOTFOUND)
– 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.
– LLVM host triple: x86_64-unknown-linux-gnu
– LLVM default target triple: x86_64-unknown-linux-gnu
– Building with -fPIC
– 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/include/c++/11:/usr/include/x86_64-linux-gnu/c++/11:/usr/include/c++/11/backward’ at runtime.
– And then fallback to: β€˜x86_64-linux-gnu-g+Β±11’
RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at cmake/modules/RootMacros.cmake:321 (list):
list sub-command FILTER, mode REGEX failed to compile regex
β€œ^/home/faure/install/c++/root_src”.
Call Stack (most recent call first):
cmake/modules/RootMacros.cmake:1315 (ROOT_GENERATE_DICTIONARY)
net/net/CMakeLists.txt:32 (ROOT_STANDARD_LIBRARY_PACKAGE)

RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at cmake/modules/RootMacros.cmake:322 (list):
list sub-command FILTER, mode REGEX failed to compile regex
β€œ^/home/faure/install/c++/root_build/ginclude”.
Call Stack (most recent call first):
cmake/modules/RootMacros.cmake:1315 (ROOT_GENERATE_DICTIONARY)
net/net/CMakeLists.txt:32 (ROOT_STANDARD_LIBRARY_PACKAGE)

etc

Thanks for your help,
FrΓ©dΓ©ric.

It looks like the issue is due to β€œ^/home/faure/install/c++/root_src”. can you try in another directory, not containing special characters (i.e. without ++) and let me know?

Yes, thank you, i move the directory name from `/home/faure/install/c++/root_src to /home/faure/install/cpp/root_src and the command worked well. But there has been a new error for the second command (see below)

This first command gives:

faure@admine-XPS-13-9380:~/install/cpp/root_build$ cmake -DCMAKE_INSTALL_PREFIX=…/root_install …/root_src
– 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: /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: /bin/c++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– Found Git: /bin/git (found version β€œ2.34.1”)
– Detected ROOT_VERSION 6.26.02
– Checking internet connectivity…
– Yes
– Looking for Python
– Found Python3: /bin/python3.10 (found version β€œ3.10.4”) found components: Interpreter Development NumPy Development.Module Development.Embed
– Could NOT find Python2 (missing: Python2_EXECUTABLE Python2_INCLUDE_DIRS Python2_LIBRARIES Python2_NumPy_INCLUDE_DIRS Interpreter Development NumPy Development.Module Development.Embed)
– 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 version 3.10.4
– Looking for ZLib
– Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version β€œ1.2.11”)
– Looking for nlohmann/json.hpp
– nlohmann/json.hpp not found. Switching on builtin_nlohmannjson option
– Looking for Freetype
– Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version β€œ2.11.1”)
– Looking for PCRE
– Found PCRE: /usr/include (found version β€œ8.39”)
– Looking for LZMA
– Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so
– Looking for lzma_auto_decoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
– Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so
– Looking for lzma_easy_encoder in /usr/lib/x86_64-linux-gnu/liblzma.so - found
– Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so
– Looking for lzma_lzma_preset in /usr/lib/x86_64-linux-gnu/liblzma.so - found
– Found LibLZMA: /usr/lib/x86_64-linux-gnu/liblzma.so (found version β€œ5.2.5”)
– 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: /usr/lib/x86_64-linux-gnu/libzstd.so
– Looking for LZ4
– Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR)
– LZ4 not found. Switching on builtin_lz4 option
– Looking for X11
– Found X11: /usr/include
– Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
– Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/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/x86_64-linux-gnu/libSM.so;/usr/lib/x86_64-linux-gnu/libICE.so;/usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
– X11_Xpm_INCLUDE_PATH: /usr/include
– X11_Xpm_LIB: /usr/lib/x86_64-linux-gnu/libXpm.so
– X11_Xft_INCLUDE_PATH: /usr/include
– X11_Xft_LIB: /usr/lib/x86_64-linux-gnu/libXft.so
– X11_Xext_INCLUDE_PATH: /usr/include
– X11_Xext_LIB: /usr/lib/x86_64-linux-gnu/libXext.so
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version β€œ4.3.0”)
– Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version β€œ1.6.37”)
– Found JPEG: /usr/lib/x86_64-linux-gnu/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: /bin/pkg-config (found version β€œ0.29.2”)
– Found GSL: /usr/include (found suitable version β€œ2.7.1”, minimum required is β€œ1.10”)
– Looking for OpenGL
– Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
– Looking for GLEW
– Found GLEW: /usr/include (found version β€œ2.2.0”)
– 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/x86_64-linux-gnu/libxml2.so (found version β€œ2.9.13”)
– Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version β€œ3.0.2”)
– 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/x86_64-linux-gnu/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’
– No package β€˜davix’ 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
– Could NOT find TBB (missing: TBB_ROOT_DIR TBB_INCLUDE_DIR TBB_LIBRARY) (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
– 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/x86_64-linux-gnu/libopenblas.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: /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: /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/include/c++/11:/usr/include/x86_64-linux-gnu/c++/11:/usr/include/c++/11/backward’ at runtime.
– And then fallback to: β€˜x86_64-linux-gnu-g+Β±11’
– 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
– 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/faure/install/cpp/root_src/build/unix/compiledata.sh
Making /home/faure/install/cpp/root_build/ginclude/compiledata.h
– ROOT Configuration

System Linux-5.15.0-27-generic
Processor 4 core Intel(R) Coreβ„’ i7-8565U CPU @ 1.80GHz (x86_64)
Build type Release
Install path /home/faure/install/cpp/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_llvm builtin_lz4 builtin_nlohmannjson builtin_openui5 builtin_tbb builtin_vdt builtin_xrootd builtin_xxhash 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/faure/install/cpp/root_build


========================================

By the way, I have a question please: i will need to use multi-threads programming later, and here the cmake command said:
β€œThreads disabled” . Can i change this as an option?

============================================
For the next step, since the command line: nproc gives: 8,
i continue with the next command:
cmake --build . – install -j8
After some while, i get:

[ 27%] Building CXX object interpreter/llvm/src/utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/AsmMatcherEmitter.cpp.o
CMake Error at XROOTD-stamp/XROOTD-download-Release.cmake:49 (message):
Command failed: 1

β€˜/usr/bin/cmake’ β€˜-Dmake=’ β€˜-Dconfig=’ β€˜-P’ β€˜/home/faure/install/cpp/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-Release-impl.cmake’

See also

/home/faure/install/cpp/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-*.log

gmake[2]: *** [builtins/xrootd/CMakeFiles/XROOTD.dir/build.make:98 : builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download] Erreur 1
gmake[1]: *** [CMakeFiles/Makefile2:8334 : builtins/xrootd/CMakeFiles/XROOTD.dir/all] Erreur 2
gmake[1]: *** Attente des tΓ’ches non terminΓ©es…
[ 27%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/APSInt.cpp.o

but it continues…
and after some while, i get
[ 30%] Built target obj.llvm-tblgen
[ 30%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Threading.cpp.o
[ 30%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Valgrind.cpp.o
[ 30%] Building CXX object interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/Watchdog.cpp.o
[ 30%] Linking CXX static library …/libLLVMSupport.a
[ 30%] Built target LLVMSupport
gmake: *** [Makefile:156 : all] Erreur 2

And it stops there.

I’m also having an error related to XROOTD, namely that the hash for v5.4.2 has seemingly changed.

-- SHA256 hash of
    /root/parts/root/build/builtins/xrootd/XROOTD-prefix/src/v5.4.2.tar.gz
  does not match expected value
    expected: '84e8a9a2bcad116df479f94e985c287dd99fbac0613d4fbb61f4ccc0cef81fa3'
      actual: '2b394270c55cb3d14f3c44b692311db99d2d25278882b513d4d564b68a58ed4a'
-- Hash mismatch, removing...

Unsure as to why Github is serving a different file but either the upstream file will need changing back or the ROOT build scripts will need modifying to compensate.

(This is on the 6-26-02 tag, master doesn’t appear to have the same issue).

Edit: I can see this was patched for master a few hours ago

Since this effectively only impacts v6-26-00 and v6-26-02, the easiest temporary workaround is to just run git cherry-pick 8c22e4b9985246fa8ea39fdac0c33822c865c2c3, clean the cmake environment and try build again.

I confirm this has been fixed in the master branch and will be back-ported in v6-26-00-patches soon.

Hello,
Sorry, it is not clear for me.
Does it mean that it works now or not yet?
I re-tried the whole installation commands and after the command:
cmake --build . – install -j8

i still get the error:
[ 29%] Linking CXX static library …/libLLVMSupport.a
[ 29%] Built target LLVMSupport
– TBB build command succeeded. See also /home/faure/install/cpp/root_build/TBB-prefix/src/TBB-stamp/TBB-build-.log
[ 29%] Performing install step for β€˜TBB’
– TBB install command succeeded. See also /home/faure/install/cpp/root_build/TBB-prefix/src/TBB-stamp/TBB-install-
.log
[ 29%] Performing tbb2externals step for β€˜TBB’
[ 29%] Completed β€˜TBB’
[ 29%] Built target TBB
gmake: *** [Makefile:156 : all] Erreur 2

The error with XROOTD has been fixed (you have to update your source if you want to pick up the latest version). otherwise you can also disable xrootd

But i have updated the source by doing:

git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git root_src

and still get the above error (last message). Is there another way to update?

Try with the head:

git clone https://github.com/root-project/root.git root_src

(the fix is not part of the latest-stable branch, only of the default master and the v6-26-00-patches branches)

Thanks very much,
By the way, I have a question please: i will need to use multi-threads programming later, and here the cmake command said:
β€œThreads disabled” . Do i need to change this, is it an option?

For multi-threading with ROOT,
you have imt and builtin_tbb enabled, so you are good for multi-threading. I don’t know what Threads disabled is about, maybe @bellenot does.

Cheers,
Enrico

This message is irrelevant. As @eguiraud said, if you use -Dbuiltin_tbb=ON and -Dimt=ON, then it should be OK

Thanks a lot.

1 Like