Kiyo Inaba <[EMAIL PROTECTED]> wrote: Hi,Kiyo
Since I caught cold and had fallen asleep yesterday, I was not able to do a reply.Sorry. > You said, > >We tried to build kaffe-1.1.4 for SH4/linux,and It seems to > >have succeeded in build. > > config.sub, (and additionally fix problem in config/superh/linux/md.h), I got > kaffe-bin compiled. But, by using this kaffe-bin, regression tests failed as > error compiling: > java.lang.ClassNotFoundException: at.dms.kjc.Main > at kaffe.lang.AppClassLoader.findClass (AppClassLoader.java:296) > at java.lang.ClassLoader.loadClass (ClassLoader.java:142) > FAIL: HelloWorldApp.java > > I am in doubt that this error should be CPU specific or build-environment > specific. Now you said to fix md.h and config.sub. Did you already patch to common.h? I looked at the similar error when compiled with javac. It was avoidable by applying a patch to common.h then. that patch as follows (thanks for [EMAIL PROTECTED]): Index: kaffe/config/superh/common.h diff -u kaffe/config/superh/common.h:1.2 kaffe/config/superh/common.h:1.3 --- kaffe/config/superh/common.h:1.2 Sun Dec 14 16:31:39 2003 +++ kaffe/config/superh/common.h Tue Apr 6 17:12:22 2004 @@ -15,6 +15,9 @@ #ifndef __superh_common_h #define __superh_common_h +/* The SuperH never aligns to more than a 4 byte boundary. */ +#define ALIGNMENT_OF_SIZE(S) ((S) < 4 ? (S) : 4) + #include <stddef.h> > Could you please post your configure line with (if exists) your mod to the > source code? > Or, noone else can trace your effort, I believe. > Our configure line is as below: ac_cv_c_char_unsigned=no CC=sh4-linux-gcc RANLIB=sh4-linux-ranlib NM=sh4-linux-nm STRIP=sh4-linux-strip AR=sh4-linux-ar ./configure --build=i686-linux --host=superh-linux --with-staticbin --with-staticlib --with-staticvm --without-x --disable-sound --with-libffi I think your configure line haven't problem. So if you already fix common.h ,I have no idea. regards Takahiro tokui _______________________________________________ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
