-
Notifications
You must be signed in to change notification settings - Fork 150
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
Wrong rpath after repair #257
Comments
This might be related to #245. Could you check if it happens with 3.1.1 as well? Is the code available somewhere to try to reproduce the issue? |
It happens on 3.1.1 as well. Here is how to create the same wheel:
I can't test it directly on the manylinux docker because for some reason it installs the shared libraries in You can reproduce the issue on another docker with:
|
It would be better to rebuild the sample from source not to lose it when python 3.6 is dropped but it's a bit complex to rebuild in a generic way.
It would be better to rebuild the sample from source to get it for all images but it's a bit complex to rebuild in a generic way.
Auditwheel is putting grafted libraries at the root of the wheel: auditwheel/auditwheel/repair.py Lines 47 to 58 in 42a1e56
It assumes 2 things:
Files can go in:
Here, That being said, I don't know the exact implications between the different destination directories allowed and how auditwheel should manage them. If every grafted library is grafted for only one destination directory, should be pretty easy to manage however, if it crosses multiple directories, that's another story. (I'm specifically thinking of the |
It would be better to rebuild the sample from source to get it for all images but it's a bit complex to rebuild in a generic way.
It would be better to rebuild the sample from source to get it for all images but it's a bit complex to rebuild in a generic way.
It would be better to rebuild the sample from source to get it for all images but it's a bit complex to rebuild in a generic way.
Wrote a small script that patches the rpaths in our wheels post auditwheel. In case you're interested, it's easily adapted for your situation: https://github.com/arbor-sim/arbor/blob/3dc2f266ecb09e535ab35d878fd3a8375e7d2fa8/scripts/patchwheel.py |
I am using auditwheel 3.2.0 on
manylinux2014_x86_64
docker and after runningauditwheel repair
on my wheel the rpath of a shared library is set to a wrong value.When i install the wheel created by auditwheel i get this tree:
So the rpath of
libexample_adder.so
should be set to$ORIGIN/../gepetto_example_adder.libs
, however auditwheel set a wrong rpath:The text was updated successfully, but these errors were encountered: