Problems with cusp working with sbcl

148 views
Skip to first unread message

Tom Bracken

unread,
Sep 16, 2010, 6:49:35 PM9/16/10
to Cusp Development
I am getting the following error message out of cusp when
I try to start the eclipse package with the cusp plugin installed.

thomas@S010600112f5fac7c:~> eclipse-helios
org.eclipse.jface.resource.DataFormatException
at
org.eclipse.jface.resource.StringConverter.asRGB(StringConverter.java:
567)
at
jasko.tim.lisp.ColorManager.loadColorPreferences(ColorManager.java:
136)
at jasko.tim.lisp.ColorManager.<init>(ColorManager.java:154)
at jasko.tim.lisp.LispPlugin.start(LispPlugin.java:46)
..
..
]STYLE-WARNING: redefining UNIQUE-DIR-NAME in DEFUN
]STYLE-WARNING: redefining FILE-NEWER-P in DEFUN
]STYLE-WARNING: redefining SLIME-VERSION-STRING in DEFUN
]STYLE-WARNING: redefining DEFAULT-FASL-DIR in DEFUN
]STYLE-WARNING: redefining BINARY-PATHNAME in DEFUN
]STYLE-WARNING: redefining HANDLE-SWANK-LOAD-ERROR in DEFUN
]STYLE-WARNING: redefining COMPILE-FILES in DEFUN
]STYLE-WARNING: redefining LOAD-USER-INIT-FILE in DEFUN
]STYLE-WARNING: redefining LOAD-SITE-INIT-FILE in DEFUN
]STYLE-WARNING: redefining SRC-FILES in DEFUN
]STYLE-WARNING: redefining APPEND-DIR in DEFUN
..
..
..
)") nil :repl-thread 3)
<--(:invalid-rpc 3 "Thread not found: :REPL-THREAD")


I was able finally to get the swank loaded by creating a core image
with
swank already loaded with the following,

shell$ sbcl
* (load ".../slime/swank-loader.lisp")
* (swank-loader:dump-image "sbcl.core-with-swank")

because the original problem I had was that the swank would not even
load properly
under the cusp product.

Now it appears that the problem is something to do with formatting of
the strings
that are being sent to the sbcl lisp.
(I assume that the problem may have to do with a STYLE WARNING
redefining of lisp functions)

(My environment consists of
suse linux 11.2
Eclipse SDK Version 3.6.0
SBCL 1.0.42)

Any advice would be greatly appreciated.

Thanks for your help.

Tom Bracken
e-mail: t.br...@shaw.ca



Tom Bracken

unread,
Sep 17, 2010, 5:05:17 AM9/17/10
to Cusp Development
Hello,

I finally got the cusp to work properly under the sbcl lisp.
(my environment is suse linux 11.2)

Here is the secret, for anyone who has a similar problem under linux.
I went to the following site to get a version of cusp

http://www.bitfauna.com/projects/cusp/update/

In my case I downloaded the most recent version (CUSP0.9.390)

Then I went to the SBCL sourceforge area and downloaded the correct
version of SBCL 1.0.19 that works with cusp 0.9.360

http://sourceforge.net/projects/sbcl/files/

I then downloaded and unziped the cusp version 0.9.390 into my home
directory
and copied both the plugins and features directory contents of cusp
into
the eclipse plugins and features directories , in my case under
/usr/local/eclipse-helios> ls -lt
total 548
drwxrwxr-x 19 507 1109 4096 2010-09-17 00:06 features
drwxrwxr-x 16 507 1109 36864 2010-09-17 00:06 plugins

I downloaded the 1.0.19 version of sbcl for linux and installed it.

Here is that part that no one knows about which makes the whole thing
work properly.

The problem with cusp is that it expects the sbcl executable to be in
the same directory
as the sbcl.core .

With a normal installation of sbcl on linux , the sbcl.core is acually
in /usr/local/lib/sbcl/
not in /usr/local/bin, where the sbcl executable is .

The way to fix this properly, is NOT to modify the SBCL_HOME variable
to point to /usr/local/bin, instead of /usr/local/lib/sbcl,
but to copy the sbcl executable from /usr/local/bin to /usr/local/lib/
sbcl
and put a symlink to point to the /usr/local/lib/sbcl directory from
the /usr/local/bin directory.

The commands are
su - root
mv /usr/local/bin/sbcl /usr/local/lib/sbcl/sbcl
cd /usr/local/bin
ln -s /usr/local/lib/sbcl/sbcl sbcl

Like so
/usr/local/lib/sbcl> ls sbcl*
sbcl sbcl.core
/usr/local/lib/sbcl> cd ../../bin
/usr/local/bin> ls -l sbcl*
lrwxrwxrwx 1 root root 24 2010-09-17 00:51 sbcl -> /usr/local/lib/sbcl/
sbcl

(Note: One of my first mistakes, was to modify where the SBCL_HOME
variable pointed to.
From /usr/local/lib/sbcl to /usr/local/bin

This fixed the problem of sbcl not being able to load but created
another problem where
the libraries which are needed by cusp when it loads sbcl, could not
be found.
(see below)

thomas@S010600112f5fac7c:/usr/local/lib/sbcl> ls -lt
total 23912
-rwxr-xr-x 1 root root 480852 2010-09-17 00:51 sbcl
drwxr-xr-x 2 root root 4096 2010-09-17 00:04 sb-sprof
drwxr-xr-x 2 root root 4096 2010-09-17 00:04 sb-introspect
drwxr-xr-x 2 root root 4096 2010-09-17 00:04 sb-executable
drwxr-xr-x 2 root root 4096 2010-09-17 00:04 asdf
-rw-r--r-- 1 root root 23932940 2010-09-17 00:04 sbcl.core
drwxr-xr-x 2 root root 4096 2010-09-17 00:04 site-systems
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-simple-streams
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-aclrepl
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-bsd-sockets
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-cltl2
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-cover
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-grovel
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-md5
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-posix
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-rotate-byte
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 sb-rt
drwxr-xr-x 2 thomas users 4096 2010-09-17 00:00 asdf-install )

The Cusp plugin is now finally working properly with the SBCL lisp
under suse 11.2 linux.

Cheers!

Tom Bracken

e-mail: t.br...@shaw.ca
> e-mail: t.brac...@shaw.ca

Chris Ferrell

unread,
Sep 19, 2010, 6:49:21 AM9/19/10
to cusp-dev...@googlegroups.com
Thanks for the info Tom.  By the way, Cusp has been forked to Lispdev (http://bitbucket.org/skolos/lispdev/wiki/Developer_notes).  Lispdev is in active development.


--
You received this message because you are subscribed to the Google Groups "Cusp Development" group.
To post to this group, send email to cusp-dev...@googlegroups.com.
To unsubscribe from this group, send email to cusp-developme...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cusp-development?hl=en.


Reply all
Reply to author
Forward
0 new messages