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

auditwheel 5.2.0: Unable to find shared object files when installing wheels repaired with auditwheel==5.2.0 #401

Closed
learnforpractice opened this issue Oct 22, 2022 · 5 comments

Comments

@learnforpractice
Copy link

running an executable file that was processed by auditwheel repair --plat manylinux_2_31_x86_64 shows the following error:

error while loading shared libraries: ibssl-578d2f9a.so.1.1: cannot open shared object file: No such file or directory

version 5.1.2 is ok.

@mayeut
Copy link
Member

mayeut commented Oct 22, 2022

do you have a reproducer for this ?
all our tests are passing so it's not easy to tell what went wrong here.

@learnforpractice
Copy link
Author

see
https://github.com/learnforpractice/ipyeos-1/actions/runs/3303572530/jobs/5451643526

and here is the workflow file:

https://github.com/learnforpractice/ipyeos-1/blob/main/.github/workflows/build-pyeos-manylinux.yml

change auditwheel==5.2.0 back to auditwheel==5.1.2 in the above file will not have such an issue.

@mayeut
Copy link
Member

mayeut commented Oct 22, 2022

You're most likely hitting NixOS/patchelf#158, most likely fixed by NixOS/patchelf#335
I get the same behavior as auditwheel 5.1.2 (tests failing with loading /usr/lib/x86_64-linux-gnu/libpython3.10.so failed!) when I update patchelf from 0.10 to 0.15.
You can get an up-to-date patchelf with pip install patchelf so in your reproducer:
python3.10 -m pip install scikit-build cython auditwheel patchelf works (well, same failure as 5.1.2)

@learnforpractice
Copy link
Author

Thank you, install patchelf do fix this issue.

It's weird with version 5.1.2 I don't need to do this.

About loading so issue, that's out of topics, PYTHON_SHARED_LIB_PATH=${{ env.pythonLocation }}/lib/libpython3.10.so ipyeos fix it.

@mayeut
Copy link
Member

mayeut commented Oct 22, 2022

5.2.0 changed the way multiple replacements are handled to speed-up the process.
It has some impact (as was the case here). Depending on wether or not it has too much impact, we might do a version patch with a minimum patchelf version for this feature to be enabled (but it's unclear if/how the bug mentioned in patchelf only affects multiple calls at once) or just bump the minimum required version of patchelf.

@mayeut mayeut changed the title auditwheel 5.2.0: executable file fails to run after processed by auditwheel repair command auditwheel 5.2.0: Unable to find shared object files when installing wheels repaired with auditwheel==5.2.0 Oct 27, 2022
@mayeut mayeut pinned this issue Oct 27, 2022
@mayeut mayeut unpinned this issue Mar 5, 2023
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

2 participants