Subject:
Re: [ruby-ffi] ffi 0.6.0 and Windows (was: is the 0.6.0 gem ready to release?)
From:
Wayne Meissner
Date:
2/8/10 4:52 PM
To:
ruby-ffi@googlegroups.com

On 8 February 2010 18:43, Luis Lavena <luislavena@gmail.com> wrote:
>
> Seems 0.6.0 got released anyway.
>
> I was unable to compile or locally check if these gems worked properly
> on MinGW and VC6 builds of Ruby on Windows.
>
> Wayne: there was an issue with Windows native versions? Checking with gem list:

The only issue was that I ran out of time yesterday morning to sort
out the windows builds (my macports is busted somewhere), but I wanted
to release the 0.6.0 gem for linux/MacOS, because there are bugs
piling up about ruby-ffi not building correctly on those platforms.

And I figured that it would still work with the devkit on windows.  I
forgot to factor in the upgrade to libffi-3.0.9 breaking something.

>
> Trying to install the "ruby" version and trigger the compile process
> failed on a sed segmentation fault (used to compile libffi)
>
> If you don't mind, I would like to take a stab and rearrange libffi
> and ffi build directories to make it work on Windows while keep it
> working under OSX/Linux.

I've added you to the ffi repo as a collaborator, so take a stab at it
if you want.  Vladimir Sizikov might also be interested (he did the
win32 & win64 work for jffi, so he has experience there).

Before you do, check out the latest libffi from
http://github.com/atgreen/libffi - it appears there has been work on
msvc compilation there - all after the libffi-3.0.9 release, so it
isn't in ruby-ffi, but it might be worth updating to it.