Hello,
following my just previous message about threads in last cvs (SBCL
0.9.18) on: Linux 2.6.17-11-powerpc #2 Thu Feb 1 17:56:02 UTC 2007 ppc
GNU/Linux
Compiling is OK when I do not use any customize-target-features.lisp
file, BUT compiling fails when I use this customize-target-features.lisp
file with:
(lambda (features)
(flet ((enable (x)
(pushnew x features))
(disable (x)
(setf features (remove x features))))
;; Threading support, available on x86/x86-64 (and ppc ?) Linux
only.
(enable :sb-thread)
(enable :sb-bsd-sockets)
(enable :alien-callbacks)
))
and same problem if I just use
in customize-target-features.lisp:
(lambda (f)
(list* :sb-thread f))
Then, sh make.sh fails since it can not find any sbcl file in src/runtime...
and the make.sh last output is:
$ sh make.sh
[...]
[... many "note: deleting unreachable code"...]
[...]
; file: /pathto/sbcl/src/compiler/generic/genesis.lisp
; in: DEFUN DO-COLD-FIXUP
; (SB!FASL::NOTE-LOAD-TIME-CODE-FIXUP SB!FASL::CODE-OBJECT
; SB!FASL::AFTER-HEADER SB!FASL::VALUE SB!FASL::KIND)
;
; caught STYLE-WARNING:
; undefined function: NOTE-LOAD-TIME-CODE-FIXUP
;
; caught STYLE-WARNING:
; This function is undefined:
; NOTE-LOAD-TIME-CODE-FIXUP
;
; compilation unit finished
; caught 3 STYLE-WARNING conditions
; printed 114 notes
; /pathto/sbcl/obj/from-host/src/compiler/generic/genesis.lisp-obj-tmp
written
; compilation finished in 0:00:11
STYLE-WARNING: redefining FOP-MAYBE-COLD-LOAD in DEFUN
T
*
beginning GENESIS, creating headers in "src/runtime/genesis"
NIL
* 433.44user 16.57system 8:27.39elapsed 88%CPU (0avgtext+0avgdata
0maxresident)k
0inputs+0outputs (0major+341882minor)pagefaults 0swaps
//entering make-target-1.sh
//building runtime system and symbol table file
make: Entering directory `/pathto/sbcl/src/runtime'
rm -f *.[do] sbcl sbcl.nm sbcl.h core *.tmp
# the depend file is obsolete
rm -f depend
make: Leaving directory `/pathto/sbcl/src/runtime'
make: Entering directory `/pathto/sbcl/src/runtime'
echo '#include "genesis/config.h"' >sbcl.h
echo '#include "genesis/constants.h"' >>sbcl.h
make: Leaving directory `/pathto/sbcl/src/runtime'
make: Entering directory `/pathto/sbcl/src/runtime'
cc -g -I. -c -o alloc.o alloc.c
alloc.c: In function 'pa_alloc':
alloc.c:64: warning: assignment makes integer from pointer without a cast
alloc.c:70: warning: assignment makes pointer from integer without a cast
cc -g -I. -c -o backtrace.o backtrace.c
cc -g -I. -c -o breakpoint.o breakpoint.c
cc -g -I. -c -o coreparse.o coreparse.c
cc -g -I. -c -o dynbind.o dynbind.c
dynbind.c: In function 'bind_variable':
dynbind.c:46: error: 'TLS_INDEX_LOCK' undeclared (first use in this
function)
dynbind.c:46: error: (Each undeclared identifier is reported only once
dynbind.c:46: error: for each function it appears in.)
dynbind.c:51: error: 'FREE_TLS_INDEX' undeclared (first use in this
function)
make: *** [dynbind.o] Error 1
make: Leaving directory `/pathto/sbcl/src/runtime'
Command exited with non-zero status 2
2.78user 0.75system 0:03.54elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+68138minor)pagefaults 0swaps
$
Thank's for your help,
Fred Voisin
|