Couldn't execute "lib" during static-program-op
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CFFI |
Triaged
|
Medium
|
Unassigned |
Bug Description
On Windows 10 x64
This might be user error, but I haven't been successful in finding examples of :static-program-op, so I'm writing up a simple hello-world like:
hello-world.asd:
(defsystem #:hello-world
:entry-point "hello-world:main"
:components ((:file "hello-lisp")
:defsystem-
:depends-on (#:cffi))
hello-lisp.lisp:
(defpackage #:hello-world
(:use #:cl))
(in-package #:hello-world)
(cffi:defcfun ("hello_world" hello-world) :void)
(defun main ()
(hello-world)
0)
hello-c.c:
#include <stdio.h>
void hello_world() {
printf("Hello, world!\n");
fflush(stdout);
}
Then at the REPL:
CL-USER> (progn (asdf:load-system '#:cffi-grovel)
I get the following:
Couldn't execute "lib": The system cannot find the file specified.
[Condition of type SIMPLE-ERROR]
Looking through the sources I see it's trying to run the program lib with -nologo and some other options. However, I'm not sure where this program is supposed to be coming from. On my system, I have a lib program bundled with Visual Studio, but that program doesn't recognize options like -nologo, so I assume it's another. But I haven't been able to find out which.
Any help would be appreciated.
Thanks!
On Thu, 13 Aug 2020 at 13:50, Wilfredo Velázquez-Rodríguez <
<email address hidden>> wrote:
> Looking through the sources I see it's trying to run the program lib
> with -nologo and some other options. However, I'm not sure where this
> program is supposed to be coming from. On my system, I have a lib
> program bundled with Visual Studio, but that program doesn't recognize
> options like -nologo, so I assume it's another. But I haven't been able
> to find out which.
>
Pinging Faré who may be able to give us a clue.