Bug #5804

Cannot cross compile trunk using Ruby 1.9.3 as BASERUBY

Added by Luis Lavena almost 4 years ago. Updated almost 4 years ago.

Assignee:Nobuyoshi Nakada
ruby -v:ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0] Backport:



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

$ 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
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
from internal:gem_prelude:1:in require'
from <internal:gem_prelude>:1:in
make: *** [enc.mk] Error 1

Configure line used:

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


$ 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)


#1 Updated by Nobuyoshi Nakada almost 4 years ago

  • Status changed from Open to Closed

Fixed at r34131.

#2 Updated by Nobuyoshi Nakada almost 4 years ago

  • % Done changed from 0 to 100

Also available in: Atom PDF