[maemo-developers] Cross-compiling Ruby 1.9.2

From: max csy0013 at googlemail.com
Date: Wed Mar 9 12:37:54 EET 2011
On Wed, Mar 9, 2011 at 4:04 PM, Chris Walker
<cdw_linux at the-walker-household.co.uk> wrote:
> On 08/03/11 14:22, max wrote:
>>
>> I am attempting to cross-compile Ruby 1.9.2 for ARM using Scratchbox
>> (am new to cross-compiling). However, ./configure throws an error
>> saying
>>  "checking whether setpgrp takes no argument... configure: error:
>> cannot check setpgrp when cross compiling".
>>
>> If it won't lead to much issues, can I disable the check?
>>
>> All help appreciated. I would very much love to have Ruby 1.9 running
>> on my N900. :)
>>
>> P.S: I am using the Maemo 5 SDK to build ruby-1.9.2-p180.tar.gz in
>> scratchbox, and I am using the following command to run configure:
>> ./configure --host=i486
>
> Hello Max,
>
> I have compiled ruby under scratchbox without a problem. Please bear in mind
> that I am no programmer and have had to enlist the help of others on this
> list to do stuff for me so take this with a pinch of salt.
>
> I grabbed the same version of ruby as you and downloaded it to a
> /MyDocs/ruby directory under scratchbox. I had already set the environment
> of scratchbox from the sb-menu command.
>
> I then ran ./configure and waited. Once that completed, I then ran make and
> waited, and waited and waited. That returned to a prompt with no errors and
> I could then type ./ruby -v and that produced the following - ruby 1.9.2p180
> (2011-02-18 revision 30909) [i486-linux]
>
> So I think your problem might lie in the way you've tried to compile it.
>
> Hope this helps.
>
> Regards
> Chris
>
> --
>  __ __| |_ __ __  .-----------------------------------------------.
> / _/ _` \ V  V /  |  mailto:cdw_linux at the-walker-household.co.uk  |
> \__\__,_|\_/\_/   |_______________________________________________|
>


Chris,

It looks like you are compiling for i486, and not arm7 which is what I
require. In sb-menu, can you try selecting armel instead of x86, and
see if it works for you?
More information about the maemo-developers mailing list