You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've just observed libnvrtc.so unsuccessfully dlopen()-ing libnvrtc-builtins.so: #224848 (comment). The former had an empty Runpath (except for /run/opengl-driver/lib). Presumably, before autoPatchelf hook it must have been $ORIGIN, since the two libraries live in the same directory. I think we should respect and even prefer $ORIGIN
I suggest we modify the autopatchelf script so as to accommodate:
forcefully appending $ORIGIN to the runpaths,
and optionally replacing absolute paths with $ORIGIN, when they coincide with the modified library's installation path
Notify maintainers
@NixOS/cuda-maintainers
The text was updated successfully, but these errors were encountered:
Assuming we start appending $ORIGIN, what happens when symlink we cuda libraries into another location? E.g. symlinkJoin, buildFHSUserEnv (/lib), and /run/opengl-driver/lib
Introduced in #226038 to save the trouble, but this is arguably is a dirty hack. I think we should keep adding patchelf --add-needed to make dependencies explicit, because this would be more consistent with the rest of nixpkgs. That said, it would be somewhat nice, if these libraries used DT_NEEDED instead of dlopen in the first place: NVIDIA/build-system-archive-import-examples#5
Describe the bug
We've just observed
libnvrtc.so
unsuccessfully dlopen()-inglibnvrtc-builtins.so
: #224848 (comment). The former had an empty Runpath (except for/run/opengl-driver/lib
). Presumably, before autoPatchelf hook it must have been$ORIGIN
, since the two libraries live in the same directory. I think we should respect and even prefer$ORIGIN
I suggest we modify the autopatchelf script so as to accommodate:
$ORIGIN
to the runpaths,$ORIGIN
, when they coincide with the modified library's installation pathNotify maintainers
@NixOS/cuda-maintainers
The text was updated successfully, but these errors were encountered: