This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Need help compiling libgcj on Solaris for benchmark
- To: Tim_Drury@bscc.bls.com
- Subject: Re: Need help compiling libgcj on Solaris for benchmark
- From: Andrew Haley <aph@pasanda.cygnus.co.uk>
- Date: 7 Jun 1999 18:00:17 -0000
- CC: java-discuss@sourceware.cygnus.com
> From: Drury Tim <Tim_Drury@bscc.bls.com>
> Date: Mon, 7 Jun 1999 13:51:28 -0400
> I thought gcj would be the answer by compiling the Java
> code to native Sparc/Solaris code, but I cannot compile
> libgcj because of that error:
>
> <bunch o' java files>
> gcj: Internal compiler error: program jc1 got fatal signal 11
> gmake[2]: *** [libgcj.zip] Error 1
> gmake[2]: Leaving directory
> `/backup/tim/libgcj-obj/sparc-sun-solaris2.5.1/libjava'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/backup/tim/libgcj-obj/sparc-sun-solaris2.5.1/libjava'
> gmake: *** [all-target-libjava] Error 2
>
> This was discussed on the list earlier, but no solution has
> been posted. I guess I'm asking if
>
> (1) is there a patch available to fix this?
> (2) is there a workaround so I can use gcj anyway?
Are you compiling .class or .java files? gcj can compile both.
If the problem is in the .class file parser, you may be able to
compile your .java to .class by using javac, and then compile .class
to .o using gcj.
> Apparently people are using gcj anyway because the guy that
> found the problem has some benchmark code running. Can I
> run gcj without libgcj? How? When I try running gcj I get
>
> aries:/backup/tim/libgcj-obj> gcj
> gcj: libgcj.spec: No such file or directory
>
> libgcj.spec is in the build-directory, but I can't "gmake install"
You *must* install the compiler and libgcj: this is essential for
correct operation. Why can you not "gmake install"?
> so I don't know where to put it. Can I bypass the rest of the
> libgcj build and run gcj anyway?
Yes, but without libgcj the programs won't run.
Andrew.