Skip to content
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 get Windows Fat Binaries to Build #79

Closed
tjschuck opened this issue Jul 5, 2013 · 5 comments
Closed

Cannot get Windows Fat Binaries to Build #79

tjschuck opened this issue Jul 5, 2013 · 5 comments
Assignees

Comments

@tjschuck
Copy link
Contributor

tjschuck commented Jul 5, 2013

After struggling with local environments to get everything working, I took a cue from rails-dev-box and made a portable-and-reproducible rake-compiler-dev-box.

And it works! I just used it to ship new versions of bcrypt-ruby. However, I couldn't get the Windows fat binary to build (attempted with package_win32_fat_binary.sh in the repo, self-noted issue here).

Since 1.8 is now officially dead to us, I'm not necessarily too concerned about this. But if you are, I'd love your feedback on what's missing from the dev-box that could possibly get it working.

Only filing this as an issue here because I'm pretty sure I followed all documentation correctly and it still didn't work, so depending on the solution, the docs might need updating.

@luislavena
Copy link
Contributor

Hello, can you provide the specific issue you are getting? An error, how
you build the cross versions of ruby, which project you tried to cross
compile?

Thank you, I will look over the weekend.

Sorry for top posting. Sent from mobile.
On Jul 5, 2013 8:58 PM, "T.J. Schuck" notifications@github.com wrote:

After struggling with local environments to get everything working, I took
a cue from rails-dev-box https://github.com/rails/rails-dev-box and
made a portable-and-reproducible rake-compiler-dev-boxhttps://github.com/tjschuck/rake-compiler-dev-box
.

And it works! I just used it to ship new versions of bcrypt-rubyhttps://rubygems.org/gems/bcrypt-ruby.
However, I couldn't get the Windows fat binary to build (attempted with
package_win32_fat_binary.sh in the repo, self-noted issue herehttps://github.com/tjschuck/rake-compiler-dev-box/issues/1
).

Since 1.8 is now officially dead to ushttp://www.ruby-lang.org/en/news/2013/06/30/we-retire-1-8-7/,
I'm not necessarily too concerned about this. But if you are, I'd love
your feedback on what's missing from the dev-box that could possibly get it
working.

Only filing this as an issue here because I'm pretty sure I followed
all documentation correctly and it still didn't work, so depending on the
solution, the docs might need updating.


Reply to this email directly or view it on GitHubhttps://github.com//issues/79
.

@tjschuck
Copy link
Contributor Author

tjschuck commented Jul 6, 2013

Here's the full output from running bundle exec rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3: https://gist.github.com/tjschuck/359514a04ecc83828bb4

Full script leading up to that is here: https://github.com/tjschuck/rake-compiler-dev-box/blob/master/package_win32_fat_binary.sh

This is just attempting to build the sample_gem that's in rake-compiler-dev-box: https://github.com/tjschuck/rake-compiler-dev-box/tree/master/sample_gem

@luislavena
Copy link
Contributor

There is a problem with cross compilation of ruby itself, this is not rake
compiler specific.

Will take a look tomorrow to your work and determine which patchlevel work
properly.

Thank you for starting this!

Sorry for top posting. Sent from mobile.
On Jul 5, 2013 10:13 PM, "T.J. Schuck" notifications@github.com wrote:

Here's the full output from running bundle exec rake cross native gem
RUBY_CC_VERSION=1.8.7:1.9.3:
https://gist.github.com/tjschuck/359514a04ecc83828bb4

Full script leading up to that is here:
https://github.com/tjschuck/rake-compiler-dev-box/blob/master/package_win32_fat_binary.sh

This is just attempting to build the sample_gem that's in
rake-compiler-dev-box https://github.com/tjschuck/rake-compiler-dev-box:
https://github.com/tjschuck/rake-compiler-dev-box/tree/master/sample_gem


Reply to this email directly or view it on GitHubhttps://github.com//issues/79#issuecomment-20546688
.

@luislavena
Copy link
Contributor

Hello @tjschuck, the issue seems to be that Ubuntu's mingw32 packages are too old (GCC 4.2.1) and We require at least 4.5.2 for 1.8.7 and 1.9.3 and 4.7.2 for Ruby 2.0.0.

I'm looking into several pre-compiled GCC packages for mingw-w64 project, which provides support for both x86 and x64 targets.

I've tried yypkg for mingw-builds without success (issues when trying to chroot) so I'm looking for other options.

I really like your approach as I've failed several times on getting a rake-compiler box built.

Thank you for sharing this and will keep you updated on the progress.

@tjschuck
Copy link
Contributor Author

I'm going to go ahead and close this. It will be a non-issue once tjschuck/rake-compiler-dev-box#2 lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants