Bug #8893

make install fails with cross compilation after r42850-r42864

Added by akr (Akira Tanaka) over 7 years ago. Updated over 7 years ago.

Target version:
ruby -v:
cross なので実行不能。r42907


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 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 -Icd ./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 だけでなく、他の環境でもことごとく失敗しています。


Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r42910.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you. fix cross-compiling installation failure

  • (RUNRUBY): append -- only after runruby.rb, not cross-compiling baseruby, so that $(RUN_OPT) can be command line options. [ruby-dev:47703] [Bug #8893]

Also available in: Atom PDF