[clbuild-devel] suggestions on how to handle failing tests?

David J. Neu davidjneu at gmail.com
Tue May 20 22:05:28 UTC 2008


Thanks for the response.

Including "cffi-tests" in *blacklisted-systems* works.

Note, I'm testing this on 64-bit Linux, and w/out "blacklisting" cffi
./clbuild build cffi 
yields

Loading cffi-examples...
Loading cffi-grovel...
Loading cffi-tests...
unhandled SIMPLE-ERROR in thread #<SB-THREAD:THREAD "initial thread" {10024291C1}>:
  Error during processing of --eval option "(load \"/home/djneu/apps/clbuild-sbcl-unicode/clbuild.lisp\")":

  erred while invoking #<COMPILE-OP (:VERBOSE NIL) {1002A02B01}> on
  #<C-TEST-LIB "libtest" {1002940911}>

0: (SB-DEBUG::MAP-BACKTRACE #<CLOSURE (LAMBDA #) {1003C452D9}>)[:EXTERNAL]
1: (BACKTRACE 128 #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDERR* {100012ABB1}>)
2: (SB-DEBUG::DEBUGGER-DISABLED-HOOK
    #<SIMPLE-ERROR {1003C3F001}>
    #<unavailable argument>)
3: (INVOKE-DEBUGGER #<SIMPLE-ERROR {1003C3F001}>)
4: (INVOKE-DEBUGGER #<SIMPLE-ERROR {1003C3F001}>)[:EXTERNAL]
5: (ERROR
    "Error during processing of --eval ~
                                    option ~S:~%~%  ~A")[:EXTERNAL]
6: ((LAMBDA (SB-IMPL::E)) #<ASDF:OPERATION-ERROR {1003C3E931}>)
7: ((LAMBDA (SB-IMPL::E)) #<ASDF:OPERATION-ERROR {1003C3E931}>)[:EXTERNAL]
8: (SIGNAL #<ASDF:OPERATION-ERROR {1003C3E931}>)[:EXTERNAL]
9: (ERROR ASDF:OPERATION-ERROR)[:EXTERNAL]
10: ((SB-PCL::FAST-METHOD ASDF:PERFORM
      (ASDF:COMPILE-OP CFFI-TESTS-SYSTEM::C-TEST-LIB))
     #<unavailable argument>
     #<unavailable argument>
     #<ASDF:COMPILE-OP (:VERBOSE NIL) {1002A02B01}>
     #<CFFI-TESTS-SYSTEM::C-TEST-LIB "libtest" {1002940911}>)
11: ((LAMBDA
         (SB-PCL::.PV. SB-PCL::.NEXT-METHOD-CALL. SB-PCL::.ARG0.
          SB-PCL::.ARG1.))
     #<unavailable argument>
     #<unavailable argument>
     #<ASDF:COMPILE-OP (:VERBOSE NIL) {1002A02B01}>
     #<CFFI-TESTS-SYSTEM::C-TEST-LIB "libtest" {1002940911}>)
12: ((LAMBDA ()))
13: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK))
14: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-RECURSIVE-LOCK]520))
15: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK
     #<CLOSURE (FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK) {7FC04E09B059}>
     #S(SB-THREAD:MUTEX
        :NAME "big compiler lock"
        :%OWNER #<SB-THREAD:THREAD "initial thread" {10024291C1}>
        :STATE 1))
16: (SB-C::%WITH-COMPILATION-UNIT #<CLOSURE (LAMBDA #) {1003A975F9}>)[:EXTERNAL]
17: (ASDF:OPERATE ASDF:LOAD-OP "cffi-tests")[:EXTERNAL]
18: ((FLET CLBUILD::BUILD))
19: ((LAMBDA ()))
20: (SB-INT:SIMPLE-EVAL-IN-LEXENV
     (CLBUILD::WITH-APPLICATION
      (CLBUILD::PROJECTS-STRING &KEY CLBUILD::DUMP CLBUILD::VERBOSE
       CLBUILD::FORCE)
      (LET ((CLBUILD::PROJECTS
             (CL-PPCRE:SPLIT "\\s+" CLBUILD::PROJECTS-STRING))
            (CLBUILD::BLACKLISTED-SYSTEMS
             (UNLESS CLBUILD::FORCE CLBUILD::*BLACKLISTED-SYSTEMS*))
            (CLBUILD::SKIPPED-SYSTEMS 'NIL)
            (*PACKAGE* (FIND-PACKAGE :CL-USER)))
        (SETF CLBUILD::PROJECTS (SORT CLBUILD::PROJECTS #'STRING-LESSP))
        (FLET ((CLBUILD::BUILD ()
                 (DOLIST (CLBUILD::PROJECT CLBUILD::PROJECTS)
                   (DOLIST
                       (CLBUILD::SYSTEM
                        (CLBUILD::PROJECT-TO-SYSTEMS CLBUILD::PROJECT))
                     (COND
                      ((FIND CLBUILD::SYSTEM CLBUILD::BLACKLISTED-SYSTEMS :TEST
                             #'EQUAL)
                       (PUSH CLBUILD::SYSTEM CLBUILD::SKIPPED-SYSTEMS))
                      (T (FORMAT T "Loading ~A...~%" CLBUILD::SYSTEM)
                       (ASDF:OPERATE 'ASDF:LOAD-OP CLBUILD::SYSTEM :VERBOSE
                                     CLBUILD::VERBOSE)))))))
          (IF CLBUILD::VERBOSE (CLBUILD::BUILD)
              (HANDLER-BIND
               ((STYLE-WARNING #'MUFFLE-WARNING)
                (COMPILER-NOTE #'MUFFLE-WARNING))
               (LET ((*COMPILE-VERBOSE* NIL)
                     (*COMPILE-PRINT* NIL)
                     (*LOAD-VERBOSE* NIL)
                     (*LOAD-PRINT* NIL))
                 (CLBUILD::BUILD)))))
        (WHEN CLBUILD::SKIPPED-SYSTEMS
          (FORMAT T "WARNING: The following black-listed systems were skipped: ~
                 ~{~A~^, ~}~%~
                Try --force t to include them.~%"
                  CLBUILD::SKIPPED-SYSTEMS))
        (WHEN CLBUILD::DUMP
          (FORMAT T "Dumping monster.core...~%")
          (FORCE-OUTPUT)
          (SAVE-LISP-AND-DIE "monster.core"))))
     #<NULL-LEXENV>)
21: (SB-FASL::LOAD-AS-SOURCE
     #<SB-SYS:FD-STREAM for "file /home/djneu/apps/clbuild-sbcl-unicode/clbuild.lisp" {1002EF26F1}>
     NIL
     NIL)
22: (SB-FASL::%LOAD
     #<SB-SYS:FD-STREAM for "file /home/djneu/apps/clbuild-sbcl-unicode/clbuild.lisp" {1002EF26F1}>)[:EXTERNAL]
23: (SB-FASL::%LOAD "/home/djneu/apps/clbuild-sbcl-unicode/clbuild.lisp")[:EXTERNAL]
24: (LOAD "/home/djneu/apps/clbuild-sbcl-unicode/clbuild.lisp")[:EXTERNAL]
25: (SB-INT:SIMPLE-EVAL-IN-LEXENV
     (LOAD "/home/djneu/apps/clbuild-sbcl-unicode/clbuild.lisp")
     #<NULL-LEXENV>)
26: (SB-IMPL::PROCESS-EVAL-OPTIONS
     ((DISABLE-DEBUGGER) "(require :asdf)"
      "(setq asdf:*central-registry* '(#p\"/home/djneu/apps/clbuild-sbcl-unicode/systems/\"))"
      "nil" "(load \"/home/djneu/apps/clbuild-sbcl-unicode/clbuild.lisp\")"))
27: (SB-IMPL::TOPLEVEL-INIT)
28: ((LABELS SB-IMPL::RESTART-LISP))



On Mon, May 19, 2008 at 07:28:32AM -0700, Bryan Emrys wrote:
> What were the errors? It built for me today.
> 
> If  it still doesn't work, you can include a line 
> 
> 	"cffi-tests"
> 
> in  the defparameter *blacklisted-systems* 
> 
> in the clbuild.lisp file.
> 
> That should exclude it from the build process.
> 
> Bryan
> 
> 
> On Saturday 17 May 2008 12:10:13 pm David J. Neu wrote:
> > Hi,
> > 
> > Not sure if this is a clbuild or cffi question.
> > 
> > I'm using clbuild with sbcl.  The following
> > 
> > ./clbuild build cffi
> > 
> > encounters errors, it looks like in the cffi-tests.
> > 
> > Any way to tell clbuild (or is it cffi) to skip the tests?
> > 
> > Cheers,
> > David
> > 
> > _______________________________________________
> > clbuild-devel mailing list
> > clbuild-devel at common-lisp.net
> > http://common-lisp.net/cgi-bin/mailman/listinfo/clbuild-devel
> >



More information about the clbuild-devel mailing list