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.