This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [Patch] ecj1 always fails with OpenJDK runtime.
- From: Andrew John Hughes <gnu_andrew at member dot fsf dot org>
- To: Andrew Haley <aph at redhat dot com>
- Cc: David Daney <ddaney at caviumnetworks dot com>, Java Patch List <java-patches at gcc dot gnu dot org>, Andrew Overholt <overholt at redhat dot com>
- Date: Fri, 27 Mar 2009 09:53:59 +0000
- Subject: Re: [Patch] ecj1 always fails with OpenJDK runtime.
- References: <49CBAB3A.2090206@caviumnetworks.com> <49CC9CD1.3090201@redhat.com>
2009/3/27 Andrew Haley <aph@redhat.com>:
> David Daney wrote:
>> When ecj1 is run using the OpenJDK runtime, gcj -C always exits with a
>> failure exit code (1) even though no diagnostics are issued.
>>
>> I tracked the problem down to a difference in behavior between the
>> libgcj and OpenJDK for java.util.ZipOutputStream.
>> org/eclipse/jdt/internal/compiler/batch/GCCMain tries to create a zip
>> stream with no files. ÂThis succeeds under libgcj but fails under OpenJDK
>>
>> My hackish fix is to always create an empty file named '.dummy' in the
>> stream. ÂI don't know if this is completely safe, but it does allow me
>> to successfully do a --enable-java-maintainer-mode build.
>>
>> 2009-03-26 ÂDavid Daney Â<ddaney@caviumnetworks.com>
>>
>> Â Â * org/eclipse/jdt/internal/compiler/batch/GCCMain.java (fail):
>> Â Â print a stack trace.
>> Â Â (getZipOutput,getDependencyOutput): Create an empty dummy entry.
>>
>
> I'm surprised I never saw this. ÂAndrew Overholt: where should this go?
>
> Andrew.
>
I'm surprised the difference between the two zip implementations
wasn't spotted, but I'm not surprised that ecj1 hasn't been run with
OpenJDK, given (at least as far I understand it), it's specific to the
GCJ frontend.
--
Andrew :-)
Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8