[Openmcl-devel] Error in ENCODE-FILE-RANGE

Scott L. Burson Scott at sympoiesis.com
Sun Dec 5 01:09:43 UTC 2010


Hi,

I have a source file that the CCL 1.6 compiler chokes on; I didn't have this
problem in 1.5.  The symptom is that ENCODE-FILE-RANGE tries to subtract NIL
from NIL.  Here's the relevant part of the backtrace:

 (7F52FCFAE688) : 0 (--2 NIL NIL) 5285
 (7F52FCFAE6C0) : 1 (ENCODE-FILE-RANGE NIL NIL) 69
 (7F52FCFAE6E0) : 2 (MAKE-SOURCE-NOTE :FILENAME "/Decidable/gyro/dev/refine/
sys/indep/slot-oc-impl.llisp" :START-POS NIL :END-POS NIL :SOURCE NIL) 109
 (7F52FCFAE758) : 3 (FCOMP-SIGNAL-OR-DEFER-WARNINGS
(#<CCL::UNDEFINED-FUNCTION-REFERENCE #x302000AE6EED>
#<CCL::UNDEFINED-FUNCTION-REFERENCE #x302000AE6A4D>
#<CCL::UNDEFINED-FUNCTION-REFERENCE #x302000AE67DD> #<CCL:COMPILER-WARNING
#x302000AE64ED> #<CCL::UNDEFINED-FUNCTION-REFERENCE #x302000AE637D> ...)
#<CCL::LEXICAL-ENVIRONMENT #x302000AF0C7D>) 325
 (7F52FCFAE7C0) : 4 (FCOMP-NAMED-FUNCTION (LAMBDA NIL (PROGN # # # # ...))
NIL #<CCL::LEXICAL-ENVIRONMENT #x3020009E7E9D> NIL) 581
 (7F52FCFAE830) : 5 (FCOMP-COMPILE-TOPLEVEL-FORMS #<CCL::LEXICAL-ENVIRONMENT
#x3020009E7E9D>) 693
 (7F52FCFAE8D0) : 6 (FCOMP-READ-LOOP
"/Decidable/gyro/dev/refine/sys/indep/slot-oc-impl.llisp"
"/Decidable/gyro/dev/refine/sys/indep/slot-oc-impl.llisp" 0
#<CCL::LEXICAL-ENVIRONMENT #x3020009E7E9D> :NOT-COMPILE-TIME) 3173

I think the problem is basically that the last call to
FCOMP-COMPILE-TOPLEVEL-FORMS in FCOMP-READ-LOOP is outside the binding of
*FCOMP-PREVIOUS-POSITION*.  I don't see that any of the routines involved in
the backtrace have changed recently.  I guess there's some other reason why
that last call to FCOMP-COMPILE-TOPLEVEL-FORMS still has work to do now
which it didn't before.

The source file in question is generated, not hand-written (which is why its
name looks a little odd).  That probably has something to do with it, but
I'm not sure what.

-- Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20101204/6b1ca9c9/attachment.html>


More information about the Openmcl-devel mailing list