Forum: Ruby-dev [ruby-trunk - Bug #8893][Open] make install fails with cross compilation after r42850-r42864

B11f10c4cd9d53970e7be20caa43f940?d=identicon&s=25 akr (Akira Tanaka) (Guest)
on 2013-09-11 05:50
(Received via mailing list)
Issue #8893 has been reported by akr (Akira Tanaka).

----------------------------------------
Bug #8893: make install fails with cross compilation after r42850-r42864
https://bugs.ruby-lang.org/issues/8893

Author: akr (Akira Tanaka)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: cross なので実行不能。r42907
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


r42850 から r42864 までのあいだで、cross compile したときに
make install が失敗するようになっています。
Debian GNU/Linux (wheezy) であれば以下のように再現できます。

  % dpkg -l|grep gcc-mingw-w64
  ii  gcc-mingw-w64                                  4.6.3-14+8
all          GNU C compiler for MinGW-w64
  ii  gcc-mingw-w64-base                             4.6.3-14+8
amd64        GNU Compiler Collection for MinGW-w64 (base package)
  ii  gcc-mingw-w64-i686                             4.6.3-14+8
amd64        GNU C compiler for MinGW-w64 targeting Win32
  ii  gcc-mingw-w64-x86-64                           4.6.3-14+8
amd64        GNU C compiler for MinGW-w64 targeting Win64

  % ruby -v
  ruby 2.1.0dev (2013-09-09 trunk 42896) [x86_64-linux]

  % svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby
  % cd ruby
  % autoconf
  % ./configure --prefix=/tmp/a --build=x86_64-unknown-linux-gnu
--host=i686-w64-mingw32
  % make
  % make install
  ...
  ruby --disable=gems -I/tmp/a/ruby -ri386-mingw32-fake  -I`cd ./lib;
pwd`  -- --disable-gems -r./i386-mingw32-fake ./tool/rbinstall.rb
--make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags=""
--data-mode=0644 --prog-mode=0755 --installed-list .installed.list
--mantype="doc" --install=all --rdoc-output=".ext/rdoc"
  ruby: No such file or directory -- --disable-gems (LoadError)
  make: *** [do-install-all] エラー 1

気がついたのは boron でやっている chkbuild で失敗していることで、
上で示した手順の mingw-w64 だけでなく、他の環境でもことごとく失敗しています。

http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
http://www.rubyist.net/~akr/chkbuild/debian/crossr...
This topic is locked and can not be replied to.