Problem with RDoc cross-compiling for SH4

Hi everyone,

I’m trying to cross-compile last Ruby stable version (1.9.3-p194) for a
SH4 (a.k.a. ST40) architecture. I have the cross-compiling tools
installed (and have succesfully cross-compiled other sources), and I
used the following configure line:

$ ./configure --prefix=$HOME/ruby-sh4 --build=i686-pc-linux-gnu
–host=sh4-linux

Which runs apparently fine (with no errors, config.log attached).
However, when I run make, I get the following error:

[…]
Generating RDoc documentation
/usr/share/rubygems/rubygems/defaults/operating_system.rb:10:in
`transpose’: element size differs (10 should be 9) (IndexError)
[…]

Followed by a stack trace (make.log attached). Compiling for the local
machine gives me no problem, so the problem must be related to
cross-compilation.

I know it’s a pretty specific issue, but any insight would be really
appreciated.

Thanks in advance.

You’re raising in operating_system.rb, which is normally empty and used
by OS vendors to make tweaks… Please look at that file and see if
there is a logic error. Why are they calling transpose?!? Why isn’t it
the right size? Etc.

You might try just moving it aside for the cross compile as a last
resort.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs