Re: Cross-compiling Ruby 1.9.2

2011-03-09 Thread max
On Wed, Mar 9, 2011 at 4:04 PM, Chris Walker
cdw_li...@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_li...@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?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Cross-compiling Ruby 1.9.2

2011-03-09 Thread max
On Tue, Mar 8, 2011 at 11:32 PM, Luca Donaggio donag...@gmail.com wrote:
 - Original message -
 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
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


 Probably you don't need the --host parameter, it will figure it out by itself.

 --
 Luca Donaggio


Initially, I had specified just ./configure without any paramter. It
failed, and suggested that I should probably be specifying the host.
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Cross-compiling Ruby 1.9.2

2011-03-08 Thread max
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
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Cross-compiling Ruby 1.9.2

2011-03-08 Thread Luca Donaggio
- Original message -
 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
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers


Probably you don't need the --host parameter, it will figure it out by itself.

--
Luca Donaggio
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers