[Ecls-list] Problem compiling CFFI

Juan Jose Garcia Ripoll lisp at arrakis.es
Fri Oct 21 04:51:26 UTC 2005


On Fri, 2005-10-21 at 13:27 +0200, Goffioul Michael wrote:
> Hi,
> 
> Using the brand new ASDF building feature, I tried to compile the CFFI into
> a FAS file (Luis branch), however it fails at compiling src/strings.lisp because
> the compiler is called recursively. Indeed the define-type-translator macro
> expansion implies the compilation of an expander lambda function. How to solve
> the problem?

Maybe turning it into an interpreted function, like in the following
examples:

	(setf (fdefinition 'foo)
	      (coerce '(ext:lambda-block foo (x) (1+ x) 'function))

	(funcall (coerce '(lambda (x) (sin x)) 'function) pi)

Perhaps one could automatically redefine #'COMPILE from within the
compiler, but that really looks like a hack.

Juanjo





More information about the ecl-devel mailing list