sanity_check_rpath
should not check for libcuda.so.1
#4095
Labels
Milestone
sanity_check_rpath
should not check for libcuda.so.1
#4095
When installing Clang, e.g.
Clang-12.0.1-GCCcore-10.3.0.eb
with--rpath
, it errors out withHowever,
libcuda.so.1
should never beRPATH
-ed. Nvidia supports cross compilation by linking (at compile time) againststubs
libraries. Thosestubs
libraries contain function declarations, but no implementations. Thus, at runtime, they are never meant to be used. See #2683We made sure that the
RPATH
wrappers allow specifying certain paths to never beRPATH
-ed, and we use that to exclude thestubs
libraries fromCUDA
. See for the implementation #2725 and #3850The problem that we didn't tackle is that if you filter those directories from being
RPATH
-ed, thesanity_check_rpath
, the libraries that are linked from those directories will fail thesanity_check_rpath
(as above).Minimal reproducer
Put the following cpp in a
tar.gz
:Then create an EasyConfig that does e.g.
Then, try to install with
We discussed a bit on the Slack, and we should probably alter
easybuild-framework/easybuild/framework/easyblock.py
Line 2966 in 0a506aa
RPATH
for de CUDA stubs dir ineasybuild-framework/easybuild/tools/toolchain/toolchain.py
Line 961 in 6cab5e2
The text was updated successfully, but these errors were encountered: