4

ソースから SBCL をコンパイルし、Mac OS X MacBook でスレッドを有効にする必要があります。

私は次のことをしました:

  1. sbcl-1.0.29.54.rc1 をダウンロードし、ハード ドライブのルートに解凍しました (別の場所に配置したほうがよい場合もあります)。
  2. 呼び出された

    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

これを修正するために何をする必要があるか誰か教えてもらえますか?

4

2 に答える 2

4

このバグレポートにパッチがあります。それを適用してきれいに再構築し(make clean && ...)、問題が解決するかどうかを確認してください。

于 2010-11-11T23:58:03.973 に答える
2

そのバージョンはかなり古いです。SBCL は 1.0.44 までです。1.0.44 は Mac OS X で正常にビルドされます。

于 2010-11-12T00:50:44.177 に答える