From gwking at metabang.com Wed May 24 01:10:40 2006 From: gwking at metabang.com (Gary King) Date: Tue, 23 May 2006 21:10:40 -0400 Subject: [cl-containers-devel] Re: CL-Containers error on ECL In-Reply-To: References: Message-ID: this is odd. I'll add it to my list. Can ECL run on a PowerPC mac? On May 23, 2006, at 5:51 PM, Greg Pfeil wrote: > I'm getting an error when I load the current version of CL- > Containers in ECL. However, looking at the code, I don't see a > problem. It seems to be happening in the CONTENTS-AS-HASHTABLE- > MIXIN DEFCLASS form, when the contents accessor is declared. > > > (asdf:oos 'asdf:load-op :cl-containers) > ... > ;;; Compiling /home/pfeil/Lisp/cl-containers/dev/containers.lisp. > ... > ;;; Compiling (CLOS::INSTALL-METHOD 'MAKE-CONTAINER-FOR-CONTENTS ...). > ;;; Warning: The variable OBJECT is not used. > ;;; Compiling (DEFCLASS CONTENTS-AS-HASHTABLE-MIXIN ...). > ;;; Warning: Class KEY-VALUE-ITERATABLE-CONTAINER-MIXIN has been > forward referenced. > There is no method on the generic function CONTENTS that agrees on > qualifiers NIL and specializers (# HASHTABLE-MIXIN>) > Broken at LAMBDA. > METABANG.CL-CONTAINERS>> > > It's a DEFCLASS* macro: > > (DEFCLASS CONTENTS-AS-HASHTABLE-MIXIN (USES-CONTENTS-MIXIN > KEY-VALUE-ITERATABLE- > CONTAINER-MIXIN > FINDABLE-CONTAINER-MIXIN) > ((CONTENTS :ACCESSOR CONTENTS))) > > but the expansion looks fine to me, too: > > (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE) > (PROGN > (PROGN > (DEFCLASS CONTENTS-AS-HASHTABLE-MIXIN (USES-CONTENTS-MIXIN > KEY-VALUE-ITERATABLE- > CONTAINER-MIXIN > FINDABLE-CONTAINER-MIXIN) > ((CONTENTS :ACCESSOR CONTENTS))) > (VALUES 'CONTENTS-AS-HASHTABLE-MIXIN)) > (SETF (METABANG.UTILITIES::DEFCLASS*-SUPERCLASSES 'CONTENTS-AS- > HASHTABLE-MIXIN) > '(USES-CONTENTS-MIXIN KEY-VALUE-ITERATABLE-CONTAINER-MIXIN > FINDABLE-CONTAINER-MIXIN)) > 'CONTENTS-AS-HASHTABLE-MIXIN)) > > If I remove that form, it happens at the next one. However, there > are many DEFCLASS* forms _before_ this point, which all compile > fine, apparently. > -- Gary Warren King metabang.com http://www.metabang.com/ (413) 210 7511 gwking on #lisp (occasionally) From sellout42 at mac.com Wed May 24 02:41:30 2006 From: sellout42 at mac.com (Gregory Martin Pfeil) Date: Tue, 23 May 2006 19:41:30 -0700 Subject: [cl-containers-devel] Re: CL-Containers error on ECL In-Reply-To: References: Message-ID: <0B8C47DE-2404-4025-ABAB-F8129FA997B3@mac.com> On 23 May 2006, at 18:10, Gary King wrote: > this is odd. I'll add it to my list. Can ECL run on a PowerPC mac? It can. However, I encountered the problem on Linux/x86, and I don't get quite as far along when trying it on my Mac: ;;; Loading "/usr/local/asdf-install/site-systems/closer-mop.asd" ; registering # as CLOSER-MOP keyword list is not a proper list Broken at ASDF::PARSE-COMPONENT-FORM. That could be caused by any number of local things, though, and I haven't tried to diagnose it yet. > On May 23, 2006, at 5:51 PM, Greg Pfeil wrote: > >> I'm getting an error when I load the current version of CL- >> Containers in ECL. However, looking at the code, I don't see a >> problem. It seems to be happening in the CONTENTS-AS-HASHTABLE- >> MIXIN DEFCLASS form, when the contents accessor is declared. >> >> > (asdf:oos 'asdf:load-op :cl-containers) >> ... >> ;;; Compiling /home/pfeil/Lisp/cl-containers/dev/containers.lisp. >> ... >> ;;; Compiling (CLOS::INSTALL-METHOD 'MAKE-CONTAINER-FOR- >> CONTENTS ...). >> ;;; Warning: The variable OBJECT is not used. >> ;;; Compiling (DEFCLASS CONTENTS-AS-HASHTABLE-MIXIN ...). >> ;;; Warning: Class KEY-VALUE-ITERATABLE-CONTAINER-MIXIN has been >> forward referenced. >> There is no method on the generic function CONTENTS that agrees on >> qualifiers NIL and specializers (#> HASHTABLE-MIXIN>) >> Broken at LAMBDA. >> METABANG.CL-CONTAINERS>> >> >> It's a DEFCLASS* macro: >> >> (DEFCLASS CONTENTS-AS-HASHTABLE-MIXIN (USES-CONTENTS-MIXIN >> KEY-VALUE-ITERATABLE- >> CONTAINER-MIXIN >> FINDABLE-CONTAINER-MIXIN) >> ((CONTENTS :ACCESSOR CONTENTS))) >> >> but the expansion looks fine to me, too: >> >> (EVAL-WHEN (:COMPILE-TOPLEVEL :LOAD-TOPLEVEL :EXECUTE) >> (PROGN >> (PROGN >> (DEFCLASS CONTENTS-AS-HASHTABLE-MIXIN (USES-CONTENTS-MIXIN >> KEY-VALUE-ITERATABLE- >> CONTAINER-MIXIN >> FINDABLE-CONTAINER- >> MIXIN) >> ((CONTENTS :ACCESSOR CONTENTS))) >> (VALUES 'CONTENTS-AS-HASHTABLE-MIXIN)) >> (SETF (METABANG.UTILITIES::DEFCLASS*-SUPERCLASSES 'CONTENTS-AS- >> HASHTABLE-MIXIN) >> '(USES-CONTENTS-MIXIN KEY-VALUE-ITERATABLE-CONTAINER-MIXIN >> FINDABLE-CONTAINER-MIXIN)) >> 'CONTENTS-AS-HASHTABLE-MIXIN)) >> >> If I remove that form, it happens at the next one. However, there >> are many DEFCLASS* forms _before_ this point, which all compile >> fine, apparently. >> > > > -- > Gary Warren King > metabang.com > http://www.metabang.com/ > (413) 210 7511 > gwking on #lisp (occasionally) > >