Error in Lxplus

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!

Can you give more information? How do you compile your code? Note that this release of Geant4 was compiled using C++17 standard, and your compiler flags must match those set in /cvmfs/geant4.cern.ch/geant4/11.1/x86_64-centos9-gcc12-optdeb-MT/bin/geant4-config.

1 Like

Hi, Thank you for your response. The issue turned out to be with my code instead, it was not being able to locate the radioactive data from geant4, so I did

export G4RADIOACTIVEDATA=/cvmfs/geant4.cern.ch/share/data/RadioactiveDecay6.1.1

and my issue was resolved. Thank you!

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