This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: building libgcj on solaris


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]