From: Luis Lavena Date: 2010-12-27T05:27:05+09:00 Subject: [ruby-core:33908] [Ruby 1.9-Bug#3889] Incorrectly detected i686-w64-mingw32 as x64-mingw Issue #3889 has been updated by Luis Lavena. Hello, The 32bits (i686-w64-mingw32) issue has been solved, and it correctly generates i386-mingw32 as RUBY_PLATFORM However, the 64bits version one still fails as it generates x64-mingw64 which is incorrect. Either the platform should be 'x86_64-mingw32' or 'x64-mingw32', to match VC x64 builds. There is an eternal discussion on mingw and mingw-w64 mailing lists about how 'mingw32' stuck and how hard is to change it. Usage of 'mingw64' do not correspond to any GNU triplet, as mentioned before. Steps to reproduce this issue: 1) Download a Linux or Darwin binaries for x86_64-w64-mingw32 from the Automated build page: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/ (I've used mingw-w64-1.0-bin_i686-linux_20101224.tar.bz2) 2) Extract into a folder: mkdir -p ~/mingw/w64 cd ~/mingw/w64 tar xf ../mingw-w64-1.0-bin_i686-linux_20101224.tar.bz2 3) prepend 'bin' directory into the PATH: export PATH=~/mingw/w64/bin:$PATH 4) build ruby cd ~/ruby autoconf mkdir build64 && cd build64 sh ../configure --enable-shared --disable-install-doc --host=x86_64-w64-mingw32 5) Notice the generated configuration path: .ext/include/x64-mingw64/ruby/config.h updated $ cat .ext/include/x64-mingw64/ruby/config.h | grep PLAT #define RUBY_PLATFORM "x64-mingw64" === I'm going to attempt correct this issue but my autoconf knowledge is not my best skill. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3889 ---------------------------------------- http://redmine.ruby-lang.org