[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://pogo.kaffe.org/pipermail/kaffe/attachments/20030109/db530ce2/java_util_zip_classes-0002.bin
-------------- next part --------------
PASS: HelloWorldApp.class.save
PASS: HelloWorldApp.java
PASS: TestIntLong.java
PASS: TestFloatDouble.java
PASS: DoubleCvt.java
PASS: DoubleNeg.java
PASS: DoubleConst.java
PASS: DoublePrint.java
PASS: DoubleComp.java
PASS: ModuloTest.java
PASS: LongNeg.java
PASS: FPUStack.java
PASS: divtest.java
PASS: Str.java
PASS: Str2.java
PASS: InternHog.java
PASS: IndexTest.java
PASS: StackDump.java
PASS: CatchLimits.class.save
PASS: tname.java
PASS: ttest.java
PASS: ThreadInterrupt.java
PASS: ThreadState.java
PASS: UncaughtException.java
PASS: IllegalWait.java
PASS: Preempt.java
PASS: TestSerializable.java
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)
FAIL: TestSerializable2.java
PASS: SerializationCompatibility.java
PASS: SerialPersistentFields.java
PASS: TestSerialVersions.java
PASS: TestSerialPersistent.java
PASS: TestSerialFields.java
PASS: TestObjectStreamField.java
PASS: ReflectInterfaces.java
PASS: InnerTest.java
PASS: SerialUID.java
PASS: TestCasts.java
PASS: Alias.java
PASS: NullPointerTest.java
PASS: NullInvoke.java
PASS: TableSwitch.java
PASS: LostFrame.java
PASS: ConstructorTest.java
PASS: burford.java
PASS: IllegalInterface.java
PASS: GetInterfaces.java
PASS: IntfTest.java
PASS: SignedShort.java
PASS: CharCvt.java
PASS: BadFloatTest.java
PASS: ProcessTest.java
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)
FAIL: UDPTest.java
PASS: SoTimeout.java
PASS: wc.java
PASS: FileTest.java
PASS: FileChecks.java
PASS: finalexc.java
PASS: finaltest.java
PASS: finaltest2.java
PASS: forNameTest.java
PASS: LoaderTest.java
PASS: ArrayForName.java
PASS: KaffeVerifyBug.java
PASS: Schtum.java
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)
FAIL: Reflect.java
PASS: MethodBug.java
PASS: Bean.java
PASS: SortTest.java
PASS: HashTest.java
PASS: MapTest.java
PASS: URLTest.java
PASS: PropertiesTest.java
PASS: ReaderTest.java
PASS: CharArrayReaderTest.java
PASS: LineNumberReaderTest.java
PASS: BufferedReaderTest.java
PASS: ReaderReadVoidTest.java
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)
FAIL: PipeTest.java
PASS: GetField.java
PASS: LostTrampolineFrame.java
PASS: ReflectInvoke.java
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)
FAIL: InvTarExcTest.java
PASS: SystemLoaderTest.java
PASS: NoClassDefTest.java
PASS: CLTest.java
PASS: CLTestConc.java
PASS: CLTestJLock.java
PASS: CLTestLie.java
PASS: CLTestFindLoaded.java
PASS: ClassDeadLock.java
PASS: ExceptionTest.java
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)
FAIL: ExceptionTestClassLoader.java
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)
FAIL: ExceptionTestClassLoader2.java
PASS: TestClassRef.java
PASS: ClassGC.java
PASS: GCTest.java
PASS: ThreadLocalTest.java
PASS: BeanBug.java
PASS: BitSetTest.java
PASS: ExceptionInInitializerTest.java
PASS: InitTest.java
PASS: ProcessClassTest.java
PASS: ProcessClassInst.java
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)
FAIL: ProcessClassStop.java
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)
FAIL: FindSystemClass.java
PASS: ProcessClassLockTest.java
PASS: DoubleBug.java
PASS: TestUnlock.java
PASS: MarkResetTest.java
PASS: HashtableTest1.java
PASS: ReflectMultiArray.java
PASS: ExecTest.java
PASS: CatchDeath.java
PASS: ThreadStop.java
PASS: DeadThread.java
PASS: tthrd1.java
PASS: DosTimeVerify.java
PASS: ZipVerify.java
PASS: ZipTest.java
PASS: TruncatedClass.java
PASS: SoInterrupt.java
PASS: sysdepCallMethod.java
=====================
9 of 123 tests failed
=====================


More information about the kaffe mailing list