1. download ftp://ftp.kaffe.org/pub/kaffe/v1.1.x-development/kaffe-1.1.8.tar.gz。

2. install jiles on fedola 7。
a. download http://nchc.dl.sourceforge.net/sourceforge/jikes/jikes-1.22-1.i586.rpm。
b. add program compat-libstdc++-33-3.2.3-6l.i386,The compat-libstdc++ package contains compatibility standard C++ library from GCC 3.3.4.。
c. rpm -ivh jikes-1.22-1.i586.rpm。

3. install zlib,even if you configure with --disable-zlib-zip。

4. install kaffe on fedola 7。When you cross-compile kaffe, you need to have a native kaffeh compiled for the platform you cross-compile on in order to generate the JNI and KNI header files, which are necesssary to build kaffe。
a. configure --disable-gtk-peer --disable-gconf-peer
b. make
c. make install

5. build kaffe
a. export KAFFEH=/usr/local/kaffe/bin/kaffeh
b.
ac_cv_c_char_unsigned=yes ac_cv_header_zlib_h=yes ac_cv_lib_z_deflate=yes \
CC=arm-elf-gcc CXX=arm-elf-g++ AR=arm-elf-ar RANLIB=arm-elf-ranlib LD=arm-elf-ld STRIP=arm-elf-strip \
CFLAGS="-D__uclinux__" \
LDFLAGS="-L/sigma/libiconv-1.12/lib/.libs -liconv" \
./configure --host=arm-linux --enable-static --disable-shared --disable-sound \
--disable-alsa --disable-dssi --disable-gtk-peer --disable-gconf-peer \
--with-libiconv-prefix=/sigma/libiconv-1.12 \
--with-includes=/sigma/zlib-1.2.3 \
--with-libraries="/sigma/zlib-1.2.3" \
--with-kaffe-nanox-awt \
--with-nanox-include=/sigma/armutils_2.8.0.2/build_arm/microwin/src/include \
--with-nanox-library=/sigma/armutils_2.8.0.2/build_arm/microwin/src/lib
c. error
source='cpnet.c' object='cpnet.lo' libtool=yes \
DEPDIR=.deps depmode=gcc /bin/sh ../../../depcomp \
/bin/sh ../../../libtool --tag=CC --mode=compile arm-elf-gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../native/jni/classpath -I../../../native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Wstrict-prototypes -pedantic -Werror -Wall -W -fno-strict-aliasing -fno-omit-frame-pointer -fsigned-char -g -O2 -c -o cpnet.lo cpnet.c
arm-elf-gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../native/jni/classpath -I../../../native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Wstrict-prototypes -pedantic -Werror -Wall -W -fno-strict-aliasing -fno-omit-frame-pointer -fsigned-char -g -O2 -c cpnet.c -Wp,-MD,.deps/cpnet.TPlo -o cpnet.o
cc1: warnings being treated as errors
In file included from cpnet.c:54:
cpnet.h:102: warning: ANSI does not permit the keyword `inline'
cpnet.h:113: warning: ANSI does not permit the keyword `inline'
cpnet.h:120: warning: ANSI does not permit the keyword `inline'
cpnet.h:132: warning: ANSI does not permit the keyword `inline'
cpnet.h:137: warning: ANSI does not permit the keyword `inline'
cpnet.h:144: warning: ANSI does not permit the keyword `inline'
cpnet.h:151: warning: ANSI does not permit the keyword `inline'
cpnet.h:159: warning: ANSI does not permit the keyword `inline'
cpnet.h:166: warning: ANSI does not permit the keyword `inline'
cpnet.h:173: warning: ANSI does not permit the keyword `inline'
cpnet.h:184: warning: ANSI does not permit the keyword `inline'
cpnet.h:197: warning: ANSI does not permit the keyword `inline'
cpnet.h:204: warning: ANSI does not permit the keyword `inline'
make[5]: *** [cpnet.lo] Error 1
make[5]: Leaving directory `/sigma/kaffe-1.1.8/libraries/javalib/external/classpath/native/jni/native-lib'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/sigma/kaffe-1.1.8/libraries/javalib/external/classpath/native/jni'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/sigma/kaffe-1.1.8/libraries/javalib/external/classpath/native'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sigma/kaffe-1.1.8/libraries/javalib/external/classpath'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sigma/kaffe-1.1.8/libraries/javalib'
make: *** [all-recursive] Error 1
d. 看來要換 compiler 版本,殘念。

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()