Issue #5804 has been updated by Nobuyoshi Nakada.

% Done changed from 0 to 100


----------------------------------------
Bug #5804: Cannot cross compile trunk using Ruby 1.9.3 as BASERUBY
https://bugs.ruby-lang.org/issues/5804

Author: Luis Lavena
Status: Closed
Priority: Normal
Assignee: Nobuyoshi Nakada
Category: build
Target version: 2.0.0
ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]


Hello,

Attempting to cross-compile trunk (at r34114) with i686-w64-mingw32 host.

<pre>
$ make
	CC = i686-w64-mingw32-gcc
	LD = ld
	LDSHARED = i686-w64-mingw32-gcc -shared -s
	CFLAGS = -O3 -fno-omit-frame-pointer -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration 
	XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
	CPPFLAGS =   -I. -I.ext/include/i386-mingw32 -I../include -I..
	DLDFLAGS = -Wl,--enable-auto-image-base,--enable-auto-import -Wl,--out-implib=libmsvcrt-ruby191.dll.a msvcrt-ruby191.def -Wl,--stack,0x00200000,--enable-auto-import  
	SOLIBS = msvcrt-ruby191.res.o -lshell32 -lws2_32 -limagehlp  
config.status: creating i386-mingw32-fake.rb
rbconfig.rb updated
generating enc.mk
/Users/luis/projects/oss/ruby/xbuild/rbconfig.rb:7:in `<module:RbConfig>': ruby lib version (2.0.0) doesn't match executable version (1.9.3) (RuntimeError)
	from /Users/luis/projects/oss/ruby/xbuild/rbconfig.rb:5:in `<top (required)>'
	from /Users/luis/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:29:in `require'
	from /Users/luis/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:29:in `<top (required)>'
	from <internal:gem_prelude>:1:in `require'
	from <internal:gem_prelude>:1:in `<compiled>'
make: *** [enc.mk] Error 1
</pre>

Configure line used:

<pre>
$ sh ../configure --enable-shared --disable-install-doc --host=i686-w64-mingw32
</pre>

Versions:

<pre>
$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 4.7.0 20110830 (experimental)

$ make --version
GNU Make 3.81

$ autoconf --version
autoconf (GNU Autoconf) 2.68

$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
</pre>



-- 
http://redmine.ruby-lang.org