Backport #2485

cannot cross-compile 1.8.7-p174 with 1.8.7-p174

Added by Luis Lavena about 2 years ago. Updated 9 months ago.

[ruby-core:27185]
Status:Closed Start date:12/16/2009
Priority:Normal Due date:
Assignee:Shyouhei Urabe % Done:

0%

Category:build
Target version:-

Description

Apologies if I'm being stubborn but the previous statements in ticket #2464 and #2484 for 1.9.1 version are not true.

I just tried to compile Ruby 1.8.7-p174 using 1.8.7-p174, as indicated in the DevelopersHowto recently edited, with the exact same results:

<pre><code>
Creating library file: libmsvcrt-ruby18.dll.a
/home/luis/.rake-compiler/sources/ruby-1.8.7-p174/ext/extmk.rb:356: undefined method `<<' for nil:NilClass (NoMethodError)
make: *** [all] Error 1
</code></pre>

Added '-v' option to MINIRUBY in the Makefile, and the results match:

<pre><code>
Creating library file: libmsvcrt-ruby18.dll.a
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]
/home/luis/.rake-compiler/sources/ruby-1.8.7-p174/ext/extmk.rb:356: undefined method `<<' for nil:NilClass (NoMethodError)
make: *** [all] Error 1
</code></pre>

This also happens for 1.9.1, which will be reported in it's own ticket. This also happens on Ubuntu 9.10 with GCC 4.3 and OSX 10.5 (Leopard)

This contradicts the previous statement and rejection of being invalid, as this issue is clearly not a mismatch of version but clearly a bug.

Please let me know if you require more details or be willing to accept a patch for the different issues exposed here and in the other bug reports already rejected.

Thank you.
--
Luis Lavena

rbconfig.rb - cat .rake-compiler/builds/ruby-1.8.7-p174/rbconfig.rb (6.8 kB) Luis Lavena, 12/16/2009 03:20 pm

config.status (25.4 kB) Luis Lavena, 12/16/2009 04:28 pm

config.log.zip (19 kB) Luis Lavena, 12/16/2009 04:28 pm

History

Updated by Usaku NAKAMURA about 2 years ago

Please show us rbconfig.rb.

Updated by Luis Lavena about 2 years ago

Find attached rbconfig.rb generated during cross-compile.

Updated by Usaku NAKAMURA about 2 years ago

Sorry to ask frequently, please show us config.status, too.

It's mysterious that I can not find the definition of CONFIG["MINIRUBY"] and CONFIG["RUNRUBY"]...

Updated by Luis Lavena about 2 years ago

I was thinking exactly the same. That was the reason I added the -v option to see which version of Ruby was used.

Find attached both config.status and config.log

Thank you.

Updated by Usaku NAKAMURA about 2 years ago

OK, I've found the point and the solution.
It's already fixed on ruby_1_8 branch, but not backported to ruby_1_8_7.
(ruby_1_8_6 seems to be no problem.)

Shyouhei, can you backport r22931 and r23086?

Updated by Usaku NAKAMURA about 2 years ago

  • Status changed from Open to Assigned
  • Assignee changed from Yui NARUSE to Shyouhei Urabe

Updated by Luis Lavena about 2 years ago

Awesome news!

Now will fill a bug report for 1.9.1-p376 cross compiling with 1.9.1-p376 ;-)

Thank you again.

Updated by Shyouhei Urabe about 2 years ago

  • Status changed from Assigned to Closed
> Shyouhei, can you backport r22931 and r23086?

done.

Also available in: Atom PDF