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)


>>>>> "Jonah" == Jonah Michaud <vector@rhythm.com> writes:

Jonah> Sorry, I didn't followup.  I finally got it to build (with help
Jonah> from the list) but when I tried to compile a simple program gcj
Jonah> died

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

Could you send us a stack trace?
You can get it by running `gcj -v Disk.java', and then running gdb on
`jc1' and using the command line printed by `gcj -v'.

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

Jonah> c++ -DHAVE_CONFIG_H -I. -I../../../../libjava -I./include -Iinclude
Jonah> [ snipped ]
Jonah> ../../../../libjava/java/lang/natMath.cc:241: internal
Jonah> error--unrecognizable insn:
Jonah> (insn 202 201 134 (set:DF (reg:DF 103)
Jonah>         (if_then_else:DF (eq (reg:DI 115)
Jonah>                 (const_int 0 [0x0]))
Jonah>             (reg/v:DF 82)
Jonah>             (reg/v:DF 81))) -1 (insn_list 201 (nil))
Jonah>     (expr_list:REG_DEAD (reg:DI 115)
Jonah>         (expr_list:REG_DEAD (reg/v:DF 82)
Jonah>             (expr_list:REG_DEAD (reg/v:DF 81)
Jonah>                 (nil)))))

This is a bug in the C++ compiler.
Please report it to the appropriate egcs list.


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

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

Commenting out line 336 is the wrong fix to this problem.

The boehm-gc configuration infrastructure hasn't been ported to the
SGI yet.  On the SGI we have to use mips_sgi_mach_dep.s and not
mach_dep.c.  Follow the alpha port in configure.in to see what to do.

Tom