Project

General

Profile

Actions

Backport #3666

closed

Backport of r26311 (Bug #2587)

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


Description

=begin
Hello,

Working on getting Ruby 1.8.7, using branch ruby_1_8_7 at revision 28669 is not possible to cross-compile it.

Configure process completes perfectly, but compilation fails:

$ make
rbconfig.rb updated
i686-w64-mingw32-windres --include-dir . --include-dir . --include-dir ../win32 msvcrt-ruby18.rc msvcrt-ruby18.res.o
i686-w64-mingw32-gcc -g -O2 -DRUBY_EXPORT -I. -I.. -c ../array.c
In file included from ../defines.h:186:0,
from ../ruby.h:37,
from ../array.c:15:
../win32/win32.h:154:8: error: redefinition of ‘struct timezone’
/home/luis/mingw/w32/bin/../lib/gcc/i686-w64-mingw32/4.5.2/../../../../i686-w64-mingw32/include/time.h:260:8: note: originally defined here
make: *** [array.o] Error 1

compiler used: i686-w64-mingw32 (32bits mingw-w64 project) OS: Ubuntu.
i686-w64-mingw32-gcc (GCC) 4.5.2 20100802 (prerelease)

There should be a backport of the changes reported in bug #2587.

Cross-compilation of Ruby using MinGW is important for OSX/Linux developers to provide native gems for Windows.

Thank you.
=end


Files


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #2587: Forced definition of struct timezone under MinGWClosed01/10/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0