[Asdf-devel] ASDF does not signal deferred non-style warnings as an error

Ilya Perminov iperminov at dwavesys.com
Wed Oct 29 21:22:26 UTC 2014


ASDF does not raise an error, when the SBCL compiler produces 
warnings (e.g. "undefined variable", "undefined function").
======== test.asd =============
(defsystem :test
  :version "1.0"
  :components ((:file "test")))
======== test.lisp ============
(defun foo () 
  (+ a b))

(asdf:load-system :test) does not signal an error.

I discovered this problem using SBCL, but I bet it can be
reproduced on  some other CL implementations that deffer warnings. The
cause of the problem is that WITH-COMPILATION-UNIT may affect result
values (warnings-p, and failure-p) of COMPILE-FILE.
sbcl-help has a discussion of this WITH-COMPILATION-UNIT/COMPILE-FILE interaction:


More information about the asdf-devel mailing list