-
Notifications
You must be signed in to change notification settings - Fork 508
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
sorbet-static-0.5.10667-universal-darwin-21
does not include arm64 code
#6778
Comments
Getting this issue with |
Also getting this issue on an M1 mac with |
I started looking into this while investigating sorbet's performance on our code-base. One thing I found Lines 111 to 120 in b1ec9d2
My general understanding is that universal binaries are made by effectively compiling with multiple arches, ie I wanted to test locally, but I haven't able to build with bazel locally yet 🤔 |
Hey folks, I'm curious if anyone has the knowledge of how to build the sorbet-static gem for M1, either as a universal gem for arm & x86, or as two different gems? I set up https://github.com/sorbet-multiarch/ this weekend to help out with linux/arm64 builds for this issue, and theoretically can do the same for darwin. (using CircleCI's macos machines). Maybe @nathunsmitty (because of https://rubygems.org/gems/sorbet-static-m1)? |
Just for anyone else who might stuble across this issue, having Rosetta installed was enough to fix this for me and my team! I didn't have to run my terminal or VS Code with x86 binaries or anything, just installing Rosetta fixed this issue for me And if you want to do that from the cmd line you can run this
|
When I run
Any clue? Thanks 🙏 |
@eddiecheung-shopify, this error is actually related to Tapioca and not to the present issue. I'd suggest moving it to https://github.com/Shopify/tapioca/issues. |
This is still an issue with version 0.5.11230, and I think the problem is only going to get worse as there's less of a need to install Rosetta these days. |
It seems like there may be a bug with fat binaries on mac with
sorbet-static
. I imagine most devs have rosetta installed, so it's probably not an urgent issue. But figured I'd report.Looking into it a bit more,
file
seems to agree that the binary only works for x86_64:The text was updated successfully, but these errors were encountered: