using clocc with sbcl

Asked by Wayne Iba

I'm trying to use CLOCC with SBCL. I've tried the most recent tarball of CLOCC with both the ubuntu SBCL version (1.0.29.11.debian) and the latest binary (1.0.43) on x86-64 platform (ubuntu 10.04).

I am trying to build clocc from lisp as in the "lisp only" part of the instructions at the CLOCC sourceforge site. The first problem encountered when trying (mk:oos "cllib" :compile) with an error in src/port/path.lisp at line 70 complaining about sb-unix:unix-file-kind. I found another thread about this and replaced it with sb-impl::native-file-kind. That seemed to get me further, but then when running tests, it encountered:
---------------------------------------------------
 ** CLLIB::TEST-XML...
 ** CLLIB::TEST-XML...
 => </home/iba/Downloads/clocc2/src/cllib/entities.xml> 284 objects expected
[CLLIB:WITH-XML-FILE]
 * [/home/iba/Downloads/clocc2/src/cllib/entities.xml 20,486 bytes]...done [entities(%/&): 0/252] [bytes: 20,486] [run: 0.010 sec] [real: 0.015 sec]
 * correct length: 284
 => </home/iba/Downloads/clocc2/etc/cl-ent.xml> 1,641 objects expected
[CLLIB:WITH-XML-FILE]
 * [/home/iba/Downloads/clocc2/etc/cl-ent.xml 18,977 bytes]...
 * All streams:
#<SB-SYS:FD-STREAM for "file /home/iba/Downloads/clocc2/etc/cl-ent.xml" {1003584001}>
 * Pending:
#<SB-SYS:FD-STREAM for "file /home/iba/Downloads/clocc2/etc/cl-ent.xml" {1003584001}>
 == #<SB-SYS:FD-STREAM for "file /home/iba/Downloads/clocc2/etc/cl-ent.xml" {1003584001}> -> #P"/home/iba/Downloads/clocc2/etc/cl-ent.xml"
CLLIB::XML-READ-ENTITY: cannot open file ["clhs-ent.xml"]/[#P"/home/iba/Downloads/clocc2/etc/cl-ent.xml"]
done [entities(%/&): 1/435] [bytes: 18,977] [run: 0.010 sec] [real: 0.014 sec]
WARNING:
    ### ERROR: error opening #P"/home/iba/Downloads/clocc2/etc/clhs-ent.xml":
                 No such file or directory

 ** CLLIB::TEST-XML: 1 error
--------------------------------------------------

Any suggestions or fixes would be MOST appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sbcl Edit question
Assignee:
No assignee Edit question
Solved by:
Wayne Iba
Solved:
Last query:
Last reply:
Revision history for this message
Wayne Iba (wayne-iba) said :
#1

The problem appears to be CLOCC-based and I was able to work-around by changing code in CLOCC. I've opened an item on the CLOCC sourceforge project.