1

SBCLをスライムの下で開始するのに問題があります。私は物事を台無しにしました、そして私は回復する方法を知りません。これは私が...

asdfを介したパッケージのロードに問題がありました。その時点で、SBCLに付属のasdf.lispのデバッグを開始して、何が問題になっているのかを確認しました。私が行った唯一の変更は、何が悪いのかがわかったら削除する(休憩)を入れることでした。次にSBCLを起動しようとするまでは、すべて問題ありませんでした。

次に、asdf.faslがasdf.lispファイルよりも古いというスワンクコンパイルエラーが発生しました。それは私には理にかなっているので、asdf.faslを再コンパイルしました。私が今得ている出力は次のとおりです。

(progn (load "c:\\emacs-23.1\\site-lisp\\slime\\swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "c:\\Users\\GILESR~1\\AppData\\Local\\Temp\\slime.3068" :coding-system "iso-latin-1-unix"))

This is SBCL 1.0.37, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.

This is experimental prerelease support for the Windows platform: use
at your own risk.  "Your Kitten of Death awaits!"
* 
; loading #P"c:\\emacs-23.1\\site-lisp\\slime\\swank-loader.lisp"
; loading #P"c:\\hacking\\emacs\\.slime\\fasl\\2010-07-30\\sbcl-1.0.37-win32-x86\\swank-backend.fasl"
; loading #P"c:\\hacking\\emacs\\.slime\\fasl\\2010-07-30\\sbcl-1.0.37-win32-x86\\swank-source-path-parser.fasl"
; loading #P"c:\\hacking\\emacs\\.slime\\fasl\\2010-07-30\\sbcl-1.0.37-win32-x86\\swank-source-file-cache.fasl"

; compiling file "c:\\emacs-23.1\\site-lisp\\slime\\swank-sbcl.lisp" (written 22 JUL 2010 08:15:02 AM):

; file: c:\emacs-23.1\site-lisp\slime\swank-sbcl.lisp
; in: EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE)
;     (REQUIRE 'SWANK-BACKEND::SB-BSD-SOCKETS)
; 
; caught ERROR:
;   (during compile-time-too processing)
;   The function ASDF::MODULE-PROVIDE-ASDF is undefined.

;     (REQUIRE 'SWANK-BACKEND::SB-INTROSPECT)
; 
; caught ERROR:
;   (during compile-time-too processing)
;   The function ASDF::MODULE-PROVIDE-ASDF is undefined.

;     (REQUIRE 'SWANK-BACKEND::SB-POSIX)
; 
; caught ERROR:
;   (during compile-time-too processing)
;   The function ASDF::MODULE-PROVIDE-ASDF is undefined.

;     (REQUIRE 'SWANK-BACKEND::SB-CLTL2)
; 
; caught ERROR:
;   (during compile-time-too processing)
;   The function ASDF::MODULE-PROVIDE-ASDF is undefined.
; 
; compilation unit aborted
;   caught 1 fatal ERROR condition
;   caught 4 ERROR conditions
;
; compilation aborted because of fatal error:
;   SB-INT:SIMPLE-READER-PACKAGE-ERROR at 1839 (line 62, column 18) on #<SB-SYS:FD-STREAM
;                                                                        for "file c:\\emacs-23.1\\site-lisp\\slime\\swank-sbcl.lisp"
;                                                                        {24564B89}>:
;     package "SB-POSIX" not found
;   ; compilation aborted after 0:00:00.045

;; 
;; Error while compiling c:\emacs-23.1\site-lisp\slime\swank-sbcl.lisp:
;;   COMPILE-FILE returned NIL.
;; Aborting.

そのため、再コンパイルしたasdfで必要なものが見つかりません。これを解決するために、SBCLの完全なアンインストールと再インストールを行いました。喜びはありません。.sbclrcにも何もありません。

更新:asdf.lispソースコードを表示すると、欠落している関数は間違いなくファイルにあります。それらがコンパイルされるのを妨げているのは、次のような行だと思います。

#+(and sbcl sbcl-hooks-require)

私のlispの知識は、現在、環境内でasdfファイルをコンパイルして、上記の条件付きコンパイルステートメントをトリガーするのに十分ではありません。

4

1 に答える 1

0

次の手順を使用して問題を分類しました。

  1. Windowsのスタートメニューからsbclを起動します。
  2. 次のコードを実行して、sbcl-hooks-requireシンボルを機能リストに追加します。

    (push:sbcl-hooks-require features

  3. asdf.lispを再コンパイルします。これを行うには、インストールされているC:\ Program files \ Steel ...ディレクトリの外でasdfを再コンパイルする必要がありました。これは、WindowsVistaのUACがfaslの書き込みを停止するためです。例えば:

    (コンパイルファイル "C:\ foobar \ asdf.lisp")

  4. 生成されたfaslをC:\ Program files \ Steel ...にコピーして戻し、元のfaslを上書きします。

更新:stackoverflowのフォーマットにより、一部のコードビットがノックアウトされました。コードは次のようになります。

(push :sbcl-hooks-require *features*)
(compile-file "C:\\foobar\\asdf.lisp")
于 2010-08-05T15:05:24.823 に答える