Issue #10566 has been updated by Marty Plummer.

File make.log added

my configure command:
configure_args=' '\''--host=i686-w64-mingw32'\'' '\''--target=i686-w64-mingw32'\'' '\''--build=x86_64-unknown-linux-gnu'\'' '\''--prefix=/usr/i686-w64-mingw32'\'' '\''--enable-shared'\'' '\''--enable-static'\'' '\''--disable-install-doc'\'' '\''--disable-install-rdoc'\'' '\''--disable-install-capi'\'' '\''--with-out-ext=readline,sdbm'\'' '\''--with-static-linked-ext'\'' '\''--disable-ipv6'\'' '\''--with-tcl-dir=/usr/i686-w64-mingw32'\'' '\''--with-tk-dir=/usr/i686-w64-mingw32'\'' '\''build_alias=x86_64-unknown-linux-gnu'\'' '\''host_alias=i686-w64-mingw32'\'' '\''target_alias=i686-w64-mingw32'\'' '\''CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4'\'' '\''LDFLAGS='\'' '\''CPPFLAGS=-DHAVE_TYPE_NET_LUID'\'' '\''CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4'\'''

----------------------------------------
Bug #10566: Failure to compile ruby-trunk via mingw-w64 on linux
https://bugs.ruby-lang.org/issues/10566#change-50281

* Author: Marty Plummer
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.2.0dev (2014-12-03 trunk 48697) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
=begin
Greetings;
  In my quest for optimizing my network usage (very slow connection), I've been migrating my
archlinux installation to a sort of gentoo setup, building my own packages from source repos.
In the process of that, I've written a PKGBUILD file to compile ruby, lib32-libruby, and
mingw-w64-ruby.

  While the recipe works fine against ruby 2.1.5's source code, I'm running into issues with
ruby-trunk, either from the svn repo or the git mirror. ruby and lib32-libruby both compile
fine, but the mingw-w64 build fails at attempting to link ruby.exe and rubyw.exe, citing a
number of undefined references to Init_<exts> in extinit.c, while the dll, dll.a, and static.a
files compile just fine. While I am solely building for the sake of using it as a linked in
library for embedding this is hopefully of little concern to me, however I feel it
is my duty to report the issue here.


---Files--------------------------------
make.log (5.07 KB)


-- 
https://bugs.ruby-lang.org/