Bug #8893

make install fails with cross compilation after r42850-r42864

Added by Akira Tanaka 7 months ago. Updated 7 months ago.

[ruby-dev:<unknown>]
Status:Closed
Priority:Normal
Assignee:-
Category:-
Target version:-
ruby -v:cross なので実行不能。r42907 Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

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

http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-aarch64/log/20130906T200134Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-amd64/log/20130906T201128Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-android/log/20130906T213908Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-arm/log/20130906T202000Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-armeb/log/20130906T202827Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-cygwin/log/20130906T221527Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-i386/log/20130906T203633Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-mingw/log/20130906T195217Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-mips/log/20130906T204410Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-mipsandroid/log/20130906T220611Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-mipsel/log/20130906T205305Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-powerpc/log/20130906T210204Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-sh/log/20130906T211050Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-sparc/log/20130906T211937Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-x86android/log/20130906T215437Z.diff.html.gz
http://www.rubyist.net/~akr/chkbuild/debian/crossruby-trunk-xtensa/log/20130906T212745Z.diff.html.gz

Associated revisions

Revision 42910
Added by Nobuyoshi Nakada 8 months ago

configure.in: fix cross-compiling installation failure

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

History

#1 Updated by Nobuyoshi Nakada 7 months 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.


configure.in: fix cross-compiling installation failure

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

Also available in: Atom PDF