<!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 Kevin.</FONT></DIV>
<DIV><FONT size=2>Thank you for the reply. It helped me a lot. :)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>As you recommended, I got Kaffe source from 'Anonymous CVS'
link on kaffe.org site,</FONT></DIV>
<DIV><FONT size=2>and compiled, tested the source on the i686 host system with
the following configuration.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>./configure --with-engine=intrp --with-awt=qt
--with-qtdir=/home/sbkim/work/qt-3.0.6 --with-jikes --disable-debug</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>The verification involved </FONT></DIV>
<DIV><FONT size=2> 1. make
check</FONT></DIV>
<DIV><FONT size=2> 2. running simple
applet,</FONT></DIV>
<DIV><FONT size=2>and it was free of errors.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>However, the build on mips-linux target has some problems, and
I need your comments.</FONT></DIV>
<DIV><FONT size=2>I cross-compiled the source with the following
configuration.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>CC=mips-linux-gcc CXX=mips-linux-c++ ~/work/kaffe/configure
--with-engine=intrp --target=mips-pc-linux-gnu --host=mips-pc-linux-gnu
--build=mips-pc-linux-gnu --with-includes=/usr/mips-linux/include
--with-libraries=/usr/mips-linux/lib --with-awt=qt
--with-qtdir=/home/sbkim/work/mips-qt --with-jikes --disable-debug</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>It compiled OK, but when I did 'make check' 9 of 123 tests
failed.</FONT></DIV>
<DIV><FONT size=2>There are two type of errors which occurred.</FONT></DIV>
<DIV><FONT size=2><BR></FONT><FONT size=2>1. divtest failed...</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>40000000 1 / 40000000<BR>40000000 1 % 0<BR>80000000 1 /
80000000<BR>80000000 1 % 0<BR>40000000 -1 / c0000000<BR>40000000 -1 %
0<BR>80000000 -1 / java.lang.ArithmeticException<BR>80000000 -1 %
java.lang.ArithmeticException<BR>40000000 2 / 20000000<BR>40000000 2 %
0<BR>80000000 2 / c0000000<BR>80000000 2 % 0<BR>40000000 -2 /
e0000000<BR>40000000 -2 % 0<BR>80000000 -2 / 40000000<BR>80000000 -2 %
0<BR></FONT></DIV>
<DIV><FONT size=2>2. error compiling...</FONT></DIV>
<DIV><FONT size=2>Eight tests failed printing the same error messages
like,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>error compiling:<BR>java.lang.ClassCastException: can't cast
`[C' to `java/util/zip/ZipEntry'<BR>
at
at.dms.classfile.ZipClassDirectory.packageExists(ClassPath.java:388)<BR>
at
at.dms.classfile.ClassPath.packageExists(ClassPath.java:221)<BR>
at
at.dms.kjc.KjcClassReader.packageExists(KjcClassReader.java:110)<BR>
at
at.dms.kjc.JPackageImport.exists(JPackageImport.java:128)<BR>
at
at.dms.kjc.JPackageImport.analyse(JPackageImport.java:108)<BR>
at
at.dms.kjc.JCompilationUnit.checkBody(JCompilationUnit.java:257)<BR>
at
at.dms.kjc.Main.checkBody(Main.java:409)<BR>
at
at.dms.kjc.Main.run(Main.java:183)<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></FONT> </DIV>
<DIV><FONT size=2>What's the matter? Did I make a mistake during
configuration?</FONT></DIV>
<DIV><FONT size=2>Is the 'Anonymous CVS link' on the kaffe.org site right place
to get kaffe source?</FONT></DIV>
<DIV><FONT size=2>In case, I attach the whole 'make check'
output.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks in advance.</FONT></DIV>
<DIV><FONT size=2>Best Regards.</FONT></DIV>
<DIV><FONT size=2>Kim, Seong Beom</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt ±¼¸²">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt ±¼¸²; font-color: black"><B>From:</B> <A
title=kevink@mips.com href="mailto:kevink@mips.com">Kevin D. Kissell</A>
</DIV>
<DIV style="FONT: 10pt ±¼¸²"><B>To:</B> <A title=sbkim@mail.marusys.com
href="mailto:sbkim@mail.marusys.com">Kim, Seong Beom</A> ; <A
title=kaffe@kaffe.org href="mailto:kaffe@kaffe.org">kaffe@kaffe.org</A> </DIV>
<DIV style="FONT: 10pt ±¼¸²"><B>Sent:</B> Monday, December 30, 2002 6:16
PM</DIV>
<DIV style="FONT: 10pt ±¼¸²"><B>Subject:</B> Re: [kaffe] Problems of Kaffe on
mips-linux platform</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>First, an unmodifled Kaffe.1.0.7 release source
tree </FONT></DIV>
<DIV><FONT face=Arial size=2>will not </FONT><FONT face=Arial size=2>give you
a working MIPS version of Kaffe.</FONT></DIV>
<DIV><FONT face=Arial size=2>The necessary patches to the release sources
should be in</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="ftp://ftp.paralogos.com/pub/kaffe/mips/kaffe-1.0.7.patch_kevink_021001">ftp://ftp.paralogos.com/pub/kaffe/mips/kaffe-1.0.7.patch_kevink_021001</A>
</FONT></DIV>
<DIV><FONT face=Arial size=2>The changes were also merged with the
Kaffe.org</FONT></DIV>
<DIV><FONT face=Arial size=2>CVS repository, so if you're working from
development</FONT></DIV>
<DIV><FONT face=Arial size=2>sources, you should have them - along with all
the</FONT></DIV>
<DIV><FONT face=Arial size=2>fun problems that come with working from
development</FONT></DIV>
<DIV><FONT face=Arial size=2>sources.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Assuming you've got the right Kaffe
sources,</FONT></DIV>
<DIV><FONT face=Arial size=2>I see a couple more potential
problems. One is that you</FONT></DIV>
<DIV><FONT face=Arial size=2>are using unix-pthreads instead of the Kaffe
internal</FONT></DIV>
<DIV><FONT face=Arial size=2>"jthread" multithreading scheme. There have
been</FONT></DIV>
<DIV><FONT face=Arial size=2>problems with Linux/UNIX pthreads for MIPS in
many</FONT></DIV>
<DIV><FONT face=Arial size=2>versions of the kernel and gnu libraries, and I
have</FONT></DIV>
<DIV><FONT face=Arial size=2>avoided pthreads in all my MIPS/Linux work,
to</FONT></DIV>
<DIV><FONT face=Arial size=2>avoid confusing the issue. I would
recommend</FONT></DIV>
<DIV><FONT face=Arial size=2>dropping the --with-threads configure option
and</FONT></DIV>
<DIV><FONT face=Arial size=2>letting the build default to
jthreads.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The other potential problem is that most
MIPS/Linux</FONT></DIV>
<DIV><FONT face=Arial size=2>kernel sources up until very recently had
problems</FONT></DIV>
<DIV><FONT face=Arial size=2>with context management during some
exceptional</FONT></DIV>
<DIV><FONT face=Arial size=2>signal conditions that happen to turn up in
Kaffe. </FONT></DIV>
<DIV><FONT face=Arial size=2>Most 2.4.17-level sources don't </FONT><FONT
face=Arial size=2>have the fixes, though</FONT></DIV>
<DIV><FONT face=Arial size=2>Monta Vista's just might.
If updating your</FONT></DIV>
<DIV><FONT face=Arial size=2>Kaffe sources and using jthreads doesn't fix
things, </FONT></DIV>
<DIV><FONT face=Arial size=2>I would encourage you to get more </FONT><FONT
face=Arial size=2>up-to-date kernel</FONT></DIV>
<DIV><FONT face=Arial size=2>sources, </FONT><FONT face=Arial
size=2>either from <A
href="ftp://ftp.mips.com/pub/linux/mips/">ftp://ftp.mips.com/pub/linux/mips/</A> </FONT></DIV>
<DIV><FONT face=Arial size=2>or from </FONT><FONT face=Arial size=2>the CVS
archive at linux-mips.org (which is</FONT></DIV>
<DIV><FONT face=Arial size=2>another development tree, with all the fun
associated, etc.). </FONT></DIV>
<DIV><FONT face=Arial size=2>I actually </FONT><FONT face=Arial
size=2>rather </FONT><FONT face=Arial size=2>doubt that this is your
problem, since </FONT></DIV>
<DIV><FONT face=Arial size=2>in </FONT><FONT face=Arial
size=2>general </FONT><FONT face=Arial size=2>one </FONT><FONT
face=Arial size=2>needs to be doing floating-point operations</FONT></DIV>
<DIV><FONT face=Arial size=2>to see the problems, but if you're going to use
Kaffe,</FONT></DIV>
<DIV><FONT face=Arial size=2>you will ultimately need those
fixes.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When you say that you are testing your Kaffe
build,</FONT></DIV>
<DIV><FONT face=Arial size=2>is this to say that all of the "make check"
regression</FONT></DIV>
<DIV><FONT face=Arial size=2>tests run? It took me a while to get all
those to work</FONT></DIV>
<DIV><FONT face=Arial size=2>(i.e. to generate the patch above), but once they
did,</FONT></DIV>
<DIV><FONT face=Arial size=2>all the AWT stuff I tried worked fine. But
I did not try</FONT></DIV>
<DIV><FONT face=Arial size=2>QT!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
Kevin K.</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=sbkim@mail.marusys.com href="mailto:sbkim@mail.marusys.com">Kim,
Seong Beom</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=kaffe@kaffe.org
href="mailto:kaffe@kaffe.org">kaffe@kaffe.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, December 30, 2002 8:05
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [kaffe] Problems of Kaffe on
mips-linux platform</DIV>
<DIV><BR></DIV>
<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></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>