Can't use Ruby 1.9.3 as baseruby when cross compiling (MinGW)
I believe this was covered before on older issues, but this is showing again.
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
<module:RbConfig>': ruby lib version (2.0.0) doesn't match executable version (1.9.3) (RuntimeError)'
make: *** [enc.mk] Error 1
Switching to 1.8.7-p358 solves the issue.
No --with-baseruby was provided during configure phase,
ruby was available in the $PATH
#2 Updated by nobu (Nobuyoshi Nakada) about 5 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100