[Ecls-list] Compiler tries to compile C::|compiler preprocess|
Goffioul Michael
goffioul at imec.be
Thu Jun 9 10:31:44 UTC 2005
> I wanted to try out the documentation system ALBERT
> (http://albert.sourceforge.net).
> When compiling the file apispec/xml-base.lisp, the compiler
> failed with a strange message:
>
> [...]
> ;;; Emitting code for XMLIFY-STRING.
> ;;; Compiling C::|compiler preprocess|.
> ;;; Error: Unable to coerce lisp object from type (NULL,:OBJECT)
> to C/C++ type (CHARACTER,:CHAR)
> [...]
Looking more deeply, I found a way to reproduce it:
> (compile nil (lambda (x) (loop for c of-type character = (schar x 0))))
;;; Loading #P"D:/Software/ECL/cmp.fas"
;;; Loading #P"D:/Software/ECL/sysfun.lsp"
;;; Compiling (SET 'C::GAZONK ...).
;;; Warning: In LET bindings, the type of the form NIL is SYMBOL, not CHARACTER.
;;; Compiling (SET 'C::GAZONK ...).
;;; Warning: In LET body, the type of the form C is NIL, not CHARACTER.
;;; End of Pass 1.
;;; Compiling C::|compiler preprocess|.
;;; Error: Unable to coerce lisp object from type (NULL,:OBJECT)
to C/C++ type (CHARACTER,:CHAR)
;;; Failed to compile NIL.
Michael.
More information about the ecl-devel
mailing list