<div dir="ltr">A bit more progress ... see below:<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 2:51 PM, Mirko Vukovic <span dir="ltr"><<a href="mailto:mirko.vukovic@gmail.com" target="_blank">mirko.vukovic@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"><div dir="ltr"><div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 1:32 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>On Wed, Nov 11, 2015 at 6:14 PM, Mirko Vukovic <<a href="mailto:mirko.vukovic@gmail.com" target="_blank">mirko.vukovic@gmail.com</a>> wrote:<br>
> I traced INVOKE, and UIOP/RUN-PROGRAM:RUN-PROGRAM.<br>
><br>
> The problem originates in reading the output of<br>
> uiop/run-program:run-program.  Here are the trace outputs for<br>
> (CFFI-TOOLCHAIN:INVOKE "pkg-config.exe" "--version"):<br>
><br>
>  <1 UIOP/RUN-PROGRAM:RUN-PROGRAM returned 3 values :<br>
>  <1      NIL<br>
>  <1      NIL<br>
>  <1      0<br>
> <0 CFFI-TOOLCHAIN:INVOKE returned 3 values :<br>
> <0      NIL<br>
> <0      NIL<br>
> <0      0<br>
><br>
> For some reason, the output of pkg-config is not being read.<br>
><br>
> I will play with CCL:run-program to get output out of it, and then trace<br>
> this back to uiop and invoke.<br>
<br>
</span>Good job. Thanks for debugging this. Perhaps Faré can chime in since<br>
he touched this code last. (I've cced him.)<br>
<br>
Cheers,<br>
<div><div><br>
--<br>
Luís Oliveira<br>
<a href="http://kerno.org/~luis/" rel="noreferrer" target="_blank">http://kerno.org/~luis/</a><br>
</div></div></blockquote></div><br></div></div></div><div class="gmail_extra">To augment: this is not just a Windows+CCL issue.  On Windows+SBCL I get the same behavior:</div><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra">CL-USER> (trace cffi-toolchain:invoke uiop/run-program:run-program)</div><div class="gmail_extra">(CFFI-TOOLCHAIN:INVOKE UIOP/RUN-PROGRAM:RUN-PROGRAM)</div><div class="gmail_extra">CL-USER> (CFFI-TOOLCHAIN:INVOKE "pkg-config.exe" "--version")</div><div class="gmail_extra">  0: (CFFI-TOOLCHAIN:INVOKE "pkg-config.exe" "--version")</div><div class="gmail_extra">; pkg-config.exe --version</div><div class="gmail_extra">    1: (UIOP/RUN-PROGRAM:RUN-PROGRAM ("pkg-config.exe" "--version") :OUTPUT</div><div class="gmail_extra">                                     :INTERACTIVE :ERROR-OUTPUT :INTERACTIVE)</div><div class="gmail_extra">    1: UIOP/RUN-PROGRAM:RUN-PROGRAM returned NIL NIL 0</div><div class="gmail_extra">  0: CFFI-TOOLCHAIN:INVOKE returned NIL NIL 0</div><div class="gmail_extra">NIL</div><div class="gmail_extra">NIL</div><div class="gmail_extra">0</div><span class=""><font color="#888888"><div><br></div><div>Mirko</div></font></span></div></div>
</blockquote></div><br></div><div class="gmail_extra">If I modify INVOKE so that argument of RUN-PROGRAM'S :OUTPUT keyword is :STRING (instead of :INTERACTIVE) I can capture the command output:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">CL-USER> (CFFI-TOOLCHAIN:INVOKE "pkg-config.exe" "libffi" "--cflags")</div><div class="gmail_extra">  0: (CFFI-TOOLCHAIN:INVOKE "pkg-config.exe" "libffi" "--cflags")</div><div class="gmail_extra">; pkg-config.exe libffi --cflags</div><div class="gmail_extra">    1: (UIOP/RUN-PROGRAM:RUN-PROGRAM ("pkg-config.exe" "libffi" "--cflags")</div><div class="gmail_extra">                                     :OUTPUT :STRING :ERROR-OUTPUT :STRING)</div><div class="gmail_extra">    1: UIOP/RUN-PROGRAM:RUN-PROGRAM returned</div><div class="gmail_extra">         "-IE:/msys64/mingw64/lib/libffi-3.2.1/include</div><div class="gmail_extra"><br></div><div class="gmail_extra">"</div><div class="gmail_extra">         ""</div><div class="gmail_extra">         0</div><div class="gmail_extra">  0: CFFI-TOOLCHAIN:INVOKE returned</div><div class="gmail_extra">       "-IE:/msys64/mingw64/lib/libffi-3.2.1/include^M</div><div class="gmail_extra"><br></div><div class="gmail_extra">"</div><div class="gmail_extra">       ""</div><div class="gmail_extra">       0</div><div class="gmail_extra">"-IE:/msys64/mingw64/lib/libffi-3.2.1/include^M</div><div class="gmail_extra"><br></div><div class="gmail_extra">"</div><div class="gmail_extra">""</div><div class="gmail_extra">0</div><div class="gmail_extra"><br></div><div class="gmail_extra">My eyes glazed over while reading RUN-PROGRAM's description of the :INTERACTIVE keyword.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Hopefully this can lead to a fix in UIOP or CFFI.</div><div><br></div><div>Mirko</div></div></div>