-
-
Notifications
You must be signed in to change notification settings - Fork 635
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
Building local_dists.pex fails with Rosetta emulation in docker environment on Mac M1 #19587
Comments
Welcome to the Pantsbuild Community. This looks like your first issue here. Thanks for taking the time to write it. If you haven't already, feel free to come say hi on Slack. If you have questions, or just want to surface this issue, check out the Thanks again, and we look forward to your next Issue/PR 😄! |
Same issue here. How can we help to improve this? |
@dcandrade @JoostvDoorn could you supply more details about the setup so that we could reproduce? Does it require using the environments feature? Or are you generally getting a failure any time local_dists are involved and you have emulation on? |
It does indeed require using the environments. Configuration is something like:
|
The setup here is very similar to the one mentioned by @JoostvDoorn, but using MacOS alongside Colima/rancher as container runtime With rancher I get the mentioned error, but with Colima I get a too many open files error |
MacOS Sonoma seems to have fixed this for me. |
Same here. Isn't happening anymore |
Describe the bug
When using the environments feature on Mac M1 fails the
Building local_dists.pex
step with the following error occurs:I figured out that this was caused by the use of Rosetta for x86/amd64 emulation on Apple Silicon feature being turned on. This feature was turned on as it allows me to run certain other projects properly.
To reproduce:
Docker desktop settings ->
Features in development ->
Beta features ->
Use Rosetta for x86/amd64 emulation on Apple Silicon (turn on to fail)
Pants version
Which version of Pants are you using?
2.16.0
OS
Are you encountering the bug on MacOS, Linux, or both?
MacOS 13.5 (22G74)
Additional info
Add any other information about the problem here, such as attachments or links to gists, if relevant.
The text was updated successfully, but these errors were encountered: