-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Issue with gems on M1 that depends on ox #297
Comments
Can you provide a simple test that demonstrates how Ox is broken on M1 machines? I actually use an M1 for development and I have had no issues with it or the unit tests. |
Hello @ohler55 apologies, I had a quite long reply I was working on but scrapped it because... as it turns out it was a stupid issue although curious too. We were using AdoptOpenJDK's JDK11 on the M1 based agents and this was resulting in the local setup being done in native aarch64 mode while the Jenkins CI agent jar was launched from an x86_64 context resulting in the hilarity above. There are some other issues on Monterey 12.6 + Xcode 14, but they do not seem to affect this scenario in particular. Solution: for us it was as simple as migrating to Temerin's JDK11 which has a native Apple Silicon version. |
Glad you got it worked out. |
Hello @ohler55 and everyone due to a dependency to the this gem, it appears the danger-junit report functionality is broken on M1 machines, have you run into this issue? Do you have any advice or could you offer any help to work around this problem with danger-junit?
We are not sure how M1/arm64e support could be added or fixed (if present already) in Ox, is this something that could be considered?
We are also trying to raise it with danger-junit to see if there a workaround possible there: orta/danger-junit#33
/CI/Jenkins/workspace/tests-NA-all-commits-ios-Lobby-pr/ruby_path/ruby/3.1.0/gems/ox-2.14.11/lib/ox.rb:79:in `require': dlopen(/CI/Jenkins/workspace/tests-NA-all-commits-ios-Lobby-pr/ruby_path/ruby/3.1.0/gems/ox-2.14.11/ext/ox/ox.bundle, 0x0009): tried: '/CI/Jenkins/workspace/tests-NA-all-commits-ios-Lobby-pr/ruby_path/ruby/3.1.0/gems/ox-2.14.11/ext/ox/ox.bundle' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e))) -
We researched the issue and tried the commonly suggested workarounds like:
Ensuring all gems would be installed with the native extensions recompiled for the host machine:
and/or
We do have ruby as one of the supported platforms in our Gemfile.lock btw:
Adding the following platform restriction in the Gemfile:
But nothing seems to do the trick :/...
References: protocolbuffers/protobuf#8199 (and similar ones)
The text was updated successfully, but these errors were encountered: