<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1561" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi ,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I do cross compile kaffe and run hello world
program on native and it run successfully. Then I do cross compile and test same
program and i got the error .</FONT></DIV>
<DIV> </DIV>
<DIV> compile
Run
Status</DIV>
<DIV>1. X-86
X-86
success</DIV>
<DIV>2.
X-86
MIPS4kec Fail
</DIV>
<DIV>3. MIPS4Kec
MIPS4Kec Fail </DIV>
<DIV>4. MIPS4Kec
X-86 Success</DIV>
<DIV> </DIV>
<DIV>What May be the Reason </DIV>
<DIV> </DIV>
<DIV>Best Regards</DIV>
<DIV> </DIV>
<DIV>Naveen </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></FONT>----- Original Message ----- </DIV></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=naveen.yadav@samsung.com
href="mailto:naveen.yadav@samsung.com">NaveenYadav</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=kaffe@kaffe.org
href="mailto:kaffe@kaffe.org">kaffe@kaffe.org</A> ; <A
title=Sakur.hwa@iasolution.net
href="mailto:Sakur.hwa@iasolution.net">Sakur.hwa@iasolution.net</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, August 17, 2006 5:19
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Kaffe porting on MIPS</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Host side ::</FONT></DIV>
<DIV><FONT face=Arial size=2>[root@localhost bin]# ./kaffe -vmdebug INIT
hello<BR>initCollector()<BR>initCollector()
done<BR>initNativeThreads(0x40000)<BR>Detected stackSize
262144<BR>initNativeThreads(0x40000)
done<BR>utf8ConstInit()<BR>utf8ConstInit()
done<BR>initClasspath()<BR>initClasspath() done, got
/home/naveen/jvm/native/jre/lib/glibj.zip:/home/naveen/jvm/native/lib/tools.jar<BR>initNative()<BR>got
lpath /home/naveen/jvm/native/jre/lib/i386:/home/naveen/jvm/native/lib and
libraryPath
/home/naveen/jvm/native/jre/lib/i386:/home/naveen/jvm/native/lib<BR>trying to
load /home/naveen/jvm/native/jre/lib/i386/libjavalang<BR>initNative()
done<BR>create names and
signatures<BR>done<BR>initBaseClasses()<BR>initTypes()<BR>initTypes()
done<BR>finishTypes()<BR>finishTypes() done<BR>initBaseClasses()
done<BR>initExceptions()<BR>initThreads()<BR>initThreads()
done<BR><STRONG>Hello #--------------->o/p</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2>my config file is ..</FONT></DIV>
<DIV><FONT face=Arial size=2> ./configure
prefix=/home/naveen/jvm/native \<BR> --enable-pure-java-math
--disable-alsa --disable-native-awt --disable-xawt-xi18n --without-x
--disable-gtk-peer --without-awt --disable-sound</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>On Target Side.</FONT></DIV>
<DIV><FONT face=Arial size=2>my configure is</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>CC=mipsel-linux-gcc NM=mipsel-linux-nm
\<BR>AR=mipsel-linux-ar AS=mipsel-linux-as LD=mipsel-linux-ld
KAFFEH=/home/naveen/jvm/kaffe-native/kaffe/kaffeh/kaffeh \<BR>./configure
--host=mipsel-linux --build=i686-linux prefix=/home/naveen/jvm/cross
\<BR> --enable-pure-java-math --disable-alsa --disable-native-awt
--disable-xawt-xi18n --without-x --with-libraries=/usr/tools/mipsel-linux/libs
--with-includes=/usr/tools/mipsel-linux/include --disable-gtk-peer
--without-awt --disable-sound</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and result is ::</FONT></DIV>
<DIV><FONT face=Arial size=2> ./kaffe -vmdebug INIT
hello<BR>initCollector()<BR>initCollector()
done<BR>initNativeThreads(0x10000)<BR>Detected stackSize
1048576<BR>initNativeThreads(0x10000)
done<BR>utf8ConstInit()<BR>utf8ConstInit()
done<BR>initClasspath()<BR>initClasspath() done, got
/home/naveen/jvm/cross/jre/lib/glibj.zip:/home/naveen/jvm/cross/lib/tools.jar<BR>initNative()<BR>got
lpath /home/naveen/jvm/cross/jre/lib/mips:/home/naveen/jvm/cross/lib and
libraryPath /home/naveen/jvm/cross/jre/lib/mipsbtrying to load
/home/naveen/jvm/cross/jre/lib/mips/libjavalang<BR>initNative() done<BR>create
names and
signatures<BR>done<BR> initBaseClasses()<BR>initTypes()<BR>initTypes()
done<BR>finishTypes()<BR>finishTypes() done<BR>check initBaseClasses()
done<BR>In loop0<BR><STRONG>kaffe-bin: exception.c:106: vmExcept_setJNIFrame:
Assertion `fp != (JNIFrameAddress)0' failed.<BR></STRONG>Aborted</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i have done one modification in </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>kaffe-cross/config/mips/common.h</FONT></DIV>
<DIV><FONT face=Arial size=2>//#ifdef _R5900<BR>//#define PS2LINUX<BR>//#undef
HAVE_MIPSII_INSTRUCTIONS<BR>//#endif <BR><STRONG>#ifdef _R3000<BR>#define
PS2LINUX<BR>#undef HAVE_MIPSII_INSTRUCTIONS<BR>#endif<BR>I have added
_R3000</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=Arial size=2></FONT></STRONG> </DIV>
<DIV><STRONG><FONT face=Arial size=2>What may be the
Reason;</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=Arial size=2></FONT></STRONG> </DIV>
<DIV><STRONG><FONT face=Arial size=2>Best Regards</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=Arial size=2>Naveen </FONT></STRONG></DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><STRONG><BR></STRONG></DIV></BLOCKQUOTE></FONT></BODY></HTML>