<div><div class="gmail_quote">2011/8/19 Caleb Hattingh <span dir="ltr">&lt;<a href="mailto:caleb.hattingh@gmail.com">caleb.hattingh@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 19 August 2011 14:48, Caleb Hattingh &lt;<a href="mailto:caleb.hattingh@gmail.com">caleb.hattingh@gmail.com</a>&gt; wrote:<br>
&gt; I have tried placing ffi.h (and ffi_common.h and ffitarget.h) in<br>
&gt; various strategic places, but to no avail.<br>
<br>
</div>It seems this particular problem (libffi for mingw) was discussed in<br>
IRC by Varriount:<br>
<br>
<a href="http://www.tismer.com/pypy/irc-logs/pypy/pypy.2011-07-21.log.html" target="_blank">http://www.tismer.com/pypy/irc-logs/pypy/pypy.2011-07-21.log.html</a><br>
<br>
Unfortunately, the chat logs shed no light.<br></blockquote><div> </div><div>I had the same issue with a machine where libffi-dev is not available.</div><div><br></div><div>The first fix is to modify pypy/jit/metainterp/optimizeopt/fficall.py</div>
<div>and move the line &quot;from pypy.rlib.libffi import Func&quot; shortly before</div><div>the place where &quot;Func&quot; is used.</div><div><br></div><div>Then, I don&#39;t remember whether the options &quot;--withoutmod-_ffi --withoutmod-_rawffi&quot;</div>
<div>were necessary. These modules (i.e ctypes)  won&#39;t be available anyway.<br><div><br></div><div><br></div><div>-- </div></div></div>Amaury Forgeot d&#39;Arc<br>
</div>