Any attempt to compile SWANK for a common lisp or slime-cvs results in errors. Reproducible: Always Steps to Reproduce: 1. emerge cmucl 2. 3. Actual Results: 1) swank compile failure, 2) portage doesn't catch the failure, and succeeds anyway (this seems broken to me). Expected Results: successful compilation of swank.
Created attachment 21995 [details] tail of portage output from "emerge slime-cvs"
Yes, it is a CVS ebuild. At one point in time, it worked but now it doesn't. CVS ebuilds are not supported by Gentoo, but they are provided as a convenience. However, I'll be taking a look at this shortly and should be able to fix it. Matt
I know cvs builds are troublesome, I wasn't really sure if I should report it or not, but I thought it might not hurt since I'd tried a few different co's and the problem didn't seem to be correcting itself. I really appreciate you offering to look at the problem.
in swank.asd it should be (defpackage #:swank (:use #:asdf #:common-lisp)) (in-package #:swank) not (defpackage #:swank-system (:use #:asdf #:common-lisp)) (in-package #:swank-system)
sorry, it should be: (defpackage #:swank (:use #:asdf #:common-lisp) (:export #:start-server #:create-swank-server #:*sldb-pprint-frames*)) instead of (defpackage #:swank (:use #:asdf #:common-lisp))
Created attachment 22128 [details] swank.asd with suggested changes, seems to fix problem I say "seems to", because slime now seems to be broken. At any rate, with the attached changes, I can now compile swank for clisp, sbcl and cmucl.
Created attachment 22136 [details] a "fixed" lisp file that should make slime work a bit better Some of the methods called in emacs slime.el were not exported properly so the thing was acting kind of unstable. Had to fix it manualy. IMHO it's because slime is heavily under development the gentoo CVS build should use a FAIRLY-STABLE tag not the newest distro. Quote form www.cliki.net : During times of heavy hacking, the tag FAIRLY-STABLE is set to a reasonably up-to-date working copy.
thanks for the clues... i think the problem was basically swank-backend.lisp missing from the sys definition file. i've updated the ebuild to use the FAIRLY-STABLE tag from CVS, and also your improvements to the .asd. Let mw know how it goes... Matt
I tried to emerge slime-cvs today: ; compiling top level form: ; compiling DEFMETHOD NO-APPLICABLE-METHOD ((EQL #)): ; compiling top level form: ; compiling DEFMETHOD NO-APPLICABLE-METHOD ((EQL #)): ; compiling top level form: ; /usr/lib/common-lisp/sbcl/swank/swank-backend.fasl written ; compilation finished in 0:00:00 WARNING: COMPILE-FILE warned while performing #<COMPILE-OP NIL {91D5441}> on #<CL-SOURCE-FILE "swank-backend" {9CAFE49}>. ; compilation unit aborted ; caught 1 fatal ERROR condition ; caught 2 WARNING conditions ; printed 27 notes Build error: erred while invoking #<COMPILE-OP NIL {91D5441}> on #<CL-SOURCE-FILE "swank-backend" {9CAFE49}> Build failure Error: Cannot recompile package: swank for implementation: sbcl register-common-lisp-source: Package swank installed * Regenerating /usr/share/emacs/site-lisp/site-start.el... * * Adding /usr/share/emacs/site-lisp/50bbdb-gentoo.el... * Adding /usr/share/emacs/site-lisp/50erc-gentoo.el... * Adding /usr/share/emacs/site-lisp/70slime-gentoo.el... * Adding /usr/share/emacs/site-lisp/70svn-gentoo.el... * >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> app-emacs/slime-cvs-0 merged. >>> clean: No packages selected for removal. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date.
can confirm this on 0.8.5 and 0.8.7 (now in portage). no idea what causes it. i tried (asdf:oos 'asdf:compile-op :swank) outside of portage and it halts with a restart. if i continue as if it had compiled successfully, then it works. probably have to check with the slime folks. in the meantime, a new swank.asd has been committed to portage which supports clisp.
try app-emacs/slime-cvs-0-r1 which was committed to CVS this morning. right now it works with FAIRLY-STABLE and also HEAD tags. Verified it to work for CLISP 2.32, SBCL 0.7.8 and CMUCL 18e. Note you might want to un-emerge app-emacs/ilisp or app-emacs/ilisp-cvs as simultaneous SLIME and ILISP doesn't seem to be possible (at least on my machine I get problems). I'll mark this as TEST-REQUEST. Please let me know how it goes.
Created attachment 24456 [details] emerge output slime-cvs from 2004-01-26. Can't compile for SBCL 0.8.7
Sorry, can't compile it with SBCL 0.8.7. And clisp (dev-lisp/clisp-2.31-r1) won't start: [1]> ;; Loading file /usr/share/emacs/site-lisp/slime-cvs/swank-loader.lisp ... ;; Loading file /usr/share/common-lisp/systems/swank.asd ... ;; Loaded file /usr/share/common-lisp/systems/swank.asd ;; Loading file /usr/lib/common-lisp/clisp/swank/swank.fas ... ;; Loaded file /usr/lib/common-lisp/clisp/swank/swank.fas ;; Loading file /usr/lib/common-lisp/clisp/swank/swank-backend.fas ... ;; Loaded file /usr/lib/common-lisp/clisp/swank/swank-backend.fas ;; Loading file /usr/lib/common-lisp/clisp/swank/null-swank-impl.fas ... ;; Loaded file /usr/lib/common-lisp/clisp/swank/null-swank-impl.fas 0 errors, 0 warnings ;; Loaded file /usr/share/emacs/site-lisp/slime-cvs/swank-loader.lisp T [2]> ** - Continuable Error FUNCALL: undefined function SWANK:CREATE-SWANK-SERVER If you continue (by typing 'continue'): Retry The following restarts are also available: STORE-VALUE :R1 You may input a new value for (FDEFINITION 'SWANK:CREATE-SWANK-SERVER). USE-VALUE :R2 You may input a value to be used instead of (FDEFINITION 'SWANK:CREATE-SWANK-SERVER). 1. Break [3]>
similar(same?) output as Comment #12 From Stefan Scholl 2004-01-26 12:08 PST ; /usr/lib/common-lisp/sbcl/swank/swank-backend.fasl written ; compilation finished in 0:00:02 WARNING: COMPILE-FILE warned while performing #<COMPILE-OP NIL {91CBA21}> on #<CL-SOURCE-FILE "swank-backend" {9C28671}>. ; compilation unit aborted ; caught 1 fatal ERROR condition ; caught 2 WARNING conditions ; caught 2 STYLE-WARNING conditions ; printed 28 notes Build error: erred while invoking #<COMPILE-OP NIL {91CBA21}> on #<CL-SOURCE-FILE "swank-backend" {9C28671}> Build failure Error: Cannot recompile package: swank for implementation: sbcl register-common-lisp-source: Package swank installed
the latest common-lisp-controller, cl-asdf, cl-defsystem3, clisp and sbcl committed to portage yesterday may solve the problems described in the last two comments.
ACK! I've updated all, incl. slime-cvs. No problem with dev-lisp/sbcl-0.8.7-r1 (USE="threads") and dev-lisp/clisp-2.32-r1 ("clisp -K full"). swank was compiled right and SLIME works fine.