Bug #3218: Cannot cross-compile Ruby 1.8.7 (svn) using Ruby 1.8.7
http://redmine.ruby-lang.org/issues/show/3218

Author: Luis Lavena
Status: Open, Priority: Normal
Category: build
ruby -v: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0] 

Hello,

Part of rake-compiler project and to help developers provide gems for Ruby users in Windows, we cross compile Ruby either from OSX or Linux using mingw32.

I've been monitoring and testing newer versions of 1.8.6, 1.8.7 and 1.9, including the svn branches of those to test compatibility.

I've posted in my blog the _safest_ patchlevels that work for cross compilation.

http://blog.mmediasys.com/2009/12/16/rake-compiler-safe-list-of-ruby-versions-that-can-be-cross-compiled/

Previously I have reported in #2485 cross compilation issues for 1.8.7, and we have issues again:

<pre><code>
compiling dl
Generating callback.func
mkmf.rb can't find header files for ruby at /Users/luis/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/ruby.h
make[1]: *** [callback.func] Error 1
make: *** [all] Error 1
</code></pre>

This is using Revision r27538 of ruby_1_8_7 branch.

It appears that mkmf is getting confused where it could find the header files.

I needed to use 1.8.7-p174 as newer patchlevels behave erratically under Leopard.

Find attached the generated rbconfig.rb and config.status

Thank you


----------------------------------------
http://redmine.ruby-lang.org