Re: System compilation failure, CLPPCRE, ASDF, SBCL involved
- From: tar@xxxxxxxxxxxxx (Thomas A. Russ)
- Date: 28 Feb 2008 10:45:24 -0800
Holger Schauer <Holger.Schauer@xxxxxx> writes:
On 5293 September 1993, Juho Snellman wrote:
Holger Schauer <Holger.Schauer@xxxxxx> writes:
What baffles me is that I get that error only when I add the
parse-integer call. I don't understand that at all and also don't have
the slightest idea where to look next. Any hints?
PARSE-INTEGER needs a string argument. SBCL has noticed that there's a
chance it'd be called with NIL instead, and is giving a warning about
that. [...]
Or you can let SBCL know that YEAR will in fact not be NIL when
PARSE-INTEGER is called: (when year (parse-integer year))
Thanks. That indeed fixes both the warning and the error on ASDF
loading. While the problem at hand is now fixed, I would still be
interested to learn why a simple compilation warning may result in an
ASDF compile error. I would have thought that at the end of the day
all what ASDF does is to call compile-file. Usually warnings don't
result in errors during a load-op or compile-op, so is that also some
kind of SBCL special behaviour wrt. to type warnings or something?
Well, I don't know about ASDF, but I encountered something perhaps
similar when doing Loom development. What happened was that we had code
that called COMPILE and actually checked the second return value from
the COMPILE function to see if there were any problems. The style
warnings generated by CMUCL were enough to trigger this. (The code was
pre-ANSI and unfortunately, didn't check the third return value
instead...). Also, I think that some of the compiler notes were not
properly handled by COMPILE at one time, either.
Anyway, if there is some checking going on that tries to detect whether
a compilation succeeded or not, it could be affected by a compiler that
is somewhat pickier about the warnings that it issues.
COMPILE-FILE also returns three values, with the 2nd and 3rd
corresponding to WARNING-P and FAILURE-P, so this could be what is
triggering the ASDF behavior.
--
Thomas A. Russ, USC/Information Sciences Institute
.
- Follow-Ups:
- References:
- System compilation failure, CLPPCRE, ASDF, SBCL involved
- From: Holger Schauer
- Re: System compilation failure, CLPPCRE, ASDF, SBCL involved
- From: Juho Snellman
- Re: System compilation failure, CLPPCRE, ASDF, SBCL involved
- From: Holger Schauer
- System compilation failure, CLPPCRE, ASDF, SBCL involved
- Prev by Date: argmax
- Next by Date: Re: read string to float
- Previous by thread: Re: System compilation failure, CLPPCRE, ASDF, SBCL involved
- Next by thread: Re: System compilation failure, CLPPCRE, ASDF, SBCL involved
- Index(es):
Relevant Pages
|