[kaffe] --with-libffi SH4-linux sysdepCallMethod.h bug

takahiro tokui t_tokui at kyototechnica.co.jp
Wed Apr 13 21:16:27 PDT 2005


Hi

I'm tring to port kaffe-1.1.5 to SH4-linux.
# ./configure --host=sh4-linux --with-libffi --without-classpath-gtk-awt
configure ok

But make error occur.

if not use --with-libffi make success.

It seems sysdepCallMethod.h bug for me , but I can not solve.
Is that any idea ?

regards
Takahiro Tokui


error below:

 sh4-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include/kaffe -I../../../kaffe/kaffevm/systems/unix-p
threads -I../../../kaffe/kaffevm/jni -I.. -I./.. -DINTERPRETER -I../../../include -I/home/tokui/kaffe/tete/./kaffe/kaffev
m -I/home/tokui/kaffe/tete/./kaffe/kaffevm/intrp -I/home/tokui/kaffe/tete/./kaffe/kaffevm/systems/unix-pthreads -I../../.
./replace -I../../../binreloc -I../../../config -I../../../include -DKAFFE_VMDEBUG -D_REENTRANT -g -pthread -DENABLE_BINR
ELOC -MT methodcalls.lo -MD -MP -MF .deps/methodcalls.Tpo -c methodcalls.c  -fPIC -DPIC -o .libs/methodcalls.o
In file included from ../../../config/sh/linux/md.h:19,
                 from ../../../config/md.h:1,
                 from ../locks.h:18,
                 from methodcalls.c:21:
../../../config/sh/sysdepCallMethod.h:20: syntax error before "do"
../../../config/sh/sysdepCallMethod.h:20: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:20: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:20: syntax error before "for"
../../../config/sh/sysdepCallMethod.h:20: variable-size type declared outside of any function
../../../config/sh/sysdepCallMethod.h:20: variable-sized object may not be initialized
../../../config/sh/sysdepCallMethod.h:20: conflicting types for `argvals'
../../../config/sh/sysdepCallMethod.h:20: previous declaration of `argvals'
../../../config/sh/sysdepCallMethod.h:20: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:20: `i' undeclared here (not in a function)
../../../config/sh/sysdepCallMethod.h:20: warning: data definition has no type or storage class
../../../config/sh/sysdepCallMethod.h:20: syntax error before '++' token
../../../config/sh/sysdepCallMethod.h:20: variable-size type declared outside of any function
../../../config/sh/sysdepCallMethod.h:20: variable-sized object may not be initialized
../../../config/sh/sysdepCallMethod.h:20: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:20: `i' undeclared here (not in a function)
../../../config/sh/sysdepCallMethod.h:20: warning: data definition has no type or storage class
../../../config/sh/sysdepCallMethod.h:20: syntax error before '++' token
../../../config/sh/sysdepCallMethod.h:20: conflicting types for `rtype'
../../../config/sh/sysdepCallMethod.h:20: previous declaration of `rtype'
../../../config/sh/sysdepCallMethod.h:20: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:20: warning: data definition has no type or storage class
../../../config/sh/sysdepCallMethod.h:20: syntax error before "if"
../../../config/sh/sysdepCallMethod.h:20: warning: empty declaration
../../../config/sh/sysdepCallMethod.h:22: syntax error before "do"
../../../config/sh/sysdepCallMethod.h:22: conflicting types for `rtype'
../../../config/sh/sysdepCallMethod.h:20: previous declaration of `rtype'
../../../config/sh/sysdepCallMethod.h:22: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:22: conflicting types for `argtypes'
../../../config/sh/sysdepCallMethod.h:20: previous declaration of `argtypes'
../../../config/sh/sysdepCallMethod.h:22: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:22: conflicting types for `argvals'
../../../config/sh/sysdepCallMethod.h:20: previous declaration of `argvals'
../../../config/sh/sysdepCallMethod.h:22: redefinition of `fargs'
../../../config/sh/sysdepCallMethod.h:20: `fargs' previously defined here
../../../config/sh/sysdepCallMethod.h:22: syntax error before "for"
../../../config/sh/sysdepCallMethod.h:22: variable-size type declared outside of any function
../../../config/sh/sysdepCallMethod.h:22: variable-sized object may not be initialized
../../../config/sh/sysdepCallMethod.h:22: conflicting types for `argvals'
../../../config/sh/sysdepCallMethod.h:22: previous declaration of `argvals'
../../../config/sh/sysdepCallMethod.h:22: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:22: `i' undeclared here (not in a function)
../../../config/sh/sysdepCallMethod.h:22: warning: data definition has no type or storage class
../../../config/sh/sysdepCallMethod.h:22: syntax error before '++' token
../../../config/sh/sysdepCallMethod.h:22: variable-size type declared outside of any function
../../../config/sh/sysdepCallMethod.h:22: variable-sized object may not be initialized
../../../config/sh/sysdepCallMethod.h:22: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:22: `i' undeclared here (not in a function)
../../../config/sh/sysdepCallMethod.h:22: warning: data definition has no type or storage class
../../../config/sh/sysdepCallMethod.h:22: syntax error before '++' token
../../../config/sh/sysdepCallMethod.h:22: conflicting types for `rtype'
../../../config/sh/sysdepCallMethod.h:22: previous declaration of `rtype'
../../../config/sh/sysdepCallMethod.h:22: syntax error before "call"
../../../config/sh/sysdepCallMethod.h:22: warning: data definition has no type or storage class
../../../config/sh/sysdepCallMethod.h:22: syntax error before "if"
../../../config/sh/sysdepCallMethod.h:27: warning: call-clobbered register used for global register variable
../../../config/sh/sysdepCallMethod.h:28: warning: call-clobbered register used for global register variable
../../../config/sh/sysdepCallMethod.h:29: warning: call-clobbered register used for global register variable
../../../config/sh/sysdepCallMethod.h:30: syntax error before "default"
../../../config/sh/sysdepCallMethod.h:34: syntax error before "if"
methodcalls.c: In function `engine_callMethod':
methodcalls.c:100: warning: passing arg 2 of `setMethodCodeStart' from incompatible pointer type
methodcalls.c: At top level:
../../../config/sh/sysdepCallMethod.h:22: storage size of `argtypes' isn't known
make[2]: *** [methodcalls.lo] error 1
make[2]: out directory `/home/tokui/kaffe/tete/kaffe/kaffevm/intrp'
make[1]: *** [all-recursive] error 1
make[1]: out directory `/home/tokui/kaffe/tete/kaffe/kaffevm'
make: *** [all-recursive] error 1





More information about the kaffe mailing list