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.