Using SBCL, I have the problem that my system defined via ASDF does not load, when the lisp code defines a string constant. Here's the code:
constants.lisp
(defconstant A 1.0)
(defconstant B "B")
simple.asd
(defsystem :simple
:components ((:file "constants")))
On loading via
(asdf:load-system "simple")
I'm getting the following error (output has been shortened a bit):
* (asdf:load-system "simple")
; compiling file "/Users/.../constants.lisp"
; compiling (DEFCONSTANT A ...)
; compiling (DEFCONSTANT B ...)
; /Users/.../constants-TMP.fasl written
; compilation finished in 0:00:00.003
debugger invoked on a DEFCONSTANT-UNEQL in thread
#<THREAD "main thread" RUNNING {1002BFEA93}>:
The constant B is being redefined (from "B" to "B")
The error does not come up with clisp, ccl and abcl. Also, loading the file via
(load "constants.lisp")
works fine.
I'm using
SBCL 1.2.14, ASDF 3.1.3, MacOS
Thanks for any hints,
Oliver
(defconstant B "B")
twice in the sbcl repl. – Rainer Joswig