rubinius/rubinius — Issue #1572: Building rubinius on Windows 7
Author: conradz
Created: 2012-02-24 19:38:33+00:00
State: open

I'm trying to build rubinius on Windows 7 (64 bit). I want to only compile a 32 bit version of rubinius. I have the [mingw](http://www.mingw.org) toolkit installed with gcc, make, etc.

I clone the git repo and then run `ruby configure`. This completes successfully. Then I run `rake`, and it runs for a while and then exits with an error.
See the full output in this gist: https://gist.github.com/1903186

It appears to be failing on compiling libffi. Is there any way I could dump in a precompiled version from mingw? I also have Visual Studio 2010 installed on the machine (although the VS tools aren't on the PATH in the mingw shell). Is it possible that that is messing the compilation up?

I checked out the C code in the file that it's throwing an error on (c:\mingw\include\string.h:38:40) and it seems to be valid C code: `_CRTIMP void* __cdecl __MINGW_NOTHROW	memcpy (void*, const void*, size_t);`

Is compiling from Windows supported or do I have to cross-compile from Linux? I couldn't find much documentation on how to compile rubinius for Windows.