[plexippus-xpath-devel] Problem compiling xpath

Daniel Katz dpkatz at gmail.com
Tue Nov 11 04:17:27 UTC 2008


Hi -

I just downloaded plexippus-xpath (via clbuild) and tried to compile  
it with sbcl (I also tried ccl and got the same result) on a PPC Mac  
OS X 10.5 machine, and ran into trouble:

[... lots of earlier stuff elided...]
; /Users/dkatz/dev/lisp/libs/clbuild/source/plexippus-xpath/lexer.fasl  
written
; compilation finished in 0:00:05
; compiling file "/Users/dkatz/dev/lisp/libs/clbuild/source/plexippus- 
xpath/parser.lisp" (written 10 NOV 2008 10:31:28 PM):
; compiling (IN-PACKAGE :XPATH)
; compiling (DEFMACRO LAMBDA* ...)
; compiling (DEFUN MAKE-FUNCTION-NAME ...)
; compiling (YACC:DEFINE-PARSER *XPATH-PARSER* ...)

; file: /Users/dkatz/dev/lisp/libs/clbuild/source/plexippus-xpath/ 
parser.lisp
; in: YACC:DEFINE-PARSER *XPATH-PARSER*
;     (YACC:DEFINE-PARSER XPATH::*XPATH-PARSER* (:START-SYMBOL  
XPATH::EXPR)
;                         (:TERMINALS
;                          (:LPAREN :RPAREN :LBRACKET :RBRACKET :TWO- 
DOTS :DOT :AT
;                           :COMMA 
  :COLONS :COLON :VARIABLE :NCNAME ...))
;                         (:MUFFLE-CONFLICTS (8 0)) (XPATH::EXPR  
XPATH::OR-EXPR)
;                         (XPATH::PRIMARY-EXPR
;                          (:VARIABLE
;                           (XPATH::LAMBDA* (XPATH::X)  
`(:VARIABLE ,XPATH::X)))
;                          (:LPAREN XPATH::EXPR :RPAREN
;                           (XPATH::LAMBDA* (NIL XPATH::VAR NIL)  
XPATH::VAR))
;                          :LITERAL :NUMBER XPATH::FUNCTION-CALL)
;                         (XPATH::LOCATION-PATH XPATH::RELATIVE- 
LOCATION-PATH
;                          XPATH::ABSOLUTE-LOCATION-PATH)
;                         (XPATH::ABSOLUTE-LOCATION-PATH
;                          (:/ (XPATH::LAMBDA* (NIL) '(:PATH #)))
;                          (:/ XPATH::RELATIVE-LOCATION-PATH
;                           (XPATH::LAMBDA* (NIL XPATH::A) `(:PATH  
# ,@#)))
;                          XPATH::ABBREVIATED-ABSOLUTE-LOCATION-PATH)
;                         (XPATH::RELATIVE-LOCATION-PATH
;                          (STEP (XPATH::LAMBDA* (XPATH::A)  
`(:PATH ,XPATH::A)))
;                          (XPATH::RELATIVE-LOCATION-PATH :/ STEP
;                           (XPATH::LAMBDA* (XPATH::A NIL XPATH::B)
;                                           `(:PATH ,@# ,XPATH::B)))
;                          XPATH::ABBREVIATED-RELATIVE-LOCATION-PATH)
;                         (STEP
;                          (XPATH::AXIS-SPECIFIER XPATH::NODE-TEST
;                           XPATH::PREDICATES
;                           (XPATH::LAMBDA* (XPATH::A XPATH::B XPATH::C)
;                                           `(,# ,XPATH::B , at XPATH::C)))
;                          (XPATH::AXIS-SPECIFIER XPATH::NODE-TEST
;                           (XPATH::LAMBDA* (XPATH::A XPATH::B)  
`(,# ,XPATH::B)))
;                          (XPATH::NODE-TEST XPATH::PREDICATES
;                           (XPATH::LAMBDA* (XPATH::B XPATH::C)
;                                            
`(:CHILD ,XPATH::B , at XPATH::C)))
;                          (XPATH::NODE-TEST
;                           (XPATH::LAMBDA* (XPATH::B)  
`(:CHILD ,XPATH::B)))
;                          XPATH::ABBREVIATED-STEP)
;                         (XPATH::PREDICATES (XPATH::PREDICATE)
;                          (XPATH::PREDICATE XPATH::PREDICATES
;                           (XPATH::LAMBDA* (XPATH::A XPATH::B)
;                                           (CONS XPATH::A XPATH::B))))
;                         ...)
;
; caught ERROR:
;   (during macroexpansion of (YACC:DEFINE-PARSER *XPATH-PARSER* ...))
;   The variable LAMBDA* is unbound.

; compiling (DEFUN PARSE-XPATH ...)
; compiling (DEFUN TEST-LEXER ...)
; compiling (DEFUN DRIBBLE-TESTS ...)

; /Users/dkatz/dev/lisp/libs/clbuild/source/plexippus-xpath/ 
parser.fasl written
; compilation finished in 0:00:01
WARNING:
    COMPILE-FILE warned while performing #<COMPILE-OP NIL {11C22C21}> on
    #<CL-SOURCE-FILE "parser" {11D31361}>.
;
; compilation unit aborted
;   caught 1 fatal ERROR condition
;   caught 1 ERROR condition
;   printed 5 notes
; Evaluation aborted.


I didn't see an obvious problem since it compiled the lambda* macro  
just before it hit the problem area (unless there was an issue with  
the eval-when clause that I'm not understanding), but clearly the  
compilers don't like something.

Any suggestions on what the issue might be?

Thanks.

Dan





More information about the plexippus-xpath-devel mailing list