[cl-gd-devel] CL-GD on 64-bit Lisp problem
Hi, I've been using CL-GD on 32-bit systems for years without difficulties. Now I'm trying to set a Lisp environment up on a fresh 64-bit Debian machine and I can't get CL-GD to work. When I try to load it I get this error: Error opening shared object "/home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so": /home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so: wrong ELF class: ELFCLASS64.. I remember their being an issue with CL-GD on 64-bit machines a couple years ago that involved having to use CFFI-UFFI-COMPAT instead of CFFI. I also vaguely remember that there was a problem at the time trying to have both CFFI and UFFI working, as the former used the same asd file name as the latter or something like that. Quite a number of other libraries I use depend on CFFI so I don't want to do anything that would break it. But I also need to get CL-GD working again if this machine is to be useful. My gd lib is 64-bit - actually, everything I can think of is 64-bit. Is this still an issue? Is anyone using CL-GD on a 64-bit machine? If so, mind sharing what it takes to get it working? Much obliged. --Jeff Cunningham -- --
Hi Jeff, I am using CL-GD on 64 bit systems without problems. Did you recompile the glue? The 32 bit .so will not work. -Hans On Thu, Sep 8, 2011 at 6:05 PM, Jeffrey Cunningham <jeffrey@jkcunningham.com> wrote:
Hi,
I've been using CL-GD on 32-bit systems for years without difficulties. Now I'm trying to set a Lisp environment up on a fresh 64-bit Debian machine and I can't get CL-GD to work. When I try to load it I get this error:
Error opening shared object "/home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so": /home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so: wrong ELF class: ELFCLASS64..
I remember their being an issue with CL-GD on 64-bit machines a couple years ago that involved having to use CFFI-UFFI-COMPAT instead of CFFI. I also vaguely remember that there was a problem at the time trying to have both CFFI and UFFI working, as the former used the same asd file name as the latter or something like that. Quite a number of other libraries I use depend on CFFI so I don't want to do anything that would break it. But I also need to get CL-GD working again if this machine is to be useful.
My gd lib is 64-bit - actually, everything I can think of is 64-bit. Is this still an issue? Is anyone using CL-GD on a 64-bit machine?
If so, mind sharing what it takes to get it working?
Much obliged.
--Jeff Cunningham
-- --
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
Hi Hans, Yes, that was the first thing I did. If I'm reading that error message correctly, it saying that ELFCLASS64 is the wrong ELF class, which would imply it is looking for 32-bit glue. On Thu, 08 Sep 2011 09:16:07 -0700, Hans Hübner <hans.huebner@gmail.com> wrote:
Hi Jeff,
I am using CL-GD on 64 bit systems without problems. Did you recompile the glue? The 32 bit .so will not work.
-Hans
On Thu, Sep 8, 2011 at 6:05 PM, Jeffrey Cunningham <jeffrey@jkcunningham.com> wrote:
Hi,
I've been using CL-GD on 32-bit systems for years without difficulties. Now I'm trying to set a Lisp environment up on a fresh 64-bit Debian machine and I can't get CL-GD to work. When I try to load it I get this error:
Error opening shared object "/home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so": /home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so: wrong ELF class: ELFCLASS64..
I remember their being an issue with CL-GD on 64-bit machines a couple years ago that involved having to use CFFI-UFFI-COMPAT instead of CFFI. I also vaguely remember that there was a problem at the time trying to have both CFFI and UFFI working, as the former used the same asd file name as the latter or something like that. Quite a number of other libraries I use depend on CFFI so I don't want to do anything that would break it. But I also need to get CL-GD working again if this machine is to be useful.
My gd lib is 64-bit - actually, everything I can think of is 64-bit. Is this still an issue? Is anyone using CL-GD on a 64-bit machine?
If so, mind sharing what it takes to get it working?
Much obliged.
--Jeff Cunningham
-- --
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
--
I just tried coming at it a different way and get a different error message: (require 'cffi-uffi-compat) (require 'cl-gd) ASDF could not load cl-gd because UFFI is a nickname for the package CFFI-UFFI-COMPAT. UFFI is a nickname for the package CFFI-UFFI-COMPAT [Condition of type SB-KERNEL:SIMPLE-PACKAGE-ERROR] Restarts: 0: [TRY-RECOMPILING] Recompile package and try loading it again 1: [RETRY] Retry loading FASL for #<CL-SOURCE-FILE "uffi" "src" "package">. 2: [ACCEPT] Continue, treating loading FASL for #<CL-SOURCE-FILE "uffi" "src" "package"> as having been successful. 3: [*ABORT] Return to SLIME's top level. 4: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" RUNNING {B113561}>) Backtrace: 0: (SB-IMPL::UPDATE-PACKAGE-WITH-VARIANCE ..) So it seems that if cl-gd gets loaded first, it sees the 32/64-bit glue problem. But if cffi-uffi-compat is loaded first, cl-gd isn't compatible with my unaltered cffi / uffi installation. --Jeff On Thu, 08 Sep 2011 09:16:07 -0700, Hans Hübner <hans.huebner@gmail.com> wrote:
Hi Jeff,
I am using CL-GD on 64 bit systems without problems. Did you recompile the glue? The 32 bit .so will not work.
-Hans
On Thu, Sep 8, 2011 at 6:05 PM, Jeffrey Cunningham <jeffrey@jkcunningham.com> wrote:
Hi,
I've been using CL-GD on 32-bit systems for years without difficulties. Now I'm trying to set a Lisp environment up on a fresh 64-bit Debian machine and I can't get CL-GD to work. When I try to load it I get this error:
Error opening shared object "/home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so": /home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so: wrong ELF class: ELFCLASS64..
I remember their being an issue with CL-GD on 64-bit machines a couple years ago that involved having to use CFFI-UFFI-COMPAT instead of CFFI. I also vaguely remember that there was a problem at the time trying to have both CFFI and UFFI working, as the former used the same asd file name as the latter or something like that. Quite a number of other libraries I use depend on CFFI so I don't want to do anything that would break it. But I also need to get CL-GD working again if this machine is to be useful.
My gd lib is 64-bit - actually, everything I can think of is 64-bit. Is this still an issue? Is anyone using CL-GD on a 64-bit machine?
If so, mind sharing what it takes to get it working?
Much obliged.
--Jeff Cunningham
-- --
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
--
Hi Jeff, I have just tried :cl-gd on my Ubuntu 64 bit box with CCL. Things work as expected. I have used quicklisp to load it. The error message that you've pasted indicates that you have loaded cffi-uffi-compat library. Don't do that, use UFFI instead. Anything else we can help with, let us know. -Hans On Thu, Sep 8, 2011 at 6:46 PM, Jeffrey Cunningham <jeffrey@jkcunningham.com> wrote:
I just tried coming at it a different way and get a different error message:
(require 'cffi-uffi-compat) (require 'cl-gd) ASDF could not load cl-gd because UFFI is a nickname for the package CFFI-UFFI-COMPAT.
UFFI is a nickname for the package CFFI-UFFI-COMPAT [Condition of type SB-KERNEL:SIMPLE-PACKAGE-ERROR]
Restarts: 0: [TRY-RECOMPILING] Recompile package and try loading it again 1: [RETRY] Retry loading FASL for #<CL-SOURCE-FILE "uffi" "src" "package">. 2: [ACCEPT] Continue, treating loading FASL for #<CL-SOURCE-FILE "uffi" "src" "package"> as having been successful. 3: [*ABORT] Return to SLIME's top level. 4: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" RUNNING {B113561}>)
Backtrace: 0: (SB-IMPL::UPDATE-PACKAGE-WITH-VARIANCE ..)
So it seems that if cl-gd gets loaded first, it sees the 32/64-bit glue problem. But if cffi-uffi-compat is loaded first, cl-gd isn't compatible with my unaltered cffi / uffi installation.
--Jeff
On Thu, 08 Sep 2011 09:16:07 -0700, Hans Hübner <hans.huebner@gmail.com> wrote:
Hi Jeff,
I am using CL-GD on 64 bit systems without problems. Did you recompile the glue? The 32 bit .so will not work.
-Hans
On Thu, Sep 8, 2011 at 6:05 PM, Jeffrey Cunningham <jeffrey@jkcunningham.com> wrote:
Hi,
I've been using CL-GD on 32-bit systems for years without difficulties. Now I'm trying to set a Lisp environment up on a fresh 64-bit Debian machine and I can't get CL-GD to work. When I try to load it I get this error:
Error opening shared object "/home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so": /home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so: wrong ELF class: ELFCLASS64..
I remember their being an issue with CL-GD on 64-bit machines a couple years ago that involved having to use CFFI-UFFI-COMPAT instead of CFFI. I also vaguely remember that there was a problem at the time trying to have both CFFI and UFFI working, as the former used the same asd file name as the latter or something like that. Quite a number of other libraries I use depend on CFFI so I don't want to do anything that would break it. But I also need to get CL-GD working again if this machine is to be useful.
My gd lib is 64-bit - actually, everything I can think of is 64-bit. Is this still an issue? Is anyone using CL-GD on a 64-bit machine?
If so, mind sharing what it takes to get it working?
Much obliged.
--Jeff Cunningham
-- --
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
--
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
Thank you for the help, Hans. That was just an experiment. Normally, I load UFFI. But you said something that made me go back and look at my sbcl executable. Turns out I somehow built a 32-bit sbcl on this 64-bit machine. That explains everything (except why it built sbcl that way). So it's clearly not a CL-GD issue at all. Thanks again, --Jeff On Thu, 08 Sep 2011 10:29:43 -0700, Hans Hübner <hans.huebner@gmail.com> wrote:
Hi Jeff,
I have just tried :cl-gd on my Ubuntu 64 bit box with CCL. Things work as expected. I have used quicklisp to load it.
The error message that you've pasted indicates that you have loaded cffi-uffi-compat library. Don't do that, use UFFI instead.
Anything else we can help with, let us know. -Hans
On Thu, Sep 8, 2011 at 6:46 PM, Jeffrey Cunningham <jeffrey@jkcunningham.com> wrote:
I just tried coming at it a different way and get a different error message:
(require 'cffi-uffi-compat) (require 'cl-gd) ASDF could not load cl-gd because UFFI is a nickname for the package CFFI-UFFI-COMPAT.
UFFI is a nickname for the package CFFI-UFFI-COMPAT [Condition of type SB-KERNEL:SIMPLE-PACKAGE-ERROR]
Restarts: 0: [TRY-RECOMPILING] Recompile package and try loading it again 1: [RETRY] Retry loading FASL for #<CL-SOURCE-FILE "uffi" "src" "package">. 2: [ACCEPT] Continue, treating loading FASL for #<CL-SOURCE-FILE "uffi" "src" "package"> as having been successful. 3: [*ABORT] Return to SLIME's top level. 4: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" RUNNING {B113561}>)
Backtrace: 0: (SB-IMPL::UPDATE-PACKAGE-WITH-VARIANCE ..)
So it seems that if cl-gd gets loaded first, it sees the 32/64-bit glue problem. But if cffi-uffi-compat is loaded first, cl-gd isn't compatible with my unaltered cffi / uffi installation.
--Jeff
On Thu, 08 Sep 2011 09:16:07 -0700, Hans Hübner <hans.huebner@gmail.com> wrote:
Hi Jeff,
I am using CL-GD on 64 bit systems without problems. Did you recompile the glue? The 32 bit .so will not work.
-Hans
On Thu, Sep 8, 2011 at 6:05 PM, Jeffrey Cunningham <jeffrey@jkcunningham.com> wrote:
Hi,
I've been using CL-GD on 32-bit systems for years without difficulties. Now I'm trying to set a Lisp environment up on a fresh 64-bit Debian machine and I can't get CL-GD to work. When I try to load it I get this error:
Error opening shared object "/home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so": /home/jcunningham/src/lisp/cl-gd-0.5.7/cl-gd-glue.so: wrong ELF class: ELFCLASS64..
I remember their being an issue with CL-GD on 64-bit machines a couple years ago that involved having to use CFFI-UFFI-COMPAT instead of CFFI. I also vaguely remember that there was a problem at the time trying to have both CFFI and UFFI working, as the former used the same asd file name as the latter or something like that. Quite a number of other libraries I use depend on CFFI so I don't want to do anything that would break it. But I also need to get CL-GD working again if this machine is to be useful.
My gd lib is 64-bit - actually, everything I can think of is 64-bit. Is this still an issue? Is anyone using CL-GD on a 64-bit machine?
If so, mind sharing what it takes to get it working?
Much obliged.
--Jeff Cunningham
-- --
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
--
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
_______________________________________________ cl-gd-devel site list cl-gd-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-gd-devel
--
participants (2)
-
Hans Hübner -
Jeffrey Cunningham