Bug #13730

Parallel ext configuration has broken `make install` for static-linked-ext builds

Added by mistydemeo (Misty De Meo) about 3 years ago. Updated about 3 years ago.

Target version:


r57401 introduced parallel ext configuration, which has broken make install when configuring Ruby using the --with-static-linked-ext option. Specifically, it looks like miniruby fails to require the stringio extension at install-time:

./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./x86_64-darwin16-fake ./tool/rbinstall.rb --make="/Library/Developer/CommandLineTools/usr/bin/make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc"
/Users/mistydemeo/oss/ruby/lib/rubygems/specification.rb:17:in `require': cannot load such file -- stringio (LoadError)
    from /Users/mistydemeo/oss/ruby/lib/rubygems/specification.rb:17:in `<top (required)>'
    from /Users/mistydemeo/oss/ruby/lib/rubygems.rb:1333:in `require'
    from /Users/mistydemeo/oss/ruby/lib/rubygems.rb:1333:in `<module:Gem>'
    from /Users/mistydemeo/oss/ruby/lib/rubygems.rb:116:in `<top (required)>'
    from ./tool/rbinstall.rb:24:in `require'
    from ./tool/rbinstall.rb:24:in `<main>'
make: *** [do-install-nodoc] Error 1

From looking in ext/stringio, stringio.a was built correctly, but maybe it wasn't linked properly.

I've attached the build logs, along with a script containing build steps to reproduce.


build.log (39.3 KB) build.log Build log for failed build mistydemeo (Misty De Meo), 07/07/2017 09:43 PM (354 Bytes) Repro script mistydemeo (Misty De Meo), 07/07/2017 09:53 PM

Updated by zenspider (Ryan Davis) about 3 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)

Updated by nobu (Nobuyoshi Nakada) about 3 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r59288.

  • template/ extract SUBMAKEOPTS from sub files too. [Bug #13730]

Updated by mistydemeo (Misty De Meo) about 3 years ago

Can confirm this fixes it for me - thanks!

Also available in: Atom PDF