[kaffe] Trouble when build kaffe for SH4

金盛督昌 kanamori at fox.omron.co.jp
Mon Nov 8 22:34:25 PST 2004


Hi.

I tried to build kaffe-1.1.4(downloaded "tar.gz" from toppage) 
for SH4 CPU board(Not Solution Engine).

To closs-compile kaffe for SH4 on x86-RedHat Linux 8.0 , I set 
the conpile-environment like this.

 for host(x86-linux):
	linux-sh-2.4.22-SH2002-031201.tar.bz2
	binutils-sh-linux-2.15-1.i386.rpm
	libgcj-sh-linux-3.2.3-3.i386.rpm
	gcc-sh-linux-3.2.3-3.i386.rpm
	glibc-sh-linux-2.3.3-27.6.noarch.rpm
	glibc-sh4-linux-2.3.3-27.6.noarch.rpm
    gmp-4.0.1-3.sh4.rpm (using rpm2cpio)
 
 for target(sh4-linux):
	glibc-2.3.3-27.6.sh4.rpm
	gmp-4.0.1-3.sh4.rpm


 Option of configure
	ac_cv_c_char_unsigned=no ac_cv_path_KAFFEH=/home/tokui/kaffeh \
	am_cv_CC_dependencies_compiler_type=none 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-threads=unix-jthreads --without-x --disable-sound --with-libffi \

And I got 2 Trouble.

1.When I call new class (ex. JDBC, JacORB, and so on ) with 
setting CLASSPATH "export CLASSPATH=/foo", this error message 
come out.
-----
java.lang.ClassFormatError: truncated class
   <<No stacktrace available>>
-----

2.When I use "javac" , this error message come out.
-----
java.lang.ExceptionInInitializerError
   at at.dms.kjc.Main.parseArguments (Main.java:244)
   at at.dms.kjc.Main.run (Main.java:113)
   at at.dms.kjc.Main.compile (Main.java:69)
   at at.dms.kjc.Main.main (Main.java:60)
Caused by: java.util.MissingResourceException: BaseName: gnu/getopt/MessagesBundle Locale: EN_US ClassLoader : kaffe.lang.PrimordialClassLoader at 5395a0    ResourceBundle  gnu/getopt/MessagesBundle
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:60)
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:36)
   at gnu.getopt.LongOpt.Block$ (LongOpt.java:104)
   at gnu.getopt.LongOpt.<init> (LongOpt.java:124)
   at at.dms.kjc.KjcOptions.<clinit> (KjcOptions.java:136)
   at at.dms.kjc.Main.parseArguments (Main.java:244)
   ...3 more
java.util.MissingResourceException: BaseName: gnu/getopt/MessagesBundle Locale: EN_US ClassLoader : kaffe.lang.PrimordialC
lassLoader at 5395a0       ResourceBundle  gnu/getopt/MessagesBundle
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:60)
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:36)
   at gnu.getopt.LongOpt.Block$ (LongOpt.java:104)
   at gnu.getopt.LongOpt.<init> (LongOpt.java:124)
   at at.dms.kjc.KjcOptions.<clinit> (KjcOptions.java:136)
   at at.dms.kjc.Main.parseArguments (Main.java:244)
   at at.dms.kjc.Main.run (Main.java:113)
   at at.dms.kjc.Main.compile (Main.java:69)
   at at.dms.kjc.Main.main (Main.java:60)
-----

Could anyone give me a suggestion ?

Best regards.

Yoshimasa Kanamori.





More information about the kaffe mailing list