This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.


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

Re: Can't compile egcs on sgi (long)


On Mon, Apr 19, 1999 at 09:45:39AM -0600, Tom Tromey wrote:
>>>>>> "Jonah" == Jonah Michaud <vector@rhythm.com> writes:
>Jonah> Hi, I've given up trying to build libgcj on solaris for the
>Jonah> moment.
>
>I forgot... what is wrong?  Solaris builds ought to work.
>
Sorry, I didn't followup.  I finally got it to build (with help from the
list) but when I tried to compile a simple program gcj died

% gcj Disk.java
gcj: Internal compiler error: program jc1 got fatal signal 11

It's okay though because I would much rather get it to work on sgi.  The
sun I was using is probably going away soon. 


>Jonah> Now I'm trying on sgi but I can't even seem to build egcs.  If
>Jonah> someone who has succeeded could tell me exactly what version to
>Jonah> use or what to type that would be great.
>
>Generic egcs bugs should be reported to the egcs list.
>
Oops I will report future egcs problems to there.

I can get egcs to build now on sgi (only egcs-19990412 though not
egcs-19990418).  But I'm still having problems with libgcj.  The compile
fails here:

c++ -DHAVE_CONFIG_H -I. -I../../../../libjava -I./include -Iinclude
-I../../../../libjava/include -I../../../../libjava/../boehm-gc
-I./../boehm-gc  -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1
-DJAVA_FINALIZATION=1   -I../../../../libjava/../compat-include  
-fno-rtti -fvtable-thunks   -W -Wall -g -O2  -mabi=64 -c -o
java/lang/natMath.o ../../../../libjava/java/lang/natMath.cc
../../../../libjava/java/lang/natMath.cc: In function `static jdouble
java::lang::Math::min(__java_double, __java_double)':
../../../../libjava/java/lang/natMath.cc:241: internal
error--unrecognizable insn:
(insn 202 201 134 (set:DF (reg:DF 103)
        (if_then_else:DF (eq (reg:DI 115)
                (const_int 0 [0x0]))
            (reg/v:DF 82)
            (reg/v:DF 81))) -1 (insn_list 201 (nil))
    (expr_list:REG_DEAD (reg:DI 115)
        (expr_list:REG_DEAD (reg/v:DF 82)
            (expr_list:REG_DEAD (reg/v:DF 81)
                (nil)))))
gmake[4]: *** [java/lang/natMath.o] Error 1
gmake[4]: Leaving directory
`/toast/src/irix6.2/libgcj-snapshot-1999-04-24/build/mips-sgi-irix6.2/mabi=64/libjava'


Before this there was a problem compiling boehm-gc but I fixed it by
commenting out line 336:

gcc -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 
-I. -I../../../boehm-gc    -g -O2 -I././targ-include
-I./../../../boehm-gc/./libc/include -fno-builtin  -c
../../../boehm-gc/mach_dep.c
../../../boehm-gc/mach_dep.c: In function `GC_push_regs':
../../../boehm-gc/mach_dep.c:336: parse error before `>'
gmake[1]: *** [mach_dep.o] Error 1