Project

General

Profile

Actions

Bug #5804

closed

Cannot cross compile trunk using Ruby 1.9.3 as BASERUBY

Added by luislavena (Luis Lavena) almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0]
Backport:
[ruby-core:41792]

Description

Hello,

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

Configure line used:

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

Versions:

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

Also available in: Atom PDF

Like0
Like0Like0