The libstdc++.so.6 from the compat layer is picked up, which happens to work out, but it's actually wrong, it should be coming from the GCCcore dependency:
$ which rustc
/cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/amd/zen2/software/Rust/1.91.1-GCCcore-14.3.0/bin/rustc
$ readelf -d $(which rustc) | grep RPATH
0x000000000000000f (RPATH) Library rpath: [$ORIGIN/../lib]
$ ldd $(which rustc) | grep libstdc
libstdc++.so.6 => /cvmfs/software.eessi.io/versions/2025.06/compat/linux/x86_64/usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6 (0x000014f633e00000)
For older Rust versions it's correct:
$ ldd /cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/amd/zen2/software/Rust/1.88.0-GCCcore-14.3.0/bin/rustc | grep libstdc
libstdc++.so.6 => /cvmfs/software.eessi.io/versions/2025.06/software/linux/x86_64/amd/zen2/software/GCCcore/14.3.0/lib64/../lib64/libstdc++.so.6 (0x000014b5df200000)
see also:
The
libstdc++.so.6from the compat layer is picked up, which happens to work out, but it's actually wrong, it should be coming from theGCCcoredependency:For older Rust versions it's correct:
see also:
Rust-1.91.1-GCCcore-14.3.0.ebeasybuilders/easybuild-easyconfigs#26232