New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rake specs failure on Windows #201
Comments
I think this is due to building in a separate build dir. You could look in ext/ffi_c/libffi.vc.mk, find the line that looks like:
and try changing it to
|
Ok, I tried it but got this: NMAKE : fatal error U1052: file '../../../../ext/ffi_c/libffi/Makefile.vc' not found Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' I don't actually see a Makefile.vc, btw, just a Makefile. I tried changing it, but nmake didn't seem to like it. |
There should be a Makefile.vc in libffi (i.e. https://github.com/ffi/ffi/blob/master/ext/ffi_c/libffi/Makefile.vc) |
I still see this on master with VC 2013. |
|
@tduehr Same issue with rake spec. |
does |
@tduehr Yes, it works. |
can you supply a fresh full trace for this? |
The whole shebang:
|
Try changing Makefile to Makefile.vc on line 45 of ext/ffi_c/extconf.rb |
Does |
@tduehr I made the suggested change. It still fails, but I think we're making progress:
|
Yes, we've at least loaded the Makefile and started compiling. Looks like we're missing an include flag somehow. I'll have to get VC setup in my windows VM to debug further. |
I see ffi.h.vc and ffi.h.vc64 under libffi/include. Does extconf.rb need to be modified to look for those? |
No, I think the libffi.vc.mk and libffi.vc64.mk files need to be changed. But i haven't done this on VC before so I really need to look at what's going on. |
It seems that libffi on MSVC is not compatible with rake spec If I modify extconf.rb#L40 And libffi.vc.mk#L7 libffi.vc.mk#L24 Then, ffi_c.so can be built. |
@phasis68, thanks! It compiled, so we're making progress. Here's the failure I saw when running rake spec:
|
It seems we'll need to create a Makefile compatible with nmake instead of GNUmakefile, and modify GMAKE to use nmake. |
Well, we're now going on 5 years since the original report, so I think I'll close since I'm not really doing Ruby on Windows much any more. |
Hi,
ffi (latest from git repo) using MSVC++ 10
Windows 7
The text was updated successfully, but these errors were encountered: