[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


Hi,

ASDF does not raise an error, when the SBCL compiler produces 
warnings (e.g. "undefined variable", "undefined function").
Example:
======== 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:
http://sourceforge.net/p/sbcl/mailman/message/32976990/

Regards,
Ilya




More information about the asdf-devel mailing list