From: Ryan Davis Date: 2012-09-15T03:22:47+09:00 Subject: Re: Problem with RDoc cross-compiling for SH4 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. On Sep 14, 2012, at 3:45, Javier de la Dehesa wrote: > 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. > > Attachments: > http://www.ruby-forum.com/attachment/7740/config.log > http://www.ruby-forum.com/attachment/7741/make.log > > > -- > Posted via http://www.ruby-forum.com/. >