-
Notifications
You must be signed in to change notification settings - Fork 55
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
Cannot Build on M3 #92
Comments
was able to force it to install with:
|
I don't think this has anything to do with M3 versus M1. It is more likely due to some MacOS update that affects clang? I've been bashing my head against this problem for many hours, just trying to build the gem on the same computer I had previously built it on. Like you, I found that I could build it with the system-provided Ruby, but no versions that I had installed with rbenv, from 2.7.2 through 3.3.0. The command in your last comment worked for me though! I have also found 3 other gems that hit this same problem. In some cases, a newer version of those gems did work, so I guess that those gems have done some code change to work around this. |
As an example, nio4r 2.5.7 fails to build with the same error. Your workaround works for this specific version, but is not required for the current version (2.7.0). |
Ohhh, one other note - the output in your paste is one of the 36 warnings, not the 1 error. Those are suppressed in a later Ruby 2.7 version than 2.7.2. This is a relevant link about that: https://bugs.ruby-lang.org/issues/17865. I'm not sure which, but I ran into the same thing with 2.7.2 and switched to 2.7.8 to simplify the output. Here's that error:
|
This also appears to work if you're using Bundler to install the gem: |
A bunch of gems are failing on M2 too, this flag is usable for similar errors. Thanks a bunch! |
I have the same problem on: 2.6 GHz 6-Core Intel Core i7 THANK YOU for the fix. |
In my case, it still gives compilation error and then it says:
|
Having this same issue on an M1 Macbook Pro running Sonoma 14.5, using rbenv with both 2.7.x and 3.3.x, so I agree it's probably related to a macOS software update and not hardware related. Workaround with the |
This is the same problem as in |
Ruby Version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352)
Rails Version
5.2
Hardware
M3 (arm64-darwin23)
Posix-spawn Version
0.3.15
Issue
My company recently purchased Apple M3's. We had been using the M1's without an issue. When installing posix-spawn with
gem install posix-spawn
I get this output:Interestingly though, I can install it without issue using the system ruby:
ruby -v ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
Any ideas?
The text was updated successfully, but these errors were encountered: