From: Aaron Gage Date: 2009-05-06T00:59:46+09:00 Subject: Re: Cross-compiling 1.9.1-p0 to bfin-uclinux Well, I've gotten it to build. I have not yet tested this on the target processor yet, but first things first. The steps I had to follow are: 1) Get a copy of ruby-1.8.6-p368 and extract it if necessary 2) cd into the ruby-1.8.6-p368 directory and copy the attached patch into it 3) Apply the attached patch by doing this: patch -p0 < ruby-1.8.6-p368-bfin-uclinux.patch 4) configure as follows: ac_cv_func_getpgrp_void=no \ ac_cv_func_setpgrp_void=yes \ ./configure --host=bfin-uclinux 5) make (assuming that bfin-uclinux-gcc is in the PATH and the libraries are installed properly) The resulting executable is about 2.3MB which isn't too bad. I still need to try to convert it to the BFLT format, but I can work on that next. As for the patch, I had to remove three lines from mkconfig.rb ($timestamp was undefined), copy in the config.sub from the 1.9.1-p0 distribution, and set all of the extensions to build statically. Hopefully this will be of use to someone else. Attachments: http://www.ruby-forum.com/attachment/3656/ruby-1.8.6-p368-bfin-uclinux.patch -- Posted via http://www.ruby-forum.com/.