swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Install problem on fc3


From: Scott Christley
Subject: Re: [Swarm-Support] Install problem on fc3
Date: Sat, 20 Nov 2004 13:04:52 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040924

Jim,

It could be one of two things; either the compiler you have is bad, or possibly it is okay but is a newer version with more strict type checking. However I think the real problem is not that warning message about setClass, it is the error that happens later.

InputStream.m: At top level:
InputStream.m:428: internal compiler error: in encode_type, at
objc/objc-act.c:7393


Anyways, what you can try is to change the definition in defobj.h to be identical to the one in collections.h; however, I'm skeptical of the compiler if its producing internal errors.

cheers
Scott

Jim Robison-Cox wrote:

Hi, I am trying to install swarm 2.1.150.20040413  on fedora core 3,
and have run into a problem while make is performing:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../libobjc -I../..
-I../../libobjc -I. -I.. -I./.. -I./../defobj -I./../misc
-I./../objectbase -I./../random -D_GNU_SOURCE -DBUILDING_SWARM -g -O2
-fgnu-runtime -fno-strict-aliasing -Wall -Wno-import -Wno-protocol
-Wno-long-long -Wno-unknown-pragmas -c InputStream.m -MT InputStream.lo
-MD -MP -MF .deps/InputStream.TPlo  -fPIC -DPIC -o .libs/InputStream.o

ERROR message:
InputStream.m: In function `-[InputStream(c) _getExpr]':
InputStream.m:168: warning: multiple methods named `-setClass:' found
./../defobj/defobj.h:589: warning: using `-setClass:aClass'
./collections.h:1103: warning: also found `-setClass:(Class)class'
InputStream.m: At top level:
InputStream.m:428: internal compiler error: in encode_type, at
objc/objc-act.c:7393
Sure enough in collections.h there is a protocol definition which includes
a setClass method

Line 1093
@protocol ArchiverValue <Create, Drop, RETURNABLE>
CREATING
- setDouble: (double)val;
- setLongDouble: (long double)val;
- setFloat: (float)val;
- setLongLong: (long long)val;
- setChar: (char)val;
- setBoolean: (BOOL)val;
- setClass: (Class)class;
- setNil;

AND in defobj.h there is another in the CreatedClass protocol:

Line 592
@protocol CreatedClass <Create, DefinedClass>
CREATING
- setName: (const char *)name;
- setClass: aClass;
- setSuperclass: aClass;
- setDefiningClass: aClass;
- at: (SEL)aSel addMethod: (IMP)aMethod;
- lispInCreate: expr;
- hdf5InCreate: hdf5Obj;
- (void)lispOutShallow: stream;
- (void)hdf5OutShallow: hdf5Obj;
- (void)updateArchiver: archiver;
USING
- getDefiningClass;
@end

BUT why should it complain about two protocols sharing a method?
Is the call in InputStream.m not clear? :

Line 167:
 value = [[[ArchiverValue createBegin: aZone]
                    setClass: objc_lookup_class ([newObj getC])]
                   createEnd];

Is it confusing ArchiverValue with CreatedClass?

Any advice would be appreciated.
Jim Robison-Cox
Montana State University
_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support




reply via email to

[Prev in Thread] Current Thread [Next in Thread]