<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Dear Kaffe experts.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Because it is my first time to post message in this mailing
list,</FONT></DIV>
<DIV><FONT size=2>let me introduce a little bit.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Hello, my name is Seongbeom Kim, and I'm working for a digital
television project</FONT></DIV>
<DIV><FONT size=2>that requires Java virtual machine. I've chosen Kaffe for our
virtual machine </FONT></DIV>
<DIV><FONT size=2>because it is one of few VM solutions for mips-linux
platform.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>The specification of our system is...</FONT></DIV>
<DIV><FONT
size=2>-------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT size=2>Kaffe
version: Kaffe
1.0.7</FONT></DIV>
<DIV><FONT size=2>Reference board:
TeraLogic Cougar-L board</FONT></DIV>
<DIV><FONT size=2>CPU:
MIPS</FONT></DIV>
<DIV><FONT
size=2>OS: Linux
(kernel 2.4.17 monta vista linux RedHat 7.1)</FONT></DIV>
<DIV><FONT
size=2>AWT: QTE
(QTE 3.0.3)</FONT></DIV>
<DIV><FONT size=2>cross compiling
with: mips-linux-gcc
(egcs-2.91.66)</FONT></DIV>
<DIV><FONT size=2>configure
option: --target=mips-pc-linux-gnu
--host=mips-pc-linux-gnu --build=mips-pc-linux-gnu</FONT></DIV>
<DIV><FONT size=2>
--with-engine=intrp
--with-threads=unix-pthreads</FONT></DIV>
<DIV><FONT size=2>
--with-includes=/usr/mips-linux/include
--with-libraries=/usr/mips-linux/lib</FONT></DIV>
<DIV><FONT size=2>
<DIV><FONT
size=2>-------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV> </DIV>
<DIV>What I have done with this development is...</DIV>
<DIV>1. Test build on i386-linux-QTE platform: it had no problem at all with
virtual frame buffer feature in embedded QT.</DIV>
<DIV>2. QTE test on mips-linux: I verified it with test programs.</DIV>
<DIV>3. Cross compiling for mips-linux-qte platform: build done, test compile
& running for simple text based application done successfully.</DIV>
<DIV> </DIV>
<DIV>The problems are...</DIV>
<DIV>1. When I try to running simple AWT example, the main thread hangs
in Toolkit.createNative() and does not proceed.</DIV>
<DIV>The code in Toolkit.java>>></DIV>
<DIV> </DIV>
<DIV>static void createNative ( Component c ) {<BR> WMEvent e = null;</DIV>
<DIV> </DIV>
<DIV> synchronized ( Toolkit.class ) {<BR> // even if this could
be done in a central location, we defer this<BR> // as much as
possible because it might involve polling (for non-threaded<BR> //
AWTs), slowing down the startup time<BR> if ( eventThread == null )
{<BR> startDispatch();<BR> }<BR> }</DIV>
<DIV> </DIV>
<DIV>System.out.println( "startDispatch() done..." ); <<----------
does not print this message (hangs in startDispatch())</DIV>
<DIV> </DIV>
<DIV> // do we need some kind of a context switch ?<BR> ...</DIV>
<DIV>}<BR></FONT></DIV></DIV>
<DIV><FONT size=2>2. After some modifications in Java codes such as inserting
debugging messages, there happens strange errors.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>[root@target /root]# javac -v HelloWorld.java<BR>[ start
compilation in verbose mode ]<BR>java.lang.VerifyError: In class
java/io/PushbackReader$PushbackBuffer in method <init> with signature
(Ljava/io/PushbackReader;Ljava/io/PushbackReader$1;I)V at pc 5: sp 7 not in
range [4, 6]<BR> at
java.io.PushbackReader.<init>(PushbackReader.java:27)<BR>
at
java.io.PushbackReader.<init>(PushbackReader.java:32)<BR>
at
at.dms.compiler.tools.antlr.extra.InputBuffer.<init>(InputBuffer.java:69)<BR>
at
at.dms.compiler.tools.antlr.extra.InputBuffer.<init>(InputBuffer.java:82)<BR>
at
at.dms.kjc.Main.parseFile(Main.java:325)<BR>
at
at.dms.kjc.Main.run(Main.java:147)<BR>
at
at.dms.kjc.Main.compile(Main.java:69)<BR>
at at.dms.kjc.Main.main(Main.java:60)<BR></FONT></DIV>
<DIV><FONT size=2>This error is only solved when I remove entire Kaffe tree,
re-install source, re-configure and re-make it.</FONT></DIV>
<DIV><FONT size=2>'make distclean' cannot solve this problem.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Does anyone know about these problems?</FONT></DIV>
<DIV><FONT size=2>Please help me, I'm in a really big trouble. :(</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>-----------------------------------<BR>Seong-beom
Kim<BR>Research Engineer<BR>Marusys, Co. Ltd.<BR>Seoul, Korea<BR>+82-2-3445-3999
(117)</FONT></DIV></BODY></HTML>