Project

General

Profile

Actions

Backport #2531

closed

Ruby 1.8.7-p248 fails to cross-compile same version

Added by luislavena (Luis Lavena) over 14 years ago. Updated almost 13 years ago.


Description

=begin
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.
=end


Files

config.log (394 KB) config.log luislavena (Luis Lavena), 12/26/2009 03:54 AM
config.status (25.4 KB) config.status luislavena (Luis Lavena), 12/26/2009 03:54 AM
rbconfig.rb (6.7 KB) rbconfig.rb luislavena (Luis Lavena), 12/26/2009 03:54 AM
Makefile (6.45 KB) Makefile luislavena (Luis Lavena), 01/15/2010 08:12 AM
mkmf.log (4.99 KB) mkmf.log luislavena (Luis Lavena), 01/15/2010 08:12 AM
0002-Fix-2531-by-backporting-changes-to-fake.rb-required-.patch (2.97 KB) 0002-Fix-2531-by-backporting-changes-to-fake.rb-required-.patch luislavena (Luis Lavena), 09/13/2010 05:43 AM
0004-Remove-RUBY_DESCRIPTION-from-fake.rb.in-is-not-expos.patch (935 Bytes) 0004-Remove-RUBY_DESCRIPTION-from-fake.rb.in-is-not-expos.patch luislavena (Luis Lavena), 09/13/2010 06:58 AM

Related issues 3 (0 open3 closed)

Has duplicate Backport187 - Bug #2765: unable to cross compile 1.8.7p249Closed02/20/2010Actions
Has duplicate Backport187 - Bug #3218: Cannot cross-compile Ruby 1.8.7 (svn) using Ruby 1.8.7Closed04/29/2010Actions
Is duplicate of Ruby 1.8 - Bug #4094: cross-compilation from Linux to Windows fails DL compilationClosed11/28/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0