<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Kaffe 1.1.6 - early crash on MIPS architecture</TITLE>
</HEAD>
<BODY >
<DIV>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Dear All,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I am new to running kaffe JVM on embedded system (linux 2.6 / MIPS).</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I configured the following:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">KAFFE_ENGINE=intrp</FONT>
<BR><FONT SIZE=2 FACE="Arial">KAFFE_THREADS=unix-jthreads</FONT>
<BR><FONT SIZE=2 FACE="Arial">KAFFE_GC=kaffe-gc</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I compiled kaffe rel. 1.1.6 but encountered blocking issues:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">1. The build fails in file pkg/kaffe/config/mips/sysdepCallMethod.h cause to unexpected definition of _MIPS_SIM.</FONT>
<BR><FONT SIZE=2 FACE="Arial"> This fault statement is executed:</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">#error "Calling convention not specified"</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> I got a successfull compilation by commentig out the #error directive and including the o32-sysdepCallMethod.h.</FONT>
<BR><FONT SIZE=2 FACE="Arial"> But please help about a proper solution for this.</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">2. running kaffe bin command on a test "Hello World" class always terminates with generic diagnostic like:</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">Internal error: caught an unexpected exception.</FONT>
<BR> <FONT SIZE=2 FACE="Arial">Please check your CLASSPATH and your installation.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> After inspecting the C code, I see that the problem is in the function initialiseSecurity() (kaffevm/classMethod.c).</FONT></P>
<P><FONT SIZE=2 FACE="Arial"> Here is created a java.security.Permissions object and an attempt is made to call the Java add() method on it</FONT>
</P>
<P> <FONT SIZE=2 FACE="Arial">do_execute_java_method(NULL, permissions, "add", "L(java/security/Permission;)V", NULL, 0, allPermission);</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> but this aways fails by SIGSEGV.</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">Could someone please advise about getting a working kaffe JVM on MIPS ?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks to all</FONT>
<BR><FONT SIZE=2 FACE="Arial">Kind Regards</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Fabio C.</FONT>
</P>
<BR>
</DIV><BR><BR>
<DIV>
</DIV>
<DIV>
</DIV>
<DIV>
<DIV>
<DIV>
<FONT FACE="Verdana" SIZE="2">========================================================<BR>CONFIDENTIALITY NOTICE<BR><BR>This message and its attachments (if any) may contain confidential,<BR>proprietary or legally privileged information and it is intended only for<BR>the use of the addressee named above. No confidentiality or privilege<BR>is waived or lost by any mistransmission.<BR><BR>If you are not the intended recipient of this message you are hereby<BR>notified that you must not use, disseminate, copy it in any form or take<BR>any action in reliance on it. If you have received this message in error,<BR>please, delete it (and any copies of it) and kindly inform the sender, of this<BR>e-mail, by replying or go to www.pirelli.com on "contact us".<BR>========================================================</FONT><BR><BR></DIV>
</DIV>
</DIV></BODY></HTML>