public
Created

[1.8] Building Rubinius on Windows 32bit with MinGW-w64 (name-prefix stripped) DevKit

  • Download Gist
build setup
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
C:\Users\Jon\Documents\RubyDev\rubinius-git>git log -1 --decorate --oneline
655ea01 (HEAD, origin/master, core/master, core/HEAD, master) Fix x86-32 fibers and use na
 
C:\Users\Jon\Documents\RubyDev\rubinius-git>echo %PATH%
C:\DevKit-w64\bin;C:\DevKit-w64\mingw\bin;C:\Program Files\CollabNet\Subversion Client;
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft Windows Performance Toolkit\;
C:\tools;C:\Python27\Scripts;C:\Python27;C:\ruby187\bin;c:\scala\bin;c:\lua\bin;c:\groovy\bin;C:\gnuwin32\curl\bin;
C:\gnuwin32\diff\bin;C:\gnuwin32\grep\bin;C:\gnuwin32\findutils\bin;C:\gnuwin32\sed\bin;C:\gnuwin32\gawk\bin;
C:\gnuwin32\less\bin;C:\gnuwin32\upx\bin;C:\gnuwin32\coreutils\bin;C:\Program Files\Wix;C:\git\cmd
 
C:\Users\Jon\Documents\RubyDev\rubinius-git>gcc --version
gcc (GCC) 4.5.4 20110812 (prerelease)
 
C:\Users\Jon\Documents\RubyDev\rubinius-git>ruby --version
ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
 
C:\Users\Jon\Documents\RubyDev\rubinius-git>ruby configure --show
 
Using the following configuration to build
------------------------------------------
module Rubinius
BUILD_CONFIG = {
:which_ruby => :ruby,
:build_ruby => "C:/ruby187/bin/ruby.exe",
:build_rake => "rake",
:build_perl => "perl",
:llvm => :prebuilt,
:llvm_configure => "",
:cc => "gcc",
:cxx => "g++",
:user_cflags => "",
:user_cppflags => "",
:user_ldflags => "",
:defines => [],
:curses => nil,
:host => "i686-pc-mingw32",
:cpu => "i686",
:vendor => "pc",
:os => "mingw32",
:little_endian => true,
:sizeof_long => 4,
:x86_32 => true,
:bindir => "C:/Users/Jon/Documents/RubyDev/rubinius-git/bin",
:libdir => "C:/Users/Jon/Documents/RubyDev/rubinius-git",
:runtime => "C:/Users/Jon/Documents/RubyDev/rubinius-git/runtime",
:kernel_path => "C:/Users/Jon/Documents/RubyDev/rubinius-git/kernel",
:lib_path => "C:/Users/Jon/Documents/RubyDev/rubinius-git/lib",
:ext_path => "C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ext",
:include18dir => "C:/Users/Jon/Documents/RubyDev/rubinius-git/vm/capi/18/include",
:include19dir => "C:/Users/Jon/Documents/RubyDev/rubinius-git/vm/capi/19/include",
:include20dir => "C:/Users/Jon/Documents/RubyDev/rubinius-git/vm/capi/19/include",
:mandir => "C:/Users/Jon/Documents/RubyDev/rubinius-git/man",
:gemsdir => "C:/Users/Jon/Documents/RubyDev/rubinius-git/gems",
:sitedir => "C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/site",
:vendordir => "C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/vendor",
:program_name => "rbx",
:version => "2.0.0dev",
:libversion => "2.0",
:release_date => "yyyy-mm-dd",
:config_version => 138,
:windows => true,
:darwin => false,
:bsd => false,
:linux => false,
:version_list => ["18", "19"],
:default_version => "18",
:vendor_zlib => true,
}
end
 
Setting the following defines for the VM
----------------------------------------
#define RBX_HOST "i686-pc-mingw32"
#define RBX_CPU "i686"
#define RBX_VENDOR "pc"
#define RBX_OS "mingw32"
#define RBX_BIN_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/bin"
#define RBX_GEMS_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/gems"
#define RBX_RUNTIME "C:/Users/Jon/Documents/RubyDev/rubinius-git/runtime"
#define RBX_KERNEL_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/kernel"
#define RBX_LIB_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/lib"
#define RBX_EXT_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ext"
#define RBX_HDR18_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/vm/capi/18/include"
#define RBX_HDR19_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/vm/capi/19/include"
#define RBX_HDR20_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/vm/capi/19/include"
#define RBX_SITE_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/site"
#define RBX_VENDOR_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/vendor"
#define RBX_VERSION "2.0.0dev"
#define RBX_LIB_VERSION "2.0"
#define RBX_LDSHARED "gcc -shared"
#define RBX_RELEASE_DATE "yyyy-mm-dd"
#define RBX_SIZEOF_LONG 4
#define RBX_LLVM_API_VER 208
#define RBX_ZLIB_PATH "C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/zlib/"
#define RBX_DEFAULT_18 true
#define RBX_DEFAULT_19 false
#define RBX_DEFAULT_20 false
#define RBX_ENABLED_18 1
#define RBX_ENABLED_19 1
#define RBX_LITTLE_ENDIAN 1
#define RBX_HAVE_TR1_HASH 1
#define RBX_WINDOWS 1
results
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
C:\Users\Jon\Documents\RubyDev\rubinius-git>rake distclean && rake build
...
RBC 1.9 lib/compiler/generator.rb
RBC 1.9 lib/compiler/generator_methods.rb
RBC 1.9 lib/compiler/iseq.rb
RBC 1.9 lib/compiler/locals.rb
RBC 1.9 lib/compiler/opcodes.rb
RBC 1.9 lib/compiler/printers.rb
RBC 1.9 lib/compiler/stages.rb
RBC 1.9 lib/melbourne.rb
RBC 1.9 lib/melbourne/processor.rb
rake aborted!
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/generators.rb:86:in `handle': Compilation error generating constants zlib:
C:/Users/Jon/Documents/RubyDev/rubinius-git/rbx-ffi-generators-zlib.c:2:18: fatal
error: zlib.h: No such file or directory
compilation terminated.
 
Tasks: TOP => build => build:build => build:ffi:preprocessor => lib/zlib.rb
(See full trace by running task with --trace)
 
C:\Users\Jon\Documents\RubyDev\rubinius-git>rake build:ffi:preprocessor --trace
** Invoke build:ffi:preprocessor (first_time)
** Invoke lib/fcntl.rb (first_time, not_needed)
** Invoke lib/fcntl.rb.ffi (first_time, not_needed)
** Invoke lib/zlib.rb (first_time)
** Invoke lib/zlib.rb.ffi (first_time, not_needed)
** Execute lib/zlib.rb
Generating lib/zlib.rb...
rake aborted!
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/generators.rb:86:in `handle': Compilation error generating constants zlib:
C:/Users/Jon/Documents/RubyDev/rubinius-git/rbx-ffi-generators-zlib.c:2:18: fatal
error: zlib.h: No such file or directory
compilation terminated.
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/file_processor.rb:48:in `initialize'
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/generators.rb:67:in `perform'
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/generators/constants.rb:131:in `calculate'
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/generators/constants.rb:62:in `initialize'
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/file_processor.rb:73:in `new'
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/file_processor.rb:73:in `constants'
(eval):2:in `initialize'
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/file_processor.rb:41:in `gsub'
C:/Users/Jon/Documents/RubyDev/rubinius-git/lib/ffi/file_processor.rb:41:in `initialize'
C:/Users/Jon/Documents/RubyDev/rubinius-git/rakelib/generator_task.rb:21:in `new'
C:/Users/Jon/Documents/RubyDev/rubinius-git/rakelib/generator_task.rb:21:in `initialize'

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.