easybuild-framework icon indicating copy to clipboard operation
easybuild-framework copied to clipboard

`--rpath` to GCC's `libstdc++` not added

Open tvandera opened this issue 3 years ago • 2 comments

Hi,

I'm trying to build Clang-13.0.1-GCCcore-11.3.0.eb easybuild with the --rpath.

It seems the sanity check step fails because the path containing libstdc++.so is not added to RPATH.

From the log file

One or more required libraries not found for /shared/csa/software/Clang/13.0.1-GCCcore-11.3.0/lib64/libclang-cpp.so.13: /shared/csa/software/Clang/13.0.1-GCCcore-11.3.0/lib64/libclang-cpp.so.13: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /shared/csa/software/Clang/13.0.1-GCCcore-11.3.0/lib64/libclang-cpp.so.13)
/shared/csa/software/Clang/13.0.1-GCCcore-11.3.0/lib64/libclang-cpp.so.13: /lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by /shared/csa/software/Clang/13.0.1-GCCcore-11.3.0/lib64/libclang-cpp.so.13)

Output of objdump:

objdump -x /scratch/vanderaa/easybuild/shared/csa/software/Clang/13.0.1-GCCcore-11.3.0/lib/libclang-cpp.so.13 | grep RPATH|tr : \\n
  RPATH                /shared/csa/software/Clang/13.0.1-GCCcore-11.3.0/lib
/shared/csa/software/Clang/13.0.1-GCCcore-11.3.0/lib64
$ORIGIN
$ORIGIN/../lib
$ORIGIN/../lib64
/shared/csa/software/elfutils/0.187-GCCcore-11.3.0/lib
/shared/csa/software/zstd/1.5.2-GCCcore-11.3.0/lib
/shared/csa/software/lz4/1.9.3-GCCcore-11.3.0/lib
/shared/csa/software/libffi/3.4.2-GCCcore-11.3.0/lib64
/shared/csa/software/libffi/3.4.2-GCCcore-11.3.0/lib
/shared/csa/software/Z3/4.10.2-GCCcore-11.3.0/lib
/shared/csa/software/GMP/6.2.1-GCCcore-11.3.0/lib
/shared/csa/software/ncurses/6.3-GCCcore-11.3.0/lib
/shared/csa/software/libxml2/2.9.13-GCCcore-11.3.0/lib
/shared/csa/software/hwloc/2.7.1-GCCcore-11.3.0/lib
/shared/csa/software/libpciaccess/0.16-GCCcore-11.3.0/lib
/shared/csa/software/numactl/2.0.14-GCCcore-11.3.0/lib
/shared/csa/software/binutils/2.38-GCCcore-11.3.0/lib
/shared/csa/software/Perl/5.34.1-GCCcore-11.3.0/lib
/shared/csa/software/DB/18.1.40-GCCcore-11.3.0/lib
/shared/csa/software/expat/2.4.8-GCCcore-11.3.0/lib
/shared/csa/software/Python/3.10.4-GCCcore-11.3.0/lib
/shared/csa/software/SQLite/3.38.3-GCCcore-11.3.0/lib
/shared/csa/software/Tcl/8.6.12-GCCcore-11.3.0/lib
/shared/csa/software/libreadline/8.1.2-GCCcore-11.3.0/lib
/shared/csa/software/libarchive/3.6.1-GCCcore-11.3.0/lib
/shared/csa/software/XZ/5.2.5-GCCcore-11.3.0/lib
/shared/csa/software/cURL/7.83.0-GCCcore-11.3.0/lib
/shared/csa/software/OpenSSL/1.1/lib
/shared/csa/software/bzip2/1.0.8-GCCcore-11.3.0/lib
/shared/csa/software/zlib/1.2.12-GCCcore-11.3.0/lib

tvandera avatar Sep 21 '22 12:09 tvandera

@casparvl Any thoughts on this?

boegel avatar Oct 12 '22 07:10 boegel

@bartoldeman Might have some input here, I know that at Compute Canada they deliberately don't do this linking.

ocaisa avatar Oct 12 '22 09:10 ocaisa