[kaffe] Problems of Kaffe on mips-linux platform

Kim, Seong Beom sbkim at mail.marusys.com
Thu Jan 9 01:14:01 PST 2003


Hi Dalibor

Thank you for your help, I'm learning more and more about Kaffe now. ;-)
To follow your sugesstion, I downloaded KJC from http://www.dms.at/kopi site.
Unlike jikes, the kjc is only composed of java class files.
Because '--with-jikes' seems require executable, I don't know how to configure
'--with-jikes=/path-to/a-working-version-of/kjc ' option.
So... what I did is replacing $KAFFE_HOME/libraries/javalib/kjc.jar with newer
version,
configuring with the following options (no jikes specified here), making, and
finally doing 'make check'.

### configure option begins here
CC=mips-linux-gcc CFLAGS="-mcpu=r5000" \
CXX=mips-linux-c++ CXXFLAGS="-mcpu=r5000"  \
KAFFEH=/usr/local/kaffe/bin/kaffeh \
ac_cv_c_char_unsigned=no \
ac_cv_long_division_broken=yes \
ac_cv_long_modulo_broken=yes \
ac_cv_long_long_modulo_broken=no  \
ac_cv_strtod_m0_broken=no \
ac_cv_header_jpeglib_h=yes \
ac_cv_lib_jpeg_jpeg_read_header=yes \
ac_cv_lib_png_png_create_info_struct=yes \
kaffe_cv_signal_one_shot=no \
lt_cv_dlopen_self=yes lt_cv_dlopen_self_static=no \
~/work/kaffe/configure \
--with-engine=intrp \
--target=mips-pc-linux-gnu --host=mips-pc-linux-gnu --build=mips-pc-linux-gnu \
--with-includes=/usr/mips-linux/include --with-libraries=/usr/mips-linux/lib \
--with-awt=qt --with-qtdir=/home/sbkim/work/mips-qt \
--disable-debug \
--disable-xprofiling \
--disable-xdebugging \
--disable-feedback \
--without-profiling \
--without-stats \
--disable-gcj
### ends here

Unfotunately, regression test failed with the same error messages,
so I send you java.util.zip.* classes and regression test log.
Could you give some advice to this mess?
I doubt some configuration mistakes in cross compiling environment, but I don't
know what to do... :-(

Anyway, I'm making slow progress and I hope my experience will make kaffe more
stable & portable.
Thanks in advance.

Sincerely,
Kim, Seong Beom






----- Original Message -----
From: "Dalibor Topic" <robilad at yahoo.com>
To: "Kim, Seong Beom" <sbkim at mail.marusys.com>; "Kevin D. Kissell"
<kevink at mips.com>
Cc: <kaffe at kaffe.org>
Sent: Saturday, January 04, 2003 7:38 PM
Subject: Re: [kaffe] Problems of Kaffe on mips-linux platform


> Hi Kim,
>
> --- "Kim, Seong Beom" <sbkim at mail.marusys.com> wrote:
>
> > 2. error compiling...
> > Eight tests failed printing the same error messages
> > like,
> >
> > error compiling:
> > java.lang.ClassCastException: can't cast `[C' to
> > `java/util/zip/ZipEntry'
> >         at
> >
> at.dms.classfile.ZipClassDirectory.packageExists(ClassPath.java:388)
> >         at
> >
> at.dms.classfile.ClassPath.packageExists(ClassPath.java:221)
> >         at
> >
> at.dms.kjc.KjcClassReader.packageExists(KjcClassReader.java:110)
> >         at
> >
> at.dms.kjc.JPackageImport.exists(JPackageImport.java:128)
> >         at
> >
> at.dms.kjc.JPackageImport.analyse(JPackageImport.java:108)
> >         at
> >
> at.dms.kjc.JCompilationUnit.checkBody(JCompilationUnit.java:257)
> >         at at.dms.kjc.Main.checkBody(Main.java:409)
> >         at at.dms.kjc.Main.run(Main.java:183)
> >         at at.dms.kjc.Main.compile(Main.java:69)
> >         at at.dms.kjc.Main.main(Main.java:60)
> >
> >
> > What's the matter? Did I make a mistake during
> > configuration?
> > Is the 'Anonymous CVS link' on the kaffe.org site
> > right place to get kaffe source?
> > In case, I attach the whole 'make check' output.
>
> That one looks very strange. Could you recompile the
> class library using kjc 2.1B (i.e. don't specify
> jikes, but
> --with-jikes=/path-to/a-working-version-of/kjc ), and
> see if it still fails?
>
> Could you send me the java.util.zip.*.class files, and
> I'll run them through the bcel verifier. (But please
> don't send the whole rt.jar ;)
>
> best regards,
>
> dalibor topic
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: java_util_zip_classes.tgz
Type: application/x-compressed
Size: 15162 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030109/db530ce2/attachment-0003.bin 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: regression_test_log.txt
Url: http://kaffe.org/pipermail/kaffe/attachments/20030109/db530ce2/attachment-0003.txt 


More information about the kaffe mailing list