Installing root on lxplus

Hello,
I’m trying to install root on lxplus from source (following instructions here: Installing ROOT - ROOT ) but running into problems. I have tried number of root version combining with number of cmake versions, but none has worked.
The last root version I’ve tried “latest-stable” , i.e.6.24/06, and the cmake version I’ve used is 3.17.2:
/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/cmake/3.17.2/etc/profile.d/init.sh

In case you need, the cmake output is here [1] and the error I’ve got duting the compilation is here [2].

I’d to know which version of the root can be installed from source witouth much of headake, and which settings that would requiere.

Many thanks & cheers,
Malik

[1]


-bash-4.2$ cmake -DCMAKE_INSTALL_PREFIX=…/root_install …/root_src
– The C compiler identification is GNU 7.4.1
– The CXX compiler identification is GNU 7.4.1
– Check for working C compiler: /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/cc
– Check for working C compiler: /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/cc - works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/c++
– Check for working CXX compiler: /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/c++ - works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Found Git: /usr/bin/git (found version “1.8.3.1”)
– Detected ROOT_VERSION 6.24.06
– Looking for Python
– Found Python3: /usr/bin/python3.6 (found version “3.6.8”) found components: Interpreter Development NumPy
– Found Python2: /usr/bin/python2.7 (found version “2.7.5”) found components: Interpreter Development NumPy
– Found GCC. Major version 7, minor version 4
– Looking for pthread.h
– Looking for pthread.h - found
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Performing Test GLIBCXX_USE_CXX11_ABI
– Performing Test GLIBCXX_USE_CXX11_ABI - Success
– ROOT Platform: linux
– ROOT Compiler: GNU 7.4.1
– ROOT Processor: x86_64
– ROOT Architecture: linuxx8664gcc
– Build Type: ‘Release’ (flags = ‘-O3’)
– Compiler Flags: -std=c++14 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3
– ROOT default compression algorithm: zlib
– PyROOT will be built for versions 3.6.8 (Main) and 2.7.5
– Looking for ZLib
– Found ZLIB: /usr/lib64/libz.so (found version “1.2.7”)
– Looking for Freetype
– Found Freetype: /usr/lib64/libfreetype.so (found version “2.8.0”)
– Looking for PCRE
– Found PCRE: /usr/include (found version “8.32”)
– Looking for LZMA
– Looking for lzma_auto_decoder in /usr/lib64/liblzma.so
– Looking for lzma_auto_decoder in /usr/lib64/liblzma.so - found
– Looking for lzma_easy_encoder in /usr/lib64/liblzma.so
– Looking for lzma_easy_encoder in /usr/lib64/liblzma.so - found
– Looking for lzma_lzma_preset in /usr/lib64/liblzma.so
– Looking for lzma_lzma_preset in /usr/lib64/liblzma.so - found
– Found LibLZMA: /usr/lib64/liblzma.so (found version “5.2.2”)
– Looking for ZSTD
– Could NOT find ZSTD (missing: ZSTD_LIBRARIES ZSTD_INCLUDE_DIR ZSTD_VERSION)
– ZSTD not found. Switching on builtin_zstd option
– Performing Test CXX_FLAG_STD_CPLUSPLUS11
– Performing Test CXX_FLAG_STD_CPLUSPLUS11 - Success
– Performing Test C_FLAG_STD_C99
– Performing Test C_FLAG_STD_C99 - Success
– Performing Test C_FLAG_WALL
– Performing Test C_FLAG_WALL - Success
– Performing Test CXX_FLAG_WALL
– Performing Test CXX_FLAG_WALL - Success
– Performing Test C_FLAG_WEXTRA
– Performing Test C_FLAG_WEXTRA - Success
– Performing Test CXX_FLAG_WEXTRA
– Performing Test CXX_FLAG_WEXTRA - Success
– Performing Test C_FLAG_WUNDEF
– Performing Test C_FLAG_WUNDEF - Success
– Performing Test CXX_FLAG_WUNDEF
– Performing Test CXX_FLAG_WUNDEF - Success
– Performing Test C_FLAG_WSHADOW
– Performing Test C_FLAG_WSHADOW - Success
– Performing Test CXX_FLAG_WSHADOW
– Performing Test CXX_FLAG_WSHADOW - Success
– Performing Test C_FLAG_WCAST_ALIGN
– Performing Test C_FLAG_WCAST_ALIGN - Success
– Performing Test CXX_FLAG_WCAST_ALIGN
– Performing Test CXX_FLAG_WCAST_ALIGN - Success
– Performing Test C_FLAG_WCAST_QUAL
– Performing Test C_FLAG_WCAST_QUAL - Success
– Performing Test CXX_FLAG_WCAST_QUAL
– Performing Test CXX_FLAG_WCAST_QUAL - Success
– Performing Test C_FLAG_WSTRICT_PROTOTYPES
– Performing Test C_FLAG_WSTRICT_PROTOTYPES - Success
– Looking for xxHash
– Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR)
– xxHash not found. Switching on builtin_xxhash option
– 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/lib64/libX11.so;/usr/lib64/libXext.so
– Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/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/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so
– X11_Xpm_INCLUDE_PATH: /usr/include
– X11_Xpm_LIB: /usr/lib64/libXpm.so
– X11_Xft_INCLUDE_PATH: /usr/include
– X11_Xft_LIB: /usr/lib64/libXft.so
– X11_Xext_INCLUDE_PATH: /usr/include
– X11_Xext_LIB: /usr/lib64/libXext.so
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Found TIFF: /usr/lib64/libtiff.so (found version “4.0.3”)
– Found PNG: /usr/lib64/libpng.so (found version “1.5.13”)
– Found JPEG: /usr/lib64/libjpeg.so (found version “62”)
– 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 “0.27.1”)
– Found GSL: /usr/include (found suitable version “1.15”, minimum required is “1.10”)
– Looking for OpenGL
– Found OpenGL: /usr/lib64/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/lib64/libxml2.so (found version “2.9.1”)
– Found OpenSSL: /usr/lib64/libcrypto.so (found version “1.0.2k”)
– Looking for MySQL
– Could NOT find MySQL (missing: MYSQL_INCLUDE_DIR MYSQL_LIBRARIES)
– MySQL not found. Switching off mysql option
– Looking for Oracle
– Found sqlplus version: 19.0.0.0.0
– Guessed ORACLE_OCI_VERSION value: 9
– 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/lib64/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
– Found Xrootd version num: 5.3.2 (setting -DROOTXRDVERS=500030002)
– libXrdMain not found: xproofd will be a wrapper around xrootd
– libXrdClient not found: use built-in
– include_dirs: /usr/include/xrootd;/afs/cern.ch/work/m/maliev/private/ROOT/Git/root_test/root_src/proof/xrdinc
– libraries: /usr/lib64/libXrdUtils.so;/usr/lib64/libXrdCl.so
– Checking for module ‘glib-2.0’
– Found glib-2.0, version 2.56.1
– Found GFAL: /usr/include/gfal2
– 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/lib64/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: /cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/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.
– Could NOT find Python module pygments
– Could NOT find 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.6 (found version “3.6.8”)
– Constructing LLVMBuild project information
– Linker detection: GNU ld
– Targeting X86
– Targeting NVPTX
– Clang version: 9.0.1
– Cling version (from VERSION file): ROOT_0.9~dev
– Cling will look for C++ headers in ‘/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/…/lib/gcc/x86_64-unknown-linux-gnu/7.4.1/…/…/…/…/include/c++/7.4.1:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/…/lib/gcc/x86_64-unknown-linux-gnu/7.4.1/…/…/…/…/include/c++/7.4.1/x86_64-unknown-linux-gnu:/cvmfs/cms.cern.ch/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/…/lib/gcc/x86_64-unknown-linux-gnu/7.4.1/…/…/…/…/include/c++/7.4.1/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
– Performing Test found_setresuid
– Performing Test found_setresuid - Success
– Performing Test found_stdstringview
– Performing Test found_stdstringview - Failed
– Performing Test found_stdexpstringview
– Performing Test found_stdexpstringview - Success
– Performing Test found_stod_stringview
– Performing Test found_stod_stringview - Failed
– Performing Test found_opplusequal_stringview
– Performing Test found_opplusequal_stringview - Failed
– Performing Test found_stdapply
– Performing Test found_stdapply - Failed
– Performing Test found_stdinvoke
– Performing Test found_stdinvoke - Failed
– 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 /afs/cern.ch/work/m/maliev/private/ROOT/Git/root_test/root_src/build/unix/compiledata.sh
Making /afs/cern.ch/work/m/maliev/private/ROOT/Git/root_test/root_build/ginclude/compiledata.h
– ROOT Configuration

System Linux-3.10.0-1160.45.1.el7.x86_64
Processor 10 core Intel Core Processor (Broadwell, IBRS) (x86_64)
Build type Release
Install path /afs/cern.ch/work/m/maliev/private/ROOT/Git/root_test/root_install
Compiler GNU 7.4.1
Compiler flags:
C -Wno-implicit-fallthrough -pipe -Wall -W -pthread -O3 -DNDEBUG
C++ -std=c++14 -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_lz4 builtin_nlohmannjson builtin_openui5 builtin_tbb builtin_vdt builtin_xxhash builtin_zstd clad dataframe exceptions fftw3 gdml gfal http imt mathmore mlp opengl pyroot roofit webgui root7 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: /afs/cern.ch/work/m/maliev/private/ROOT/Git/root_test/root_build


[2]


80%] Built target RootAuth
[ 80%] Built target G__ROOTGraphicsPrimitives
Scanning dependencies of target ROOTGraphicsPrimitives
[ 80%] Building CXX object graf2d/primitivesv7/CMakeFiles/ROOTGraphicsPrimitives.dir/src/RMarker.cxx.o
[ 80%] Building CXX object graf2d/primitivesv7/CMakeFiles/ROOTGraphicsPrimitives.dir/src/RLine.cxx.o
[ 80%] Building CXX object graf2d/primitivesv7/CMakeFiles/ROOTGraphicsPrimitives.dir/src/RBox.cxx.o
[ 80%] Building CXX object graf2d/primitivesv7/CMakeFiles/ROOTGraphicsPrimitives.dir/src/RLegend.cxx.o
[ 80%] Linking CXX shared library …/…/lib/libNetxNG.so
[ 80%] Building CXX object graf2d/primitivesv7/CMakeFiles/ROOTGraphicsPrimitives.dir/src/RText.cxx.o
Scanning dependencies of target G__Imt
CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o: In function TNetXNGFile::WriteBuffer(char const*, int)': TNetXNGFile.cxx:(.text+0x3e9): undefined reference to XrdCl::Status::ToStringabi:cxx11 const’
CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o: In function TNetXNGFile::Flush()': TNetXNGFile.cxx:(.text+0xefb): undefined reference to XrdCl::Status::ToStringabi:cxx11 const’
CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o: In function TNetXNGFile::ReadBuffer(char*, long long, int)': TNetXNGFile.cxx:(.text+0x1a36): undefined reference to XrdCl::Status::ToStringabi:cxx11 const’
TNetXNGFile.cxx:(.text+0x1f09): undefined reference to XrdCl::Status::ToString[abi:cxx11]() const' CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o: In function TNetXNGFile::ReadBuffers(char*, long long*, int*, int)’:
TNetXNGFile.cxx:(.text+0x3a7f): undefined reference to XrdCl::Status::ToString[abi:cxx11]() const' CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o:TNetXNGFile.cxx:(.text+0x3e1a): more undefined references to XrdCl::Status::ToStringabi:cxx11 const’ follow
CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o: In function TNetXNGFile::ReOpen(char const*)': TNetXNGFile.cxx:(.text+0x5744): undefined reference to XrdCl::File::Open(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, XrdCl::OpenFlags::Flags, XrdCl::Access::Mode, unsigned short)’
TNetXNGFile.cxx:(.text+0x587f): undefined reference to XrdCl::Status::ToString[abi:cxx11]() const' TNetXNGFile.cxx:(.text+0x5e67): undefined reference to XrdCl::Status::ToStringabi:cxx11 const’
CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o: In function TNetXNGFile::GetVectorReadLimits()': TNetXNGFile.cxx:(.text+0x6de9): undefined reference to XrdCl::File::GetProperty(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&) const’
TNetXNGFile.cxx:(.text+0x6e12): undefined reference to XrdCl::URL::URL(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' TNetXNGFile.cxx:(.text+0x6ea2): undefined reference to XrdCl::File::GetProperty(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&) const’
TNetXNGFile.cxx:(.text+0x7151): undefined reference to XrdCl::URL::URL(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o: In function TNetXNGFile::SetEnv()’:
TNetXNGFile.cxx:(.text+0x7f34): undefined reference to XrdCl::Env::PutString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' TNetXNGFile.cxx:(.text+0x80ac): undefined reference to XrdCl::Env::PutString(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
TNetXNGFile.cxx:(.text+0x8260): undefined reference to XrdCl::Env::PutString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' TNetXNGFile.cxx:(.text+0x8317): undefined reference to XrdCl::Env::PutInt(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)’
TNetXNGFile.cxx:(.text+0x8b7a): undefined reference to XrdCl::Env::PutInt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' TNetXNGFile.cxx:(.text+0x8c1e): undefined reference to XrdCl::Env::PutInt(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)’
TNetXNGFile.cxx:(.text+0x8cc6): undefined reference to XrdCl::Env::PutInt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' TNetXNGFile.cxx:(.text+0x8d71): undefined reference to XrdCl::Env::PutInt(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int)’
CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o:TNetXNGFile.cxx:(.text+0x8df3): more undefined references to XrdCl::Env::PutInt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' follow CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o: In function TNetXNGFile::TNetXNGFile(char const*, char const*, char const*, char const*, int, int, bool)’:
TNetXNGFile.cxx:(.text+0x9658): undefined reference to XrdCl::DefaultEnv::SetLogLevel(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' TNetXNGFile.cxx:(.text+0x973e): undefined reference to XrdCl::URL::URL(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
TNetXNGFile.cxx:(.text+0x99e7): undefined reference to XrdCl::File::Open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, XrdCl::OpenFlags::Flags, XrdCl::Access::Mode, XrdCl::ResponseHandler*, unsigned short)' TNetXNGFile.cxx:(.text+0x9c77): undefined reference to XrdCl::File::Open(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, XrdCl::OpenFlags::Flags, XrdCl::Access::Mode, unsigned short)’
TNetXNGFile.cxx:(.text+0x9d82): undefined reference to XrdCl::Status::ToString[abi:cxx11]() const' TNetXNGFile.cxx:(.text+0xa040): undefined reference to XrdCl::Status::ToStringabi:cxx11 const’
CMakeFiles/NetxNG.dir/src/TNetXNGFile.cxx.o: In function TNetXNGFile::Close(char const*)': TNetXNGFile.cxx:(.text+0xb74b): undefined reference to XrdCl::Status::ToStringabi:cxx11 const’
CMakeFiles/NetxNG.dir/src/TNetXNGSystem.cxx.o: In function TNetXNGSystem::GetDirEntry(void*)': TNetXNGSystem.cxx:(.text+0x62): undefined reference to XrdCl::FileSystem::DirList(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, XrdCl::DirListFlags::Flags, XrdCl::DirectoryList*&, unsigned short)’
CMakeFiles/NetxNG.dir/src/TNetXNGSystem.cxx.o: In function TNetXNGSystem::MakeDirectory(char const*)': TNetXNGSystem.cxx:(.text+0x400): undefined reference to XrdCl::FileSystem::MkDir(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, XrdCl::MkDirFlags::Flags, XrdCl::Access::Mode, unsigned short)’
CMakeFiles/NetxNG.dir/src/TNetXNGSystem.cxx.o: In function TNetXNGSystem::Unlink(char const*)': TNetXNGSystem.cxx:(.text+0x5f2): undefined reference to XrdCl::FileSystem::Stat(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, XrdCl::StatInfo*&, unsigned short)’
TNetXNGSystem.cxx:(.text+0x799): undefined reference to XrdCl::FileSystem::RmDir(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned short)' TNetXNGSystem.cxx:(.text+0x845): undefined reference to XrdCl::FileSystem::Rm(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned short)’
CMakeFiles/NetxNG.dir/src/TNetXNGSystem.cxx.o: In function TNetXNGSystem::GetPathInfo(char const*, FileStat_t&)': TNetXNGSystem.cxx:(.text+0xabc): undefined reference to XrdCl::FileSystem::Stat(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, XrdCl::StatInfo*&, unsigned short)’
TNetXNGSystem.cxx:(.text+0xcb4): undefined reference to XrdCl::StatInfo::GetId[abi:cxx11]() const' CMakeFiles/NetxNG.dir/src/TNetXNGSystem.cxx.o: In function TNetXNGSystem::TNetXNGSystem(char const*, bool)’:
TNetXNGSystem.cxx:(.text+0x18ab): undefined reference to XrdCl::URL::URL(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' TNetXNGSystem.cxx:(.text+0x1932): undefined reference to XrdCl::URL::URL(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
CMakeFiles/NetxNG.dir/src/TNetXNGSystem.cxx.o: In function TNetXNGSystem::Stage(TCollection*, unsigned char)': TNetXNGSystem.cxx:(.text+0x248d): undefined reference to XrdCl::FileSystem::Prepare(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&, XrdCl::PrepareFlags::Flags, unsigned char, XrdCl::Buffer*&, unsigned short)’
CMakeFiles/NetxNG.dir/src/TNetXNGSystem.cxx.o: In function TNetXNGSystem::Locate(char const*, TString&)': TNetXNGSystem.cxx:(.text+0x2888): undefined reference to XrdCl::FileSystem::Locate(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, XrdCl::OpenFlags::Flags, XrdCl::LocationInfo*&, unsigned short)’
TNetXNGSystem.cxx:(.text+0x2a84): undefined reference to `XrdCl::URL::URL(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’
collect2: error: ld returned 1 exit status
[ 80%] Building CXX object core/imt/CMakeFiles/G__Imt.dir/G__Imt.cxx.o
gmake[2]: *** [lib/libNetxNG.so] Error 1
gmake[1]: *** [net/netxng/CMakeFiles/NetxNG.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs…
[ 80%] Linking CXX shared library …/…/lib/libSQLIO.so
[ 80%] Built target SQLIO
[ 80%] Linking CXX shared library …/…/lib/libROOTGraphicsPrimitives.so
[ 80%] Built target ROOTGraphicsPrimitives
[ 80%] Built target G__Imt
gmake: *** [all] Error 2


Hi,
ROOT is already available on LXPLUS via LCG views, see Installing ROOT - ROOT (EDIT: specifically Installing ROOT - ROOT ).

Is there some missing feature you need?

Cheers,
Enrico

The problem you see is due to an ABI mismatch between XRootD, which has been compiled with the system compiler (i.e. GCC 4.x), and ROOT, which you are trying to compile with GCC 7.x from CVMFS. I would recommend you to just load a ROOT version from CVMFS on lxplus unless you really need to compile from source. There’s also ROOT installed as part of the system itself, which is at version 6.24/06. If some ROOT package is missing on lxplus, just file a SNOW ticket and ask the admins to install it. Cheers,

Hi Enrico and amadio (sorry, I don’t know your name),
I know that there is default root installed on lxplus, I’m aware of CVMFS option, as well as I’m aware of easier to install pre-compied root option. But I really need root installed from source to get access and to change some of its methods.
Thus I would be thankful for a help to get it installed from source.
Cheers,
Malik

What exactly do you need to change? Maybe you can make a derived class from ROOT instead?

I don’t know how many function I will have in the end to touch, but I want to change number of functions related with tmva, like the tmva-output file, replace the tmvagui interface with a command-run function and make it to draw some set of plots automatically without having to click every time to gui bottoms.

But irrespective of whatever I want to do, is it such a big trouble to have a version of root installable on lxplus without big headache?

It’s probably possible to do what you want having your own code separate from ROOT, but if you want to compile from source anyway, my suggestion is to use lxplus8 and then you can just use the system compiler to compile ROOT, and the dependencies are already installed. Just don’t mix things from CVMFS and from the system because as mentioned above, you will run into incompatibilities between your compiler and the things in system which were compiled with GCC 4.8.5.

I agree with @amadio , I’ll just add that for the specific error above you can use the -Dbuiltin_xrootd=ON cmake option to not use the system xrootd installation that is incompatible with the rest of your build.

Also make sure you don’t run out of space in your AFS home :slight_smile:

Cheers,
Enrico

So is what you suggest to do:

→ login to lxplus8
after checking out the version needed, do:
→ cmake -DCMAKE_INSTALL_PREFIX=…/root_install -Dbuiltin_xrootd=ON …/root_src
→ cmake --build . – install -j8
?
And, yes Enrico I already ran into AFS space problem and had to make some more free space :slight_smile:

That’s correct.

ROOT sources + the build can take more than 3GB, I don’t know if the AFS quota is enough. Building on EOS will be slower but you’ll have enough space there.

Finalmente! Everything has worked perfect at lxplus8.
BWT, the overall space occupied by this installation(r.6.24/00), turned out to be only 2.1G!

As of disk space available, I’m sure you know the following, but anyway:
you have only 10G at your default home-dir:
/afs/cern.ch/user/x/x-usertname/ (x-user letter)
but you can get additional 100G at:
/afs/cern.ch/work/x/x-usertname/ - and this is the directory, where I work normally.

Thanks a lot & cheers,
Malik

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.