-
-
Notifications
You must be signed in to change notification settings - Fork 896
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
Native gems: create releases for additional darwin platforms #2079
Comments
Note that @drbrain says: "Travis has older Xcode for linking on older Darwin, I use it for building work stuff for MacOS" at https://twitter.com/drbrain/status/1303369620099751936 |
Here are the available macOS versions on Travis-CI |
It looks like this might be helpful, too: https://github.com/tpoechtrager/osxcross which is a cross-compiler toolchain for OSX. |
@luislavena I'm going to use osxcross to experiment with creating a rake-compiler-dock-compatible image for OSX! |
Example of how this was used in the past in a docker container: https://github.com/hone/mruby-cli-docker/blob/master/Dockerfile which is used by the https://github.com/hone/mruby-cli project. |
Aaaand a more complete Dockerfile using osxcross at https://github.com/appPlant/docker-images/blob/mruby-cli/Dockerfile |
Did some poking around this morning. I noticed that the Lesson: we don't need to ship individual gem files for each version of darwin. Next step: let's take a look at how grpc is built. Optionally consider setting up osxcross in a linux container. |
@odlp - I've created a Can I ask that you try this on your
? |
@flavorjones works for me! Output from
|
@odlp Awesome! Thank you so much for giving it a try, this is really good news. Look for an official |
Closing this because no additional work is needed, and I'm planning an RC4 release today or tomorrow. |
Also, please see #2142 which pulls in the new Darwin cross-compilation functionality of rake-compiler-dock. We'll have arm64 native gems in the next RC. If anybody wants to help test ARM, let me know! |
@flavorjones Hello, I'd be happy to test ARM64 version on my recent application. Is it possible to release RC4 with ARM64 support? |
@deepj yes, RC4 will ship an arm64 native gem that you can test. I'm hoping that will be today or tomorrow. |
Hey all - v1.11.0.rc4 has been released with pre-compiled native gem support for arm64-darwin. If you get a chance, please kick the tires and let me know here or at #2075 how it goes for you.
except, you know, it should say |
@flavorjones I can confirm it works smoothly for me. Thank you! |
Cross compile for x86_64-darwin and arm64-darwin per rake-compiler-dock --- This requires latest rake-compiler-dock from master branch. **What problem is this PR intended to solve?** Fat binary gems for MacOS are currently built on MacOS native. This complicates the build and release cycle. It is desirable to build all binary gems per cross compiler. Related to #2079 **Have you included adequate test coverage?** No CI, but I tested the resulting `x86_64-darwin` gem on MacOS-10.14.4 with both the system ruby-2.3.7 (after extending the `required_ruby_version` of nokogiri) and ruby-2.7.2 installed per rvm. The Mac is running on https://github.com/foxlet/macOS-Simple-KVM . I'm unable to execute the `arm64-darwin` on any computer. I just did some static inspection of the built `nokogiri.bundle` file. **Does this change affect the behavior of either the C or the Java implementations?** C only.
Nokogiri v1.11.0.rc3 only supports OSX
x86_64-darwin19
platform.At least one commented at #2075 has asked about
x86_64-darwin18
. If that's a common platform we should consider shipping that, as well.I'll be honest and say that my inability to virtualize OSX is a real challenge here. I have a work laptop that's darwin19, and I have an 2009 mac mini that might have darwin18 on it (which looks like it's x86_64).
The text was updated successfully, but these errors were encountered: