Bug 177324 - Odd missing `gnu.gcj.gcj-compiled' attribute
Summary: Odd missing `gnu.gcj.gcj-compiled' attribute
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-09 16:53 UTC by Andrew Overholt
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2006-01-10 05:25:57 UTC


Attachments (Terms of Use)

Description Andrew Overholt 2006-01-09 16:53:32 UTC
Description of problem:
While trying to natively-compile the Eclipse automated tests, I ran into this
weird issue with one of the jars.

Version-Release number of selected component (if applicable):
gcc-java-4.1.0-0.14.i386
java-1.4.2-gcj-compat-1.4.2.0-40jpp_55rh.i386
java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp_55rh.i386

How reproducible:
Always.

Steps to Reproduce:
1. wget http://overholt.ca/converterJclMin.jar.1.jar
2. gcj -shared -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
-march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -fPIC
-findirect-dispatch -fjni -Wl,-Bsymbolic converterJclMin.jar.1.jar -o
converterJclMin.jar.so
  
Actual results:
java/lang/Object.java:0: fatal error: the âjava.lang.Objectâ that was found in
âjava/lang/Object.classâ didn't have the special zero-length
âgnu.gcj.gcj-compiledâ attribute.  This generally means that your classpath is
incorrectly set.  Use âinfo gcj "Input Options"â to see the info page describing
how to set the classpath compilation terminated.

Expected results:
Successful compilation.

Additional info:
This is not the first jar in the aot-compile-rpm run.  Many are compiled before
this failure.  I am using the system gcc from today's rawhide.

Comment 1 Tom Tromey 2006-01-09 17:11:21 UTC
opsy. jar tvvf converterJclMin.jar.1.jar |grep Object
  1368 Tue Jan 01 00:00:00 MST 1980 java/lang/Object.class


gcj only likes to compile its own Object.  I think we saw
crashes when it compiled other variants of Object, and since
we didn't want to support this, we decided to simply give
an error if we detected this situation.

I wonder where the classes in this jar come from.  If they
aren't from libgcj.jar then maybe we shouldn't be distributing
them ...?

Anyway, one fix would be not to compile this jar.


Comment 2 Jakub Jelinek 2006-01-10 05:09:07 UTC
So -> NOTABUG ?

Comment 3 Andrew Overholt 2006-01-10 05:25:57 UTC
Yeah, NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.