Project

General

Profile

Bug #4094

cross-compilation from Linux to Windows fails DL compilation

Added by luislavena (Luis Lavena) almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
[ruby-core:33438]

Description

=begin
Hello,

When cross-compiling ruby_1_8_7 branch under Ubuntu 10.04 (mingw32 cross compiler package), it fail with the following output:

==
compiling dl
make[1]: Entering directory /home/user/projects/oss/cross-build/ext/dl'
Generating callback.func
mkmf.rb can't find header files for ruby at ../ruby/ruby.h
make[1]: *** [callback.func] Error 1
make[1]: Leaving directory
/home/user/projects/oss/cross-build/ext/dl'
make: *** [all] Error 1
==

The configure options used:

sh ../ruby/configure --enable-shared --disable-install-doc --host=i586-mingw32msvc --target=i386-mingw32

Attached find config.log (zipped), Makefile and mkmf.log from dl.

Thank you.
=end


Files

config.zip (20.7 KB) config.zip luislavena (Luis Lavena), 11/28/2010 05:54 AM
Makefile (6.31 KB) Makefile luislavena (Luis Lavena), 11/28/2010 05:54 AM
mkmf.log (4.32 KB) mkmf.log luislavena (Luis Lavena), 11/28/2010 05:54 AM
makefile-topdir-relative-to-builddir.patch (652 Bytes) makefile-topdir-relative-to-builddir.patch luislavena (Luis Lavena), 11/29/2010 10:34 PM

Related issues

Has duplicate Backport187 - Backport #2531: Ruby 1.8.7-p248 fails to cross-compile same versionClosed12/26/2009Actions

History

#1

Updated by luislavena (Luis Lavena) almost 9 years ago

=begin
Please find attached a patch for this issue, is a backport of fake.rb from trunk as it defined top_srcdir relative to the builddir

=end

#2

Updated by luislavena (Luis Lavena) almost 9 years ago

  • Status changed from Open to Closed

=begin
Issue solved by r30051. Closing this ticket.
=end

Also available in: Atom PDF