building libgcj on solaris
Joerg Brunsmann
joerg.brunsmann@FernUni-Hagen.de
Sat Apr 1 00:00:00 GMT 2000
Hi,
I never had problems with cpp, but perhaps cpp is found in "/usr/ccs/lib".
You might want to remove this from your path. If this doesn't help I
suggest to build from snapshot. If you don't know how to build from
snapshots, please look in the FAQ. If you do this with
egcs-20000221 and libgcj-snapshot-2000年02月23日 on Solaris 2.7 you need
to "#ifdef INTERPRETER" out the body of _Jv_JNI_RegisterNatives in
jni.cc. Then you get:
../../../libjava/java/math/BigInteger.java: In class `java.math.BigInteger':
../../../libjava/java/math/BigInteger.java: In method `isProbablePrime(int)':
../../../libjava/java/math/BigInteger.java:1287: internal error in check-init: tree code not implemented: abs_expr
I deleted the line which causes problems and got:
In file included from ../../../libjava/java/lang/natDouble.cc:32:
java/lang/Double.h:39: `Infinity' was not declared in this scope
java/lang/Double.h:40: `Infinity' was not declared in this scope
Those are defined like this:
static const jdouble NEGATIVE_INFINITY = -Infinity;
static const jdouble POSITIVE_INFINITY = Infinity;
I removed these lines and the usage in natDouble.cc and then
libgcj compiled and gcj produced a running HelloWorld.
Hope this helps,
Jörg
More information about the Java
mailing list