Issue #6329 has been reported by luislavena (Luis Lavena).

----------------------------------------
Bug #6329: Can't use Ruby 1.9.3 as baseruby when cross compiling (MinGW)
https://bugs.ruby-lang.org/issues/6329

Author: luislavena (Luis Lavena)
Status: Open
Priority: Normal
Assignee: 
Category: build
Target version: 2.0.0
ruby -v: 2.0.0 r35415


Hello,

I believe this was covered before on older issues, but this is showing again.

<pre>
$ make
	CC = i686-w64-mingw32-gcc
	LD = ld
	LDSHARED = i686-w64-mingw32-gcc -shared 
	CFLAGS = -O3 -fno-omit-frame-pointer -ggdb -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 -DRUBY_EXPORT
	CPPFLAGS = -D_WIN32_WINNT=0x0501   -I. -I.ext/include/i386-mingw32 -I../include -I..
	DLDFLAGS = -Wl,--enable-auto-image-base,--enable-auto-import -Wl,--out-implib=libmsvcrt-ruby200.dll.a msvcrt-ruby200.def -Wl,--stack,0x00200000,--enable-auto-import  
	SOLIBS = msvcrt-ruby200.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/.rbenv/versions/1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:31:in `require'
	from /Users/luis/.rbenv/versions/1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:31:in `<top (required)>'
	from <internal:gem_prelude>:1:in `require'
	from <internal:gem_prelude>:1:in `<compiled>'
make: *** [enc.mk] Error 1
</pre>

Switching to 1.8.7-p358 solves the issue.

No --with-baseruby was provided during configure phase, `ruby` was available in the $PATH



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