我試圖使用Emacs與SLIME和Swank在Imagination Creator CI20 Mips板上學習Common Lisp。我使用SBCL和Clisp作爲我的編譯器/解釋器(主要是SBCL,通常將其設置爲低級lisp模式);然而,我確實用SBCL和Clisp設置爲低等級lisp模式進行測試,並且兩者均失敗。我試圖運行SLIME,但在嘗試加載或編譯Swank文件時總是失敗。來自其中一個嘗試的錯誤消息表明它在架構上存在困難(Mips - little endian)。我正在運行電路板附帶的Debian 7 Wheezy(Mipsel)的默認安裝。MIPS架構上的SLIME和SWANK失敗
我試着用SLIME通過apt-get從Debian存儲庫安裝,另一次用Melpa安裝SLIME,最後一次嘗試用GIMUB Git倉庫(最新版本)SLIME。雖然錯誤消息有時會有微妙的差異,但它們都失敗了。它與Emacs 23和24都失敗。
我從我的嘗試與SLIME的Github存儲庫,使用SBCL作爲編譯器附加錯誤消息/ blurb。 SBCL是從SBCL存儲庫安裝的,因爲Mipsel Wheezy似乎沒有將其存放在Debian存儲庫中。它似乎是一個稍舊的版本,但它是SBCL website上Mips架構的最新二進制文件。 SBCL作爲REPL從命令行運行良好。
(progn (load "/usr/share/common-lisp/source/slime/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init")) (funcall (read-from-string "swank:start-server") "/tmp/slime.4482"))
This is SBCL 1.0.28, 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.
*
; loading #P"/usr/share/common-lisp/source/slime/swank-loader.lisp"
WARNING:
No architecture feature found in (POWERPC PPC X86 X86-64 X86_64 AMD64 I686
I586 I486 PC386 IAPX386 SPARC64 SPARC
HPPA64 HPPA ARM PENTIUM3 PENTIUM4 JAVA-1.4
JAVA-1.5 JAVA-1.6 JAVA-1.7).
debugger invoked on a SB-C::INPUT-ERROR-IN-COMPILE-FILE:
READ failure in COMPILE-FILE:
SB-INT:SIMPLE-READER-PACKAGE-ERROR at 5799 (line 150, column 52) on #<SB-SYS:FD-STREAM for "file /usr/share/common-lisp/source/slime/swank-loader.lisp" {50007F71}>:
Symbol "APPLY-OUTPUT-TRANSLATIONS" not found in the ASDF package.
Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [ABORT] Exit debugger, returning to top level.
(SB-C::READ-FOR-COMPILE-FILE
#<SB-SYS:FD-STREAM for "file /usr/share/common-lisp/source/slime/swank-loader.lisp" {50007F71}>
5418)
0]
看起來它可能試圖爲MIPS交叉編譯,而不是使用本機MIPS gcc。 – markgz 2015-02-06 18:50:37