Hi,

At DMS we tried to compile GNU Classpath with KJC
(http://www.dms.at/kjc) and we encoutered some problems.

First of all, we were not able to properly generate the makefiles from
the CVS repository.
Here is what we did on an intel station with RH6.1:

vgp% cvs co classpath
vgp% cd classpath
vgp% aclocal
vgp% autoheader
configure.in:41: warning: AC_TRY_RUN called without default to allow
cross compiling
vgp% automake
vgp% autoconf
configure.in:41: warning: AC_TRY_RUN called without default to allow
cross compiling
vgp% ./configure --with-jikes
--with-javah=/usr/local/packages/jdk118/bin/javah
--with-classlib=/usr/local/packages/jdk118/lib/classes.zip
--with-japhar=/tmp/japhar-0.08
vgp% make
Making all in lib
make[1]: Entering directory `/tmp/classpath/lib'
/bin/sh -c "/usr/bin/jikes -nowarn -classpath
..:../vm/reference:.:/usr/local/packages/jdk118/lib/classes.zip +CSO +M
+F -d . @classes"
make[1]: *** [compile-classes] Segmentation fault
make[1]: Leaving directory `/tmp/classpath/lib'
make: *** [all-recursive] Error 1

vgp% jikes -version
...
Version 1.06 (17 Sep 99) by Philippe Charles and David Shields, IBM
Research.

we tried by hand but we encoutered the following problems:
command: cd classpath/lib; java -mx128000000 at.dms.kjc.Main --verbose
--nowrite @classes

Introspector:
=============
../java/beans/Introspector.java:23: Package gnu.java.beans not found in
import.
import gnu.java.beans.*;

ComponentBeanInfo:
==================
../gnu/java/beans/info/ComponentBeanInfo.java:23: Package gnu.java.beans
not found in import.
import gnu.java.beans.*;

AWTEvent:
=========
../java/awt/AWTEvent.java is missing from lib/classes

ObjectInputStream:
==================
  problem with an expression (java/io/ObjectInputStream.java:1188:
Variable "value" cannot be initialized by a value of type "int" [JLS
4.5.4])
  Which compiler do you use ???
  please rewrite:
  char value = default_initialize ? 0 : this.realInputStream.readChar
();
  as:
  char value = default_initialize ? (char)0 :
this.realInputStream.readChar ();

see also: java/io/ObjectInputStream.java:1223: Variable "value" cannot
be initialized by a value of type "int" [JLS 4.5.4]

WeakHashMap:
============
java/util/WeakHashMap.java:336: Cannot access field "queue" it is in an
other package and not a class member [JLS 15.10]

And we also have the following problem that is a bug in KJC:

java/util/AbstractList.java:410: Invalid outer class for this operation
[JLS 15.7.2]

we will try to fix it today.

Could you fix these problems and send us an email ([EMAIL PROTECTED]) when
it's available on your CVS ?

Vincent for DMS
http://www.dms.at

Reply via email to