Open brenthuisman opened 2 years ago
Would you be by any chance in the same situation as https://github.com/pypa/auditwheel/issues/257 ?
Looks like it!
readelf -d _arbor.cpython-38-x86_64-linux-gnu.so
Dynamic section at offset 0x595000 contains 32 entries:
Tag Type Name/Value
0x000000000000000f (RPATH) Library rpath: [$ORIGIN/../../../../../../arbor.libs]
[...]
Unfortunately there seems to be no workaround (or fix, since the bug is still open), right? Is there anything you can suggest I can try?
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'm building a wheel for the Arbor Python package, which is a C++ codebase that depends on
libxml2
. I'm running into the problem that despite the build succeeding, auditwheel correctly finding thelibxml*.so*
and including it, the execution of our tests fails withImportError: libxml2-3998bec4.so.2.9.1: cannot open shared object file: No such file or directory
.The workflow uses the
cibuildwheel
action, but I can reproduce the exact same error with local builds using thepypa/manylinux2014_x86_64
image. See here the output of the workflow at a relevant point: https://github.com/arbor-sim/arbor/runs/4618790432?check_suite_focus=true#step:3:394auditwheel show
on a locally produced wheel showslibxml2-3998bec4.so.2.9.1
being included:Not sure what might be the problem here, or what to do to solve it. Any help is appreciated!