Error for compiling when running garfield on lxplus

Dear experts,

I faced an error when compiling the files on lxplus. I did not faced this error last time I use it and I changed nothing.

For the environment,

source /cvmfs/sft-nightlies.cern.ch/lcg/views/dev3/latest/x86_64-el9-gcc13-opt/setup.sh
source $GARFIELD_HOME/install/share/Garfield/setupGarfield.sh

The error ,

/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/rootcling: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/../lib/libRIO.so)

/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/rootcling: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/../lib/libRIO.so)

/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/rootcling: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/../lib/libCling.so)

/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/rootcling: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/../lib/libCling.so)

/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/rootcling: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/../lib/libThread.so)

/cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/rootcling: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.31' not found (required by /cvmfs/sft.cern.ch/lcg/releases/ROOT/6.28.10-cf069/x86_64-el9-gcc13-opt/bin/../lib/libCore.so)

make[2]: *** [CMakeFiles/Garfield.dir/build.make:247: GarfieldDict.cxx] Error 1

make[1]: *** [CMakeFiles/Makefile2:541: CMakeFiles/Garfield.dir/all] Error 2

I would appreciate it very much if you could help me to solve it.

Hi Linnuo,

It looks like an old ROOT version (6.28.10) is picked up and not the one you aimed for by sourcing the first line in your message. The ROOT version of the dev3 nightlies is 6.35.01 (as of today).

I also tried to compile garfield++ and source setupGarfield.sh on lxplus and it did not show any errors.

Here the commands I used:

git clone https://gitlab.cern.ch/garfield/garfieldpp.git
cd garfieldpp/
mkdir build 
cd build
mkdir ../../garfield-install
cmake -DCMAKE_INSTALL_PREFIX=../../garfield-install -DWITH_EXAMPLES=ON ..
make -j8
make install
cd ../../
source garfield-install/share/Garfield/setupGarfield.sh

Best,
Lukas

1 Like

Dear Lukas,
Thank you so much!
Best,
Linnuo

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