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

Rosetta error running staticx+pyinstaller built in docker, in same docker, on Apple Silicon #261

Open
brettdh opened this issue Jul 20, 2023 · 1 comment

Comments

@brettdh
Copy link

brettdh commented Jul 20, 2023

I'm attempting to build a bundle, in Docker, using staticx+pyinstaller. The target is amd64 Linux; the host machine is an M2 Macbook Pro. In Gitlab CI, this builds and runs fine. In Docker for Mac (with Rosetta emulation enabled), this builds fine, but shows this error at run time:

rosetta error: failed to open elf at
bundle: Child exited for unknown reason! (wstatus == 5)

Minimal repro project here: https://github.com/brettdh/staticx-pyinstaller-rosetta-error-repro

Manual for now, but if I have time soon, I will set up Github Actions for Linux and Mac.

@JonathonReinhart
Copy link
Owner

Hi Brett, sorry I failed to reply here. I don't have a Macbook so I can't really help here. The best I can do is point you at the troubleshooting guide and see if that helps you to gather any more information.

rosetta error: failed to open elf at

The fact that this line is truncated leaves me thinking that this is some deep incompatibility with Rosetta and the tricks that StaticX has to play. This is probably going to take some thorough investigation to understand what Rosetta is doing.

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