Bug #8082
closedRuby i686-nacl builds but doesn't run correctly
Description
I am able to build an i686-nacl build with the following steps:
./configure --prefix=/tmp/nacl-ruby --host=i686-nacl --with-arch=i386 --with-baseruby=/usr/local/Cellar/ruby/2.0.0-p0/bin/ruby
make
make package
I then host the resulting html/nexe files and visit them in a browser. Using developer tools, I see that there are plenty of errors loading files:
HEAD http://localhost:5103/ruby-i386/lib/ruby/2.0.0/enc/ansi_x3_4_1968.so 404 (File not found) lib/ruby/2.0.0/enc/ansi_x3_4_1968.so:1
HEAD http://localhost:5103/ruby-i386/lib/ruby/2.0.0/enc/ansi_x3_4_1968.so.rb 404 (File not found) lib/ruby/2.0.0/enc/ansi_x3_4_1968.so.rb:1
HEAD http://localhost:5103/ruby-i386/lib/ruby/2.0.0/enc/ansi_x3_4_1968.so.so 404 (File not found) lib/ruby/2.0.0/enc/ansi_x3_4_1968.so.so:1
HEAD http://localhost:5103/ruby-i386/lib/ruby/2.0.0/enc/ansi_x3_4_1968.so 404 (File not found) lib/ruby/2.0.0/enc/ansi_x3_4_1968.so:1
HEAD http://localhost:5103/ruby-i386/lib/ruby/2.0.0/i386-nacl/enc/ansi_x3_4_1968.so 404 (File not found) lib/ruby/2.0.0/i386-nacl/enc/ansi_x3_4_1968.so:1
HEAD http://localhost:5103/ruby-i386/lib/ruby/2.0.0/enc/ansi_x3_4_1968.so.rb 404 (File not found) lib/ruby/2.0.0/enc/ansi_x3_4_1968.so.rb:1
HEAD http://localhost:5103/ruby-i386/lib/ruby/2.0.0/i386-nacl/enc/ansi_x3_4_1968.so.rb 404 (File not found) lib/ruby/2.0.0/i386-nacl/enc/ansi_x3_4_1968.so.rb:1
HEAD http://localhost:5103/ruby-i386/lib/ruby/2.0.0/enc/ansi_x3_4_1968.so.so 404 (File not found) lib/ruby/2.0.0/enc/ansi_x3_4_1968.so.so:1
HEAD http://localhost:5103/ruby-i386/lib/ruby/2.0.0/i386-nacl/enc/ansi_x3_4_1968.so.so 404 (File not found) lib/ruby/2.0.0/i386-nacl/enc/ansi_x3_4_1968.so.so:1
This seems to be similar (if not the same) as https://bugs.ruby-lang.org/issues/6873