Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit DT_NEEDED #5

Open
SomeoneSerge opened this issue Apr 21, 2023 · 0 comments
Open

Explicit DT_NEEDED #5

SomeoneSerge opened this issue Apr 21, 2023 · 0 comments

Comments

@SomeoneSerge
Copy link

It seems that many of the https://developer.download.nvidia.com/compute/cuda/redist/ packages come with empty DT_NEEDED. For example patchelf --print-rpath lib/libnvrtc.so is empty, but libnvrtc.so (depending on usage) tries to dlopen libnvrtc-builtins.so at runtime.

In nixpkgs we use DT_NEEDED to infer dependencies of pre-built binaries and automatically patchelf them with appropriate Runpaths. When libraries dlopen() undeclared dependencies we currently only discover this from users' error reports and have to handle these dependencies manually, e.g.

We're still looking for better way to do things, but meantime I wonder if it would be possible to build cuda packages such that dependencies end up listed in DT_NEEDED in the first place. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant