[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

warning causes asdf:load-system to fail

Jim Newton

2/25/2016 2:26:00 PM

Can someone help me understand why this fails? I've uploaded a small
testcase to dropbox. https://www.dropbox.com/s/hlnwkbvghegkfkz/debug-12...

I get similar results with and without using slime.
The simple case is that I start sbcl, and call
(asdf:load-system :debug-123)

The code seems to load, and the desired warning message is printed.

But then I get the following errors, which I don't understand.
Can someone help em understand?

* (asdf:load-system :debug-123)

; compiling file "/Users/jnewton/sw/regular-type-expression/debug-124.lisp" (written 25 FEB 2016 03:15:06 PM):
; compiling (IN-PACKAGE :CL-USER)
; compiling (DEFUN DEBUG-123 ...)
; file: /Users/jnewton/sw/regular-type-expression/debug-124.lisp
; in: DEFUN DEBUG-123
; (TYPEP '(1 2 :X 3 :Y 4) '(DEBUG-122 (:AND KEYWORD (EQL :X))))
;
; caught WARNING:
; some random warning message :X is a subtype of :Y


; /Users/jnewton/.cache/common-lisp/sbcl-1.3.0-macosx-x64/Users/jnewton/sw/regular-type-expression/debug-124-tmpGHU3ALSV.fasl written
; compilation finished in 0:00:00.008

debugger invoked on a UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread
#<THREAD "main thread" RUNNING {1002AECA03}>:
COMPILE-FILE-ERROR while compiling #<CL-SOURCE-FILE "debug-123" "debug-124">

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [RETRY ] Retry
compiling #<CL-SOURCE-FILE "debug-123" "debug-124">.
1: [ACCEPT ] Continue, treating
compiling #<CL-SOURCE-FILE "debug-123" "debug-124">
as having been successful.
2: Retry ASDF operation.
3: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
configuration.
4: [ABORT ] Exit debugger, returning to top level.

(UIOP/LISP-BUILD:CHECK-LISP-COMPILE-RESULTS NIL T T "~/asdf-action::format-action/" ((#<ASDF/LISP-ACTION:COMPILE-OP > . #<ASDF/LISP-ACTION:CL-SOURCE-FILE "debug-123" "debug-124">)))
source: (ERROR 'COMPILE-FILE-ERROR :CONTEXT-FORMAT CONTEXT-FORMAT
:CONTEXT-ARGUMENTS CONTEXT-ARGUMENTS)
0]
1 Answer

Jim Newton

2/26/2016 10:02:00 AM

0

Thanks Robert Goldman for pointing me to the issue.
The problem is that if a condition warning condition is raised during compilation, compile-file
is specified to consider this a failure. An exception is made for style-warning conditions.

compile-file --> The tertiary value, failure-p, is false if no conditions of type error or warning (other than style-warning) were detected by the compiler, and true otherwise.

The reason my example was working when I called compile-file directly was simply that I was ignoring the 3rd return value. voila.