From: Luis Lavena Date: 2009-12-26T03:54:12+09:00 Subject: [ruby-core:27327] [Bug #2531] Ruby 1.8.7-p248 fails to cross-compile same version Bug #2531: Ruby 1.8.7-p248 fails to cross-compile same version http://redmine.ruby-lang.org/issues/show/2531 Author: Luis Lavena Status: Open, Priority: Normal Category: build ruby -v: ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-linux] Hello, I was informed before in #2485 (backport) that same version and patchlevel is required to perform a cross-compilation targeting MinGW. Using latest 1.8.7 as base, tried to cross-compile same patchlevel version, but it failed due missing ruby.h file:

compiling dl
make[1]: Entering directory `/home/luis/.rake-compiler/builds/ruby-1.8.7-p248/ext/dl'
Generating callback.func
mkmf.rb can't find header files for ruby at /home/luis/.rvm/ruby-1.8.7-p248/lib/ruby/ruby.h
make[1]: *** [callback.func] Error 1
make[1]: Leaving directory `/home/luis/.rake-compiler/builds/ruby-1.8.7-p248/ext/dl'
make: *** [all] Error 1
From what I see, seems mkmf is expecting the headers files in the wrong directory, as it needs to append the version (1.8) and the platform (i686-linux) to properly find them. Find attached the config.status, config.log and rbconfig.rb generated. My interest in the success of the cross compilation process is associated with rake-compiler project to allow Linux/OSX developers build and ship functional gems and projects for Windows users. Thank you. ---------------------------------------- http://redmine.ruby-lang.org