This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: building libgcj on solaris
- To: java-discuss at sourceware dot cygnus dot com
- Subject: Re: building libgcj on solaris
- From: Joerg Brunsmann <joerg dot brunsmann at FernUni-Hagen dot de>
- Date: Thu, 24 Feb 2000 18:40:59 +0100
- CC: charlie at cse dot ucsc dot edu
- Organization: Fernuniversitaet Hagen - Software Engineering (Praktische Informatik III)
- References: <38B4452E.E68E8211@cse.ucsc.edu> <200002232052.MAA25881@ferrule.cygnus.com>
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