Open casparvl opened 2 years ago
@casparvl I can reproduce the issue easily, with "eb --rpath ARGoS-3.0.0-beta59-GCC-11.2.0.eb --force --installpath /tmp/$USER
", where all dependencies are installed without RPATH.
Is the whole stack built with RPATH enabled in your case?
Because I suspect that CMake may be getting path to the compiler via a dependency...
Yep, full stack is compiled with RPATH
The main
argos3
executable is notrpath
-ed correctly, therefore the sanity check fails:I think the reason it is not RPATH-ed is that CMAKE's configure seems to pick up on the real compilers, rather than the
rpath
wrappers:I think it should have picked up on based on the
PATH
:Not sure why it doesn't. Anyway, the verbose link command shows that it indeed invokes the real compiler by full path when linking
argos3
:Of course, this way, the RPATH wrappers are never invoked and it makes sense that the libraries linked here are not RPATH-ed. What I don't understand is how the RPATH wrappers are not picked up by CMAKE's configure in the first place...