From: Luis Lavena Date: 2009-12-16T17:11:57+09:00 Subject: [ruby-core:27196] [Bug #2486] cross-compile 1.9.1-p376 fails Bug #2486: cross-compile 1.9.1-p376 fails http://redmine.ruby-lang.org/issues/show/2486 Author: Luis Lavena Status: Open, Priority: Normal Category: build ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux] When cross-compiling (target: i386-mingw32), Ruby 1.9.1-p376 fails with the following error:

i586-mingw32msvc-gcc -O2 -g -Wall -Wno-parentheses   -I. -I.ext/include/i386-mingw32 -I/home/luis/.rake-compiler/sources/ruby-1.9.1-p376/include -I/home/luis/.rake-compiler/sources/ruby-1.9.1-p376  -DRUBY_EXPORT   -o win32.o -c /home/luis/.rake-compiler/sources/ruby-1.9.1-p376/win32/win32.c
/home/luis/.rake-compiler/sources/ruby-1.9.1-p376/win32/win32.c: In function "winnt_stat":
/home/luis/.rake-compiler/sources/ruby-1.9.1-p376/win32/win32.c:3549: warning: pointer targets in passing argument 1 of "_mbspbrk" differ in signedness
/home/luis/.rake-compiler/sources/ruby-1.9.1-p376/win32/win32.c:3549: warning: pointer targets in passing argument 2 of "_mbspbrk" differ in signedness
/home/luis/.rake-compiler/sources/ruby-1.9.1-p376/win32/win32.c: In function "rb_w32_write":
/home/luis/.rake-compiler/sources/ruby-1.9.1-p376/win32/win32.c:4607: error: lvalue required as left operand of assignment
make: *** [win32.o] Error 1
Find attached config.log, config.status and rbconfig.rb (to help debug if needed, but I think in this case the issue is pure C) ---------------------------------------- http://redmine.ruby-lang.org