Linking problems when using a lcg release (?) of root on lxplus

Dear ROOTers,

with the following settings [1], I am trying to compile some geant4 library with cmake and then make. Unfortunately, I end up with the following errors [2] at the linking stage.
How can I solve this?
I crafted the configuration I am using, since I’ve not been able to find anywhere any instructions on how to get a reasonably modern setup, nor any indications on what are officially released compiled versions of ROOT for use on lxplus, hence I am very eager to change that if I get meaningful suggestions.

Best regards,

pietro


ROOT Version: 6.18
Platform: lxplus
Compiler: gcc


[1] settings:
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/8.3.0/x86_64-centos7/setup.sh
source /cvmfs/geant4.cern.ch/geant4/10.5.ref07/x86_64-centos7-gcc8-opt/CMake-setup.sh
source /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.18.00-16525/x86_64-centos7-gcc8-opt/bin/thisroot.sh
export PATH=/cvmfs/sft.cern.ch/lcg/contrib/CMake/3.14.2/Linux-x86_64/bin/:$PATH

[2] errors:
/cvmfs/sft.cern.ch/lcg/releases/binutils/2.30-e5b21/x86_64-centos7/bin/ld: warning: libvdt.so, needed by /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.18.00-16525/x86_64-centos7-gcc8-opt/lib/libROOTVecOps.so, not found (try using -rpath or -rpath-link)
/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.18.00-16525/x86_64-centos7-gcc8-opt/lib/libImt.so: undefined reference to tbb::interface7::internal::isolate_within_arena(tbb::interface7::internal::delegate_base&, long)' /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.18.00-16525/x86_64-centos7-gcc8-opt/lib/libROOTDataFrame.so: undefined reference toDavix::DavPosix::open(Davix::RequestParams const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int, Davix::DavixError**)’
/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.18.00-16525/x86_64-centos7-gcc8-opt/lib/libROOTDataFrame.so: undefined reference to Davix::DavPosix::stat(Davix::RequestParams const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, stat*, Davix::DavixError**)' /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.18.00-16525/x86_64-centos7-gcc8-opt/lib/libROOTDataFrame.so: undefined reference toDavix::DavixError::getErrMsgabi:cxx11 const’
/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.18.00-16525/x86_64-centos7-gcc8-opt/lib/libImt.so: undefined reference to tbb::interface7::internal::task_arena_base::internal_terminate()' /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.18.00-16525/x86_64-centos7-gcc8-opt/lib/libImt.so: undefined reference totbb::interface7::internal::task_arena_base::internal_initialize()’
/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.18.00-16525/x86_64-centos7-gcc8-opt/lib/libImt.so: undefined reference to `tbb::interface7::internal::task_arena_base::internal_execute(tbb::interface7::internal::delegate_base&) const’
collect2: error: ld returned 1 exit status
make[2]: *** [ofos] Error 1
make[1]: *** [CMakeFiles/ofos.dir/all] Error 2
make: *** [all] Error 2

I solved the problem moving to an older version of the compiler.

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