[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby seems to be cross-compiler incompatible

Asfand Yar Qazi

11/7/2004 11:12:00 AM

Hi,

Anybody got Ruby to compile with a Linux to mingw32 cross compiler?

--
http://www.it-is-...
3 Answers

Mauricio Fernández

11/7/2004 2:36:00 PM

0

On Sun, Nov 07, 2004 at 08:08:38PM +0900, Asfand Yar Qazi wrote:
> Hi,
>
>Anybody got Ruby to compile with a Linux to mingw32 cross compiler?

It is fairly easy.
On my system (Debian unstable) I just had to edit the configure script
to remove the setpgrp test(*) and run
./configure --host=i586-mingw32msvc
make

(*) otherwise you'd get
checking whether setpgrp takes no argument... configure: error: cannot
check setpgrp when cross compiling

--
Hassle-free packages for Ruby?
RPA is available from http://www.rubyar...


WATANABE Hirofumi

11/7/2004 3:00:00 PM

0

Hi,

Mauricio Fernández <batsman.geo@yahoo.com> writes:

> On Sun, Nov 07, 2004 at 08:08:38PM +0900, Asfand Yar Qazi wrote:
> > Hi,
> >
> >Anybody got Ruby to compile with a Linux to mingw32 cross compiler?
>
> It is fairly easy.
> On my system (Debian unstable) I just had to edit the configure script
> to remove the setpgrp test(*) and run
> ./configure --host=i586-mingw32msvc
> make
>
> (*) otherwise you'd get
> checking whether setpgrp takes no argument... configure: error: cannot
> check setpgrp when cross compiling

% env ac_cv_func_getpgrp_void=no ac_cv_func_setpgrp_void=yes ac_cv_func_memcmp_working=yes rb_cv_binary_elf=no rb_cv_negative_time_t=no ./configure --host=i586-mingw32msvc --target=i386-mingw32 --build=i686-linux
% make

--
eban



Asfand Yar Qazi

11/8/2004 6:17:00 PM

0

WATANABE Hirofumi wrote:
> Hi,
>
> Mauricio Fernández <batsman.geo@yahoo.com> writes:
>
>
>>On Sun, Nov 07, 2004 at 08:08:38PM +0900, Asfand Yar Qazi wrote:
>>
>>>Hi,
>>>
>>>Anybody got Ruby to compile with a Linux to mingw32 cross compiler?
>>
>>It is fairly easy.
>>On my system (Debian unstable) I just had to edit the configure script
>>to remove the setpgrp test(*) and run
>> ./configure --host=i586-mingw32msvc
>> make
>>
>>(*) otherwise you'd get
>>checking whether setpgrp takes no argument... configure: error: cannot
>>check setpgrp when cross compiling
>
>
> % env ac_cv_func_getpgrp_void=no > ac_cv_func_setpgrp_void=yes > ac_cv_func_memcmp_working=yes > rb_cv_binary_elf=no > rb_cv_negative_time_t=no > ./configure > --host=i586-mingw32msvc > --target=i386-mingw32 > --build=i686-linux
> % make
>

Thanks.

What's with the i586-mingw32msvc? I'm using i386-mingw32.... I don't
understand what msvc has to do with it.

Thanks for the replies, much appreciated.


--
http://www.it-is-...