another compile problem with kaffe beta3 on solaris

Moses DeJong dejong at cs.umn.edu
Fri Dec 11 13:41:46 PST 1998


Hello.

I am trying to compile kaffe beta3 on a solaris box. First I used
gcc but that did not work. I then attempted to use the sun cc compiler
and I got another error message. Here it is.

mo(/tmp/mo/kaffe-1.0.b3)% make
make[1]: Entering directory `/tmp/mo/kaffe-1.0.b3/config'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/mo/kaffe-1.0.b3/config'
make[1]: Entering directory `/tmp/mo/kaffe-1.0.b3/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/mo/kaffe-1.0.b3/include'
make[1]: Entering directory `/tmp/mo/kaffe-1.0.b3/libraries'
make[2]: Entering directory `/tmp/mo/kaffe-1.0.b3/libraries/clib'
make[3]: Entering directory `/tmp/mo/kaffe-1.0.b3/libraries/clib/native'
cc -I. -I../../../include -I./../../../include -I../../../config -I./../../../config -I/usr/local/include -g -DUSE_SPARC_PROF_C   -c -KPIC ClassLoader.c -o ClassLoader.o
"../../../include/Arrays.h", line 21: zero or negative subscript
"../../../include/Arrays.h", line 27: zero or negative subscript
"../../../include/Arrays.h", line 28: zero or negative subscript
"../../../include/Arrays.h", line 29: zero or negative subscript
"../../../include/Arrays.h", line 30: zero or negative subscript
"../../../include/Arrays.h", line 31: zero or negative subscript
"../../../include/Arrays.h", line 32: zero or negative subscript
"../../../include/Arrays.h", line 33: zero or negative subscript
"../../../include/Arrays.h", line 34: zero or negative subscript
"../../../include/Arrays.h", line 35: zero or negative subscript
"../../../include/Arrays.h", line 36: zero or negative subscript
"ClassLoader.c", line 52: warning: assignment type mismatch:
        pointer to uchar "=" pointer to char
"ClassLoader.c", line 73: warning: argument #1 is incompatible with prototype:
        prototype: pointer to uchar : "./../../../kaffe/kaffevm/support.h", line 107
        argument : pointer to char
cc: acomp failed for ClassLoader.c
make[3]: *** [ClassLoader.o] Error 2
make[3]: Leaving directory `/tmp/mo/kaffe-1.0.b3/libraries/clib/native'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/tmp/mo/kaffe-1.0.b3/libraries/clib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/mo/kaffe-1.0.b3/libraries'
make: *** [all] Error 1



It is complaining about this kind of definition

#define ARRAY_FIELDS \
        unsigned int            length; \
        double                  align[0]

typedef struct { Hjava_lang_Object base; ARRAY_FIELDS; struct { jbyte body[1]; } data[1]; } HAr
rayOfBoolean;


Why would there be a double array of length zero? Can I change this to align[1]?
I think that will let it compile but I do not know if it will still work.

Any ideas.

Mo DeJong
dejong at cs.umn.edu
gimme multimedia group



More information about the kaffe mailing list