The problems for cross-compiling Kaffe
yewang at eng.auburn.edu
yewang at eng.auburn.edu
Thu Apr 19 06:03:29 PDT 2001
1)There is an error is config.log:
configure:6008: checking whether the C++ compiler (/usr/bin/mipsel-linux-c++ )
works
configure:6024: /usr/bin/mipsel-linux-c++ -o conftest -I/usr/local/include
conftest.C -Lnative,io,awt 1>&5
/usr/mipsel-linux/bin/ld: cannot find -lstdc++
configure: failed program was:
#line 6019 "configure"
#include "confdefs.h"
int main(){return(0);}
configure:6050: checking whether the C++ compiler (/usr/bin/mipsel-linux-c++ )
is a cross-compiler
2) when I tried to cross-compile:
make[3]: Entering directory `/root/ClioLinux/kaffe/libraries/clib/native'
source='ByteToCharDefault.c' object='ByteToCharDefault.lo' libtool=yes \
depfile='.deps/ByteToCharDefault.Plo' tmpdepfile='.deps/ByteToCharDefault.TPlo'
\
depmode=gcc /bin/sh ../../../depcomp \
/bin/sh ../../../libtool --mode=compile /usr/bin/mipsel-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include -DKVER='"1.0.6"'
-I/root/ClioLinux/kaffe/./kaffe/kaffevm
-I/root/ClioLinux/kaffe/./kaffe/kaffevm/systems/unix-jthreads -I../../../config
-I../../../include -I/usr/local/include -g -O2 -fno-omit-frame-pointer -c -o
ByteToCharDefault.lo ByteToCharDefault.c
/usr/bin/mipsel-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../../config
-I../../../include -DKVER=\"1.0.6\" -I/root/ClioLinux/kaffe/./kaffe/kaffevm
-I/root/ClioLinux/kaffe/./kaffe/kaffevm/systems/unix-jthreads -I../../../config
-I../../../include -I/usr/local/include -g -O2 -fno-omit-frame-pointer -c
ByteToCharDefault.c -Wp,-MD,.deps/ByteToCharDefault.TPlo -o ByteToCharDefault.o
In file included from ../../../include/jni.h:18,
from ../../../include/kaffe_io_ByteToCharDefault.h:2,
from ByteToCharDefault.c:17:
../../../include/jtypes.h:36: #error "sizeof(int) or sizeof(long) must be 4"
../../../include/jtypes.h:46: #error "sizeof(long long) or sizeof(__int64) must
be 8"
make[3]: *** [ByteToCharDefault.lo] Error 1
make[3]: Leaving directory `/root/ClioLinux/kaffe/libraries/clib/native'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/ClioLinux/kaffe/libraries/clib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ClioLinux/kaffe/libraries'
Quoting Alexandre Oliva <oliva at lsd.ic.unicamp.br>:
I remember someone asked this question before, but I do not konw how to solve
this problem. I am working on cross-compile the kaffe on Clio 1050(Mipsel) with
linux-VR.
Thanks!
Ye
------------------------------------------------
Hi,have a look at my homepage! :-)
http://www.auburn.edu/~wangye1
OK, I know it is not a best one, but I will make it better and better....
More information about the kaffe
mailing list