I have installed Garfield++ on lxplus but during building an example by using make , i found the attached error !! Does anyone know where exactly the problem and how to solve ??
/cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake: /cvmfs/sft.cern.ch/lcg/external/gcc/4.8.4/x86_64-slc6-gcc48-opt/lib64/libstdc++.so.6: version GLIBCXX_3.4.22' not found (required by /cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake) /cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake: /cvmfs/sft.cern.ch/lcg/external/gcc/4.8.4/x86_64-slc6-gcc48-opt/lib64/libstdc++.so.6: version GLIBCXX_3.4.20’ not found (required by /cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake)
/cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake: /cvmfs/sft.cern.ch/lcg/external/gcc/4.8.4/x86_64-slc6-gcc48-opt/lib64/libstdc++.so.6: version GLIBCXX_3.4.26' not found (required by /cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake) /cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake: /cvmfs/sft.cern.ch/lcg/external/gcc/4.8.4/x86_64-slc6-gcc48-opt/lib64/libstdc++.so.6: version GLIBCXX_3.4.21’ not found (required by /cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake)
/cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake: /cvmfs/sft.cern.ch/lcg/external/gcc/4.8.4/x86_64-slc6-gcc48-opt/lib64/libstdc++.so.6: version `CXXABI_1.3.9’ not found (required by /cvmfs/sft.cern.ch/lcg/releases/CMake/3.18.4-2ffec/x86_64-centos7-gcc10-opt/bin/cmake)
make: *** [cmake_check_build_system] Error 1
Hi,
there seem to be some inconsistencies in your environment (gcc 10 vs. gcc 4.8.4). How did you set it up? Can you try with an LCG view, for instance
To me it seems that it doesn’t; the exception that you mentioned is thrown if you construct a std::string providing (const char *)nullptr as argument. We are missing important information, though; could you please attach the the code that you are trying to run?
Thanks for your response , the idea that , i get this error during running any Garfield++ example so , I thought that , anyway I attach a general basic example ( gem example) and i will try to mimic your solution into the others gem.C (4.5 KB) s .
The culprit might be the line const std::string path = getenv("GARFIELD_HOME");
Is this variable defined in your environment? What do you get when you type
Ah, sorry for that, I think that may be a side effect of some recent changes.
Where is the Garfield++ source directory on your machine?
Can you try re-setting the GARFIELD_HOME variable to this directory? Something like
@hschindl , Exactly the problem was as you mentioned , it was in defining GAFIELD_HOME , now most of them are working well , thank you
but , what if I got this error , what do you think about ?
terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_alloc
Aborted (core dumped)
Hm, that seems to be something else. Is this what you get when you run the gem.C program you sent earlier? Can you post/attach the full output you get when running the program?