Replacement messes up LD_LIBRARY_PATH with certain environment
$ ssh plus
Last login: Thu Aug 25 12:30:36 2022 from loadbalancer-pluscc.lbdaq.cern.ch
********************************************************************************
* ---- LbEnv ---- *
********************************************************************************
--- CMAKE_PREFIX_PATH is set to:
/cvmfs/lhcb.cern.ch/lib/lhcb
/cvmfs/lhcb.cern.ch/lib/lcg/releases
/cvmfs/lhcb.cern.ch/lib/lcg/app/releases
/cvmfs/lhcb.cern.ch/lib/lcg/external
/cvmfs/lhcb.cern.ch/lib/contrib
/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/2568/stable/linux-64/lib/python3.9/site-packages/LbDevTools/data/cmake
--------------------------------------------------------------------------------
[rmatev@pluscc07 ~]$ env | grep -v SSH | sort > my_env.txt
[rmatev@pluscc07 ~]$ lb-run --verbose -c x86_64_v2-centos7-gcc11-opt --nightly lhcb-head/Tue Moore python -c 'import cppyy'
WARNING:lb-run:Decided best container to use is None
INFO:lb-run:using Moore/prod x86_64_v2-centos7-gcc11-opt
INFO:lb-run:using override map version $Id: 225b3827688c6da6087cc1d1941be427b097fe1d $ (sha1: fc0d3e2ca5b6a382c019dc68a65d09060aae2a6f)
INFO:lb-run:replaced ^LD_LIBRARY_PATH=(.*?/x86_64-)(slc5|slc6|centos7)(/.*?/x86_64[^/-]*-)(slc5|slc6|centos7)(-gcc.*) with LD_LIBRARY_PATH=\1\4\3\4\5 in LD_LIBRARY_PATH (replace (first) host-os with target-os)
Traceback (most recent call last):
File "/cvmfs/lhcb.cern.ch/lib/lcg/releases/ROOT/6.24.06-3455f/x86_64-centos7-gcc11-opt/lib/cppyy/__init__.py", line 60, in <module>
importlib.import_module(libcppyy_mod_name)
File "/cvmfs/lhcb.cern.ch/lib/lcg/releases/Python/3.9.6-b0f98/x86_64-centos7-gcc11-opt/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 565, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 1173, in create_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /cvmfs/lhcb.cern.ch/lib/lcg/releases/ROOT/6.24.06-3455f/x86_64-centos7-gcc11-opt/lib/libcppyy3_9.so)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/cvmfs/lhcb.cern.ch/lib/lcg/releases/ROOT/6.24.06-3455f/x86_64-centos7-gcc11-opt/lib/cppyy/__init__.py", line 62, in <module>
raise ImportError(
ImportError: Failed to import libcppyy3_9. Please check that ROOT has been built for Python 3.9