[Ecls-list] c:build-program and CFFI

Jeronimo Pellegrini jpn at aleph0.info
Tue May 18 02:09:16 UTC 2010


Hi,

I recently tried to build a standalone executable that uses
CFFI, but it seems that I couldn't get CFFI to be included
in the executable:

(require 'cffi)
(compile-file "show.lisp" :c-file "show.c" :system-p t)
(c:build-program "show" :lisp-files '("show.o"))

show.lisp contains:

+----
(eval-when (:compile-toplevel :load-toplevel :execute)
  (asdf:oos 'asdf:load-op :cffi))
+----

and also uses CFFI.


Everything works during compilation, but the generated
binary does not seem to include CFFI, and won't load it
either:

;;; Loading #P"/usr/local/lib/ecl-10.4.2/asdf.fas"
;;; Loading #P"/usr/local/lib/ecl-10.4.2/cmp.fas"

component "cffi" not found
No restarts available.

Broken at NIL. In: #<process SI:TOP-LEVEL 0000000000746f60>.
>> 

So, what's the proper way to make standalone binaries that
use CFFI?

This is ECL from git (master branch) and CFFI 0.10.5.

Thanks,
J.




More information about the ecl-devel mailing list