Hi there,
I would like to ask some assistance with installing ROOT on Ubuntu 22.04. I need an unconventional installation of ROOT for my project, which means that ROOT must be built from source. I intend to use it inside an HPC environment and chose to set it up inside a container. The ROOT version I am trying to install is 6.26.00. The compiler is GNU 11.4.0 and container OS is Ubuntu 22.04.
When I try to compile ROOT with cmake, I get an error in the XROOTD building step.
cmake --build . --target install -j 3
[ 0%] Built target LZMA
[ 0%] Built target AFTERIMAGE
[ 0%] Built target TBB
[ 0%] Built target OPENUI5
[ 0%] Built target move_header_roofit_hs3
[ 0%] Built target VDT
Consolidate compiler generated dependencies of target xxhash
[ 0%] Built target copymodulemap
[ 0%] Built target builtin_nlohmann_json_incl
[ 0%] Built target xxhash
[ 0%] Performing build step for βXROOTDβ
[ 0%] Built target move_header_core_clib
[ 0%] Built target move_header_core_clingutils
[ 0%] Built target move_header_core_cont
[ 0%] Built target move_header_core_foundation
[ 0%] Built target move_header_core_gui
[ 0%] Built target move_header_core_meta
[ 0%] Built target move_header_core_multiproc
[ 0%] Built target move_header_core_rint
[ 0%] Built target move_header_core_textinput
[ 0%] Built target move_header_core_thread
[ 0%] Built target move_header_core_imt
[ 0%] Built target move_header_core_zip
[ 0%] Built target move_header_core_lzma
[ 1%] Built target move_header_core_lz4
[ 1%] Built target move_header_core_zstd
[ 1%] Built target move_header_core_newdelete
[ 2%] Built target move_header_core_base
[ 2%] Built target move_header_core_unix
[ 3%] Built target move_header_math_mathcore
[ 3%] Built target move_header_math_mathmore
[ 3%] Built target move_header_math_matrix
[ 4%] Built target move_header_math_minuit
[ 5%] Built target move_header_math_minuit2
[ 5%] Built target move_header_math_fumili
[ 5%] Built target move_header_math_physics
[ 5%] Built target move_header_math_mlp
[ 5%] Built target move_header_math_quadp
[ 6%] Built target move_header_math_foam
[ 6%] Built target move_header_math_smatrix
[ 6%] Built target move_header_math_splot
[ 7%] Built target move_header_math_genvector
[ 7%] Built target move_header_math_genetic
CMake Error at /root/Library/root-v6_26_00/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-Release.cmake:49 (message):
-
Command failed: 2*
-
β/usr/bin/gmakeβ*
-
See also*
-
/root/Library/root-v6_26_00/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-.log
[ 7%] Built target move_header_math_fftw
gmake[2]: *** [builtins/xrootd/CMakeFiles/XROOTD.dir/build.make:86: builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:8342: builtins/xrootd/CMakeFiles/XROOTD.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobsβ¦
[ 7%] Built target move_header_math_vecops
gmake: *** [Makefile:156: all] Error 2
I am totally perplexed. I checked the output file and it showed series of warnings for openssl. When I checked whether openssl and libssl-dev are installed, it showed that both packages were already in their latest versions. My cmake configuration I used is as follows:
cmake -DCMAKE_INSTALL_PREFIX=β¦/root_install β¦/root_src -Dpythia6=ON -DPYTHIA6_LIBRARY=$HOME/Library/pythia6/v6_428/lib/libPythia6.so -Dgnuinstall=ON
β Detected ROOT_VERSION 6.26.00
β Checking internet connectivityβ¦
β Yes
β Looking for Python
β Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version β3.10.12β)
β 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 4
β ROOT Platform: linux
β ROOT Compiler: GNU 11.4.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.12
β Looking for ZLib
β Looking for Freetype
β Looking for PCRE
β Building LZMA version 5.2.4 included in ROOT itself
β Looking for ZSTD
β Looking for X11
β Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
β Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
β Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
β Building AfterImage library included in ROOT itself
β Looking for GSL
β Looking for OpenGL
β Looking for GLEW
β Looking for LibXml2
β Looking for MySQL
β Looking for Pythia6
β Looking for FFTW3
β Looking for CFITSIO
β Downloading and building XROOTD version 5.4.1
β 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β
β Performing Test found_stdstringview
β Performing Test found_stdstringview - Success
β Performing Test found_stod_stringview
β Performing Test found_stod_stringview - Failed
β 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
Running /root/Library/root-v6_26_00/root_src/build/unix/compiledata.sh
Changing /root/Library/root-v6_26_00/root_build/ginclude/compiledata.h
β ROOT Configuration
System Linux-6.2.0-37-generic
Processor 8 core AMD Ryzen 7 5700U with Radeon Graphics (x86_64)
Build type Release
Install path /root/Library/root-v6_26_00/root_install
Compiler GNU 11.4.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_gl2ps builtin_llvm builtin_lz4 builtin_lzma builtin_nlohmannjson builtin_openui5 builtin_tbb builtin_vdt builtin_xrootd builtin_xxhash clad dataframe exceptions fftw3 fitsio gdml gnuinstall http imt mathmore mlp minuit2 mysql opengl pyroot pythia6 roofit webgui root7 rpath runtime_cxxmodules shared ssl tmva tmva-cpu spectrum vdt x11 xml xrootd
β Configuring done
β Generating done
β Build files have been written to: /root/Library/root-v6_26_00/root_build
What could possibly be the reason? Any assistance would be appreciated.