[cl-berkeley-db-devel] does not compiles by sbcl with high optimize options

segfault s9gf4ult at gmail.com
Fri Jul 23 19:59:50 UTC 2010


 SBCL-1.0.40
DB-4.6.21_p4 and DB-4.7.25_p4 and DB-4.8.30 (all this installed)
>uname -a
Linux localhost 2.6.32-gentoo-r11std #1 PREEMPT Sun Jun 20 18:37:46
YEKST 2010 x86_64 AMD Athlon(tm) 64 Processor 2800+ AuthenticAMD GNU/Linux

under sbcl execute this
(declaim (optimize (speed 3) (safety 0) (debug 0)))
(asdf:operate 'asdf:load-op 'cl-berkeley-db :force t)

and last what i see is

=======================================================================
;
/home/razor/.fasls/sbcl-1.0.40.gentoo-r1-linux-x86-64/home/razor/.cache/common-lisp/sbcl-1.0.40.gentoo-r1-linux-x86-64/usr/share/common-lisp/source/cl-berkeley-db/src/ASDF-TMP-database.fasl
written
; compilation finished in 0:00:02.043
WARNING:
   COMPILE-FILE warned while performing #<COMPILE-OP (:FORCE T)
{100333F0A1}>
   on #<CL-SOURCE-FILE "cl-berkeley-db" "database">.

debugger invoked on a ASDF:COMPILE-FAILED in thread #<THREAD
                                                      "initial thread"
RUNNING
                                                      {1002ACFD31}>:
  erred while invoking #<COMPILE-OP (:FORCE T) {100333F0A1}> on
  #<CL-SOURCE-FILE "cl-berkeley-db" "database">

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [TRY-RECOMPILING] Try recompiling database
  1: [RETRY          ] Retry performing
                       #<ASDF:COMPILE-OP (:FORCE T) {100333F0A1}> on
                       #<ASDF:CL-SOURCE-FILE "cl-berkeley-db" "database">.
  2: [ACCEPT         ] Continue, treating
                       #<ASDF:COMPILE-OP (:FORCE T) {100333F0A1}> on
                       #<ASDF:CL-SOURCE-FILE "cl-berkeley-db" "database"> as
                       having been successful.
  3: [ABORT          ] Exit debugger, returning to top level.

((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:COMPILE-OP ASDF:CL-SOURCE-FILE))
 #<unavailable argument>
 #<unavailable argument>
 #<ASDF:COMPILE-OP (:FORCE T) {100333F0A1}>
 #<ASDF:CL-SOURCE-FILE "cl-berkeley-db" "database">)
=================================================================

so if i change declaim form to
(declaim (optimize (debug 3) (safety 3) (speed 0)))
then all compiles fine.




More information about the cl-berkeley-db-devel mailing list