[kaffe] Problem compiling kaffe 1.1.6

Pierre pierre42d at 9online.fr
Mon Nov 14 16:34:15 PST 2005


Pierre wrote:
> I have now an other problem :
> 
> [...]
> Making all in kaffe/kaffevm
> make[1]: Entering directory `/tmp/kaffe-1.1.6/kaffe/kaffevm'
> Making all in jit3
> make[2]: Entering directory `/tmp/kaffe-1.1.6/kaffe/kaffevm/jit3'
> make  all-am
> make[3]: Entering directory `/tmp/kaffe-1.1.6/kaffe/kaffevm/jit3'
> if /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H 
> -I. -I. -I../../../config -I../../../kaffe/kaffevm/systems/unix-pthreads 
> -I../../../kaffe/kaffevm/jni -I.. -I./.. -DTRANSLATOR -DJIT3 
> -I../../../kaffe/xprof -I../../../kaffe/jvmpi -I../../../include 
> -I/tmp/kaffe-1.1.6/./kaffe/kaffevm 
> -I/tmp/kaffe-1.1.6/./kaffe/kaffevm/jit3 
> -I/tmp/kaffe-1.1.6/./kaffe/kaffevm/systems/unix-pthreads 
> -I../../../replace -I../../../binreloc -I../../../config 
> -I../../../include -I/usr/local/include -I/usr/local/include/libxml2 
> -DNDEBUG -DKAFFE_FEEDBACK -D_REENTRANT  -I/usr/local/include 
> -I/usr/local/include/libxml2 -s -O3 -march=i686 -Wall -W -Wextra 
> -pthread -DENABLE_BINRELOC -MT methodcalls.lo -MD -MP -MF 
> ".deps/methodcalls.Tpo" -c -o methodcalls.lo methodcalls.c; \
> then mv -f ".deps/methodcalls.Tpo" ".deps/methodcalls.Plo"; else rm -f 
> ".deps/methodcalls.Tpo"; exit 1; fi
>  gcc -DHAVE_CONFIG_H -I. -I. -I../../../config 
> -I../../../kaffe/kaffevm/systems/unix-pthreads 
> -I../../../kaffe/kaffevm/jni -I.. -I./.. -DTRANSLATOR -DJIT3 
> -I../../../kaffe/xprof -I../../../kaffe/jvmpi -I../../../include 
> -I/tmp/kaffe-1.1.6/./kaffe/kaffevm 
> -I/tmp/kaffe-1.1.6/./kaffe/kaffevm/jit3 
> -I/tmp/kaffe-1.1.6/./kaffe/kaffevm/systems/unix-pthreads 
> -I../../../replace -I../../../binreloc -I../../../config 
> -I../../../include -I/usr/local/include -I/usr/local/include/libxml2 
> -DNDEBUG -DKAFFE_FEEDBACK -D_REENTRANT -I/usr/local/include 
> -I/usr/local/include/libxml2 -s -O3 -march=i686 -Wall -W -Wextra 
> -pthread -DENABLE_BINRELOC -MT methodcalls.lo -MD -MP -MF 
> .deps/methodcalls.Tpo -c methodcalls.c  -fPIC -DPIC -o .libs/methodcalls.o
> In file included from ../../../config/sysdepCallMethod-ffi.h:15,
>                  from ../jit/methodcalls.c:16,
>                  from methodcalls.c:12:
> /usr/local/include/ffi.h:63:23: ffitarget.h: No such file or directory
> In file included from ../../../config/sysdepCallMethod-ffi.h:15,
>                  from ../jit/methodcalls.c:16,
>                  from methodcalls.c:12:
> /usr/local/include/ffi.h:161: error: parse error before "ffi_abi"
> /usr/local/include/ffi.h:170: error: parse error before '}' token
> /usr/local/include/ffi.h:183: error: parse error before "ffi_sarg"
> /usr/local/include/ffi.h:188: error: parse error before '}' token
> /usr/local/include/ffi.h:190: error: parse error before '*' token
> /usr/local/include/ffi.h:191: error: `ffi_raw_call' declared as function 
> returning a function
> /usr/local/include/ffi.h:192: error: parse error before "void"
> /usr/local/include/ffi.h:195: error: parse error before '*' token
> /usr/local/include/ffi.h:196: error: parse error before '*' token
> /usr/local/include/ffi.h:197: error: parse error before '*' token
> /usr/local/include/ffi.h:203: error: parse error before '*' token
> /usr/local/include/ffi.h:204: error: `ffi_java_raw_call' declared as 
> function returning a function
> /usr/local/include/ffi.h:205: error: parse error before "void"
> /usr/local/include/ffi.h:208: error: parse error before '*' token
> /usr/local/include/ffi.h:209: error: parse error before '*' token
> /usr/local/include/ffi.h:210: error: parse error before '*' token
> /usr/local/include/ffi.h:266: error: parse error before '*' token
> /usr/local/include/ffi.h:272: error: parse error before '*' token
> /usr/local/include/ffi.h:273: error: `ffi_call' declared as function 
> returning a function
> /usr/local/include/ffi.h:274: error: parse error before "void"
> In file included from /usr/include/stdlib.h:390,
>                  from ../../../config/config-std.h:21,
>                  from ../../../include/errors.h:16,
>                  from ../jit/machine.h:13,
>                  from ../jit/methodcalls.c:21,
>                  from methodcalls.c:12:
> /usr/include/sys/types.h:152: error: 'uint' redeclared as different kind 
> of symbol
> /usr/local/include/ffi.h:184: error: previous declaration of 'uint' was 
> here
> In file included from methodcalls.c:12:
> ../jit/methodcalls.c: In function `engine_callMethod':
> ../jit/methodcalls.c:198: error: parse error before "cif"
> ../jit/methodcalls.c:198: error: `cif' undeclared (first use in this 
> function)
> ../jit/methodcalls.c:198: error: (Each undeclared identifier is reported 
> only once
> ../jit/methodcalls.c:198: error: for each function it appears in.)
> ../jit/methodcalls.c:198: error: `FFI_DEFAULT_ABI' undeclared (first use 
> in this function)
> make[3]: *** [methodcalls.lo] Error 1
> make[3]: Leaving directory `/tmp/kaffe-1.1.6/kaffe/kaffevm/jit3'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/tmp/kaffe-1.1.6/kaffe/kaffevm/jit3'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/kaffe-1.1.6/kaffe/kaffevm'
> make: *** [all-recursive] Error 1

One more time I answer to myself :)
This seems to be related to the lack of libffi.
I installed libffi 1.20 and this problem doesn't appear anymore.
A little check about this in the configure would be nice...

Regards,

-- 
Pierre.




More information about the kaffe mailing list