From jeffrey at jkcunningham.com Thu Sep 8 16:05:01 2011 From: jeffrey at jkcunningham.com (Jeffrey Cunningham) Date: Thu, 08 Sep 2011 09:05:01 -0700 Subject: [cl-gd-devel] CL-GD on 64-bit Lisp problem Message-ID: 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 -- -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans.huebner at gmail.com Thu Sep 8 16:16:07 2011 From: hans.huebner at gmail.com (=?ISO-8859-1?Q?Hans_H=FCbner?=) Date: Thu, 8 Sep 2011 18:16:07 +0200 Subject: [cl-gd-devel] CL-GD on 64-bit Lisp problem In-Reply-To: References: Message-ID: 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 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 at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-gd-devel > From jeffrey at jkcunningham.com Thu Sep 8 16:34:00 2011 From: jeffrey at jkcunningham.com (Jeffrey Cunningham) Date: Thu, 08 Sep 2011 09:34:00 -0700 Subject: [cl-gd-devel] CL-GD on 64-bit Lisp problem In-Reply-To: References: Message-ID: 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 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 > 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 at common-lisp.net >> http://common-lisp.net/mailman/listinfo/cl-gd-devel >> > > _______________________________________________ > cl-gd-devel site list > cl-gd-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-gd-devel -- From jeffrey at jkcunningham.com Thu Sep 8 16:46:05 2011 From: jeffrey at jkcunningham.com (Jeffrey Cunningham) Date: Thu, 08 Sep 2011 09:46:05 -0700 Subject: [cl-gd-devel] CL-GD on 64-bit Lisp problem In-Reply-To: References: Message-ID: 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 #. 2: [ACCEPT] Continue, treating loading FASL for # as having been successful. 3: [*ABORT] Return to SLIME's top level. 4: [TERMINATE-THREAD] Terminate this thread (#) 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 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 > 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 at common-lisp.net >> http://common-lisp.net/mailman/listinfo/cl-gd-devel >> > > _______________________________________________ > cl-gd-devel site list > cl-gd-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-gd-devel -- From hans.huebner at gmail.com Thu Sep 8 17:29:43 2011 From: hans.huebner at gmail.com (=?ISO-8859-1?Q?Hans_H=FCbner?=) Date: Thu, 8 Sep 2011 19:29:43 +0200 Subject: [cl-gd-devel] CL-GD on 64-bit Lisp problem In-Reply-To: References: Message-ID: 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 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 #. > ?2: [ACCEPT] Continue, treating loading FASL for # "src" "package"> as having been successful. > ?3: [*ABORT] Return to SLIME's top level. > ?4: [TERMINATE-THREAD] Terminate this thread (# {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 > 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 >> 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 at common-lisp.net >>> http://common-lisp.net/mailman/listinfo/cl-gd-devel >>> >> >> _______________________________________________ >> cl-gd-devel site list >> cl-gd-devel at common-lisp.net >> http://common-lisp.net/mailman/listinfo/cl-gd-devel > > > -- > > _______________________________________________ > cl-gd-devel site list > cl-gd-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-gd-devel From jeffrey at jkcunningham.com Thu Sep 8 18:05:12 2011 From: jeffrey at jkcunningham.com (Jeffrey Cunningham) Date: Thu, 08 Sep 2011 11:05:12 -0700 Subject: [cl-gd-devel] CL-GD on 64-bit Lisp problem In-Reply-To: References: Message-ID: 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 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 > 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 #> "package">. >> 2: [ACCEPT] Continue, treating loading FASL for #> "src" "package"> as having been successful. >> 3: [*ABORT] Return to SLIME's top level. >> 4: [TERMINATE-THREAD] Terminate this 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 >> 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 >>> 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 at common-lisp.net >>>> http://common-lisp.net/mailman/listinfo/cl-gd-devel >>>> >>> >>> _______________________________________________ >>> cl-gd-devel site list >>> cl-gd-devel at common-lisp.net >>> http://common-lisp.net/mailman/listinfo/cl-gd-devel >> >> >> -- >> >> _______________________________________________ >> cl-gd-devel site list >> cl-gd-devel at common-lisp.net >> http://common-lisp.net/mailman/listinfo/cl-gd-devel > > _______________________________________________ > cl-gd-devel site list > cl-gd-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/cl-gd-devel --