Hi All, I am trying to run my simple simulation in Lxplus and I am getting following error,
The sim is working fine with my personal macOS Sequoia V15.2. I am directly sourcing the geant4 using the instruction [link]
source /cvmfs/sft.cern.ch/lcg/contrib/gcc/12/x86_64-centos9/setup.sh #set up compiler
source /cvmfs/geant4.cern.ch/geant4/11.1/x86_64-centos9-gcc12-optdeb-MT/CMake-setup.sh #set up environment for Geant4
export CXX=`which g++` #tell CMake about compiler used
export CC=`which gcc`
The code compile well upto 100% but give me error at the end while making executable
error:
/cvmfs/sft.cern.ch/lcg/releases/binutils/2.37-355ed/x86_64-centos9/bin/ld: /cvmfs/geant4.cern.ch/geant4/11.1/x86_64-centos9-gcc12-optdeb-MT/lib64/libG4OpenGL.so: undefined reference to `std::condition_variable::wait(std::unique_lockstd::mutex&)@GLIBCXX_3.4.30’
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/GEANT4.dir/build.make:296: bin/GEANT4] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/GEANT4.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Thanks for advance for your help!