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

armv7 QNAP Docker: wheels with SEGFAULT #414

Closed
magicse opened this issue Mar 5, 2023 · 2 comments
Closed

armv7 QNAP Docker: wheels with SEGFAULT #414

magicse opened this issue Mar 5, 2023 · 2 comments

Comments

@magicse
Copy link

magicse commented Mar 5, 2023

@Wetzel402 @Gerigot
Without auditwheel all packages work well. But after repairing with auditwheel I get SEGFAULT
Also the same problem with other packages (with shared libs libstdc++ and libgcc_s) in this docker image.
Here is my test home-assistant/core#86589 (comment)
And this link home-assistant/core#86589 to the start of the discussion thread
As a result of the experiments, it turned out that the problem is auditwheel + patсhelf

The strange thing is that in Qemu emulation such a package works, but not on real ARMv7
General problem that wheel repaired in Qemu Docker image work in Qemu but didnt work in the same image Docker on real ARMv7, and without wheelaudit built packages work well.
GDB show that problem in /usr/local/lib/python3.10/site-packages/*.libs/libstdc++-ad7c573d.so.6.0.29 .libs/libgcc_s-8c7760c8.so.1

@mayeut
Copy link
Member

mayeut commented Mar 5, 2023

This is most likely a bug in patchelf.
You should be able to work around this by statically linking libstdc++ and libgcc_s when building the cchardet wheel.

Edit: the fact that it works with qemu seems weird though.

@magicse
Copy link
Author

magicse commented Mar 5, 2023

You should be able to work around this by statically linking libstdc++ and libgcc_s when building the cchardet wheel.

I'd be happy to get around but I don't make wheels for Home Assistant, they make wheels with those libraries included. It seems to me that I already got everyone there ... with this problem.

Edit: the fact that it works with qemu seems weird though.

And yes it very strange.

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