From: Aaron Gage Date: 2009-05-06T00:19:45+09:00 Subject: Re: Cross-compiling 1.9.1-p0 to bfin-uclinux Brian Candler wrote: > ruby 1.9 is *much* bigger than ruby 1.8, so for embedded applications, > I'd stick with 1.8 (pref 1.8.6) unless you really need 1.9 features. > > openwrt has a working ruby 1.8.6 port. I don't know what the status is > of openwrt with blackfin, but a google search suggests maybe someone is > working on it: > https://dev.openwrt.org/changeset/7306/trunk/tools/mkimage Thanks for the info about 1.9. I have gone back and tried to build a couple of 1.8.6 versions, but I still seem to be getting stuck. I am consistently getting this error: [blackfin@localhost ruby-1.8.6-p368]$ make rbconfig.rb unchanged ./lib/fileutils.rb:1029:in `utime': can't convert NilClass into time (TypeError) from ./lib/fileutils.rb:1029:in `touch' from ./lib/fileutils.rb:1026:in `each' from ./lib/fileutils.rb:1026:in `touch' from ./mkconfig.rb:188 make: *** [.rbconfig.time] Error 1 I checked out p287 (after reading http://groups.google.com/group/ruby-talk-google/browse_thread/thread/26dadccab34f57bf?fwc=2) and it reports the same error. Since this build machine is CentOS 5.3, I have an older version of ruby (1.8.5) installed. However, I can build 1.8.6-p287 (from Subversion), 1.8.6-p368, and 1.9.1-p0 on this machine natively without any difficulty (./configure && make && make test). This tells me that the above error (File.utime returning nil) is not necessarily due to the system's ruby version being out of date (even though it is a ruby script that fails). I will keep plugging away at it. The link to the OpenWRT project doesn't give me any ideas about this particular error, but I'll see if I can figure out what file mkconfig.rb is failing to find. -- Posted via http://www.ruby-forum.com/.