我需要從源代碼編譯SBCL並在我的Mac OS X MacBook上啓用線程。從Mac OS X上的源代碼編譯SBCL
我已經做了以下內容:
- 下載SBCL,1.0.29.54.rc1並解壓到硬盤驅動器的根目錄(我可以把它在其他地方是否會更好)。
調用
sh make.sh
它做了很多的東西(它不會立即失敗),但隨後會出現以下故障:
make: *** [backtrace.o] Error 1
我真的不能告訴前面輸出的問題是什麼:
; /sbcl-1.0.29.54.rc1/obj/from-host/src/compiler/generic/genesis.lisp-obj-tmp written
; compilation finished in 0:00:02.281
STYLE-WARNING: redefining FOP-MAYBE-COLD-LOAD in DEFUN
T
*
beginning GENESIS, creating headers in "src/runtime/genesis"
NIL
*
real 1m24.729s
user 1m17.343s
sys 0m5.793s
//entering make-target-1.sh
//building runtime system and symbol table file
rm -f *.[do] sbcl sbcl.nm sbcl.h core *.tmp
echo '#include "genesis/config.h"' >sbcl.h
echo '#include "genesis/constants.h"' >>sbcl.h
In file included from darwin-os.c:21:
/usr/include/ucontext.h:42:2: error: #error ucontext routines are deprecated,
and require _XOPEN_SOURCE to be defined
gcc -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4 -I. -no-cpp-precomp -c -o alloc.o alloc.c
In file included from alloc.c:21:
runtime.h: In function 'CONS':
runtime.h:151: warning: cast to pointer from integer of different size
runtime.h: In function 'SYMBOL':
runtime.h:157: warning: cast to pointer from integer of different size
runtime.h: In function 'FDEFN':
runtime.h:163: warning: cast to pointer from integer of different size
gcc -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.4 -I. -no-cpp-precomp -c -o backtrace.o backtrace.c
In file included from backtrace.c:19:
runtime.h: In function 'CONS':
runtime.h:151: warning: cast to pointer from integer of different size
runtime.h: In function 'SYMBOL':
runtime.h:157: warning: cast to pointer from integer of different size
runtime.h: In function 'FDEFN':
runtime.h:163: warning: cast to pointer from integer of different size
/var/folders/T2/T2z5uzvpHnmC3o+vJVluoU+++TI/-Tmp-//ccEobrpp.s:851:suffix or operands invalid for `mov'
make: *** [backtrace.o] Error 1
任何人都可以告訴我我需要做什麼來解決這個問題嗎?
和你編譯舊sbcl的原因是什麼?該修補程序的版本較新。 – krzysz00 2010-11-12 03:42:08