Ruby seems to be cross-compiler incompatible

  • Thread starter Asfand Yar Qazi
  • Start date
A

Asfand Yar Qazi

Hi,

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

Mauricio Fernández

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
 
W

WATANABE Hirofumi

Hi,

Mauricio Fernández said:
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
 
A

Asfand Yar Qazi

WATANABE said:
Hi,




% 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top