<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 12:07 PM, Luís Oliveira <span dir="ltr"><<a href="mailto:luismbo@gmail.com" target="_blank">luismbo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Wed, Nov 11, 2015 at 4:39 PM, Mirko Vukovic <<a href="mailto:mirko.vukovic@gmail.com">mirko.vukovic@gmail.com</a>> wrote:</span></blockquote><div><br></div><div><div>Issue: loading cffi-libffi, CFFI fresh from git repository</div></div><div><br></div><div> Platform:</div><div>- 64-bit windows 7</div><div>- MSYS2 & MinGW64</div><div>- CCL1.11 or SBCL 1.30.0</div><div>- CFFI, fresh from git</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
<br>
> I downloaded from github and got qualified success:<br>
> - At first loading I had to specify the path to ffi.h using cffi::*cc-flags*<br>
> for the compilation to proceed<br>
<br>
</span>That's unexpected. Does that mean it failed to execute pkg-config? If<br>
the compilation log doesn't yield any tips, perhaps you could tweak the<br>
pkg-config-cflags definition (in cffi/grovel/grove.lisp) to add some<br>
debugging output and see what's going on there?<br></blockquote><div><br></div><div>Running in the shell</div><div><br></div><div>>pkg-config libffi --cflags</div><div><br></div><div>returns:</div><div><br></div><div> -IE:/msys64/mingw64/lib/libffi-3.2.1/include</div><div><br></div><div>as expected.</div><div><br></div><div>I traced INVOKE, and UIOP/RUN-PROGRAM:RUN-PROGRAM.</div><div><br></div><div>The problem originates in reading the output of uiop/run-program:run-program. Here are the trace outputs for (CFFI-TOOLCHAIN:INVOKE "pkg-config.exe" "--version"):</div><div><br></div><div><div> <1 UIOP/RUN-PROGRAM:RUN-PROGRAM returned 3 values :</div><div> <1 NIL</div><div> <1 NIL</div><div> <1 0</div><div><0 CFFI-TOOLCHAIN:INVOKE returned 3 values :</div><div><0 NIL</div><div><0 NIL</div><div><0 0</div></div><div><br></div><div>For some reason, the output of pkg-config is not being read.</div><div><br></div><div>I will play with CCL:run-program to get output out of it, and then trace this back to uiop and invoke.<br></div><div> </div><div>Mirko</div></div></div></div>