Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35551 - common lisp, slime-cvs: swank compilation failure
Summary: common lisp, slime-cvs: swank compilation failure
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-10 13:53 UTC by D Wollmann
Modified: 2004-01-29 04:34 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tail of portage output from "emerge slime-cvs" (foo.txt,1.30 KB, text/plain)
2003-12-10 13:55 UTC, D Wollmann
Details
swank.asd with suggested changes, seems to fix problem (swank.asd,974 bytes, text/plain)
2003-12-13 03:06 UTC, D Wollmann
Details
a "fixed" lisp file that should make slime work a bit better (swank-cmucl.lisp,48.86 KB, text/plain)
2003-12-13 05:39 UTC, Ignas Mikalajunas
Details
emerge output (slime-emerge,149.44 KB, text/plain)
2004-01-26 12:08 UTC, Stefan Scholl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description D Wollmann 2003-12-10 13:53:31 UTC
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.
Comment 1 D Wollmann 2003-12-10 13:55:25 UTC
Created attachment 21995 [details]
tail of portage output from "emerge slime-cvs"
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2003-12-10 22:47:40 UTC
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
Comment 3 D Wollmann 2003-12-10 23:01:28 UTC
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.
Comment 4 Ignas Mikalajunas 2003-12-12 23:32:07 UTC
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)
Comment 5 Ignas Mikalajunas 2003-12-12 23:40:06 UTC
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))
Comment 6 D Wollmann 2003-12-13 03:06:46 UTC
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.
Comment 7 Ignas Mikalajunas 2003-12-13 05:39:24 UTC
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.
Comment 8 Matthew Kennedy (RETIRED) gentoo-dev 2003-12-15 22:04:10 UTC
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
Comment 9 Timmy Douglas 2003-12-21 19:26:11 UTC
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.
Comment 10 Matthew Kennedy (RETIRED) gentoo-dev 2004-01-12 20:12:09 UTC
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.
Comment 11 Matthew Kennedy (RETIRED) gentoo-dev 2004-01-26 11:15:08 UTC
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.
Comment 12 Stefan Scholl 2004-01-26 12:08:00 UTC
Created attachment 24456 [details]
emerge output

slime-cvs from 2004-01-26. Can't compile for SBCL 0.8.7
Comment 13 Stefan Scholl 2004-01-26 12:11:26 UTC
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]>
Comment 14 Timmy Douglas 2004-01-26 12:35:01 UTC
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
Comment 15 Matthew Kennedy (RETIRED) gentoo-dev 2004-01-28 23:30:23 UTC
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.
Comment 16 Stefan Scholl 2004-01-29 04:34:40 UTC
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.