[Ecls-list] bug report: define-condition compile-time warning breaks ASDF builds

Luis Oliveira luismbo at gmail.com
Fri Aug 22 21:31:07 UTC 2008


Hello,

Here's a test case that shows how a simple DEFINE-CONDITION form
generates a compile-time warning that breaks ASDF builds:

luis at haden:/tmp$ cat test.lisp 
(define-condition foo ()
  ()
  (:report (lambda (o s) (declare (ignore o s)))))
luis at haden:/tmp$ ecl -norc -q
ECL (Embeddable Common-Lisp) 0.9l (CVS 2008-06-19 17:09)
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.  Top level.
> (compile-file "test")
;;; Loading #P"/home/luis/Software/lib/ecl/cmp.fas"
;;; Loading #P"/home/luis/Software/lib/ecl/sysfun.lsp"
;;; Compiling test.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;; Compiling (DEFCLASS FOO ...).
;;; Compiling (DEFMETHOD PRINT-OBJECT ...).
;;; Variable .COMBINED-METHOD-ARGS. was undefined. Compiler assumes it is a global.
;;; End of Pass 1.
;;; Emitting code for #:G123.
;;; Note: Replacing variable G124 by its value
;;; Note: Replacing variable G125 by its value
;;; Note: Replacing variable O by its value
;;; Note: Replacing variable S by its value
;;; Note: Invoking external command:
;;;   gcc  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fPIC  -Dlinux -O "-I/home/luis/Software/include/" -w -c "/tmp/test.c" -o "/tmp/test.o"
;;; Note: Invoking external command:
;;;   gcc -o "/tmp/test.fas" -L"/home/luis/Software/lib/" "/tmp/test.o"  -shared    -lecl -ldl  -lm   -lgmp
;;; Finished compiling test.
NIL
T
T
> 

HTH.

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/





More information about the ecl-devel mailing list