public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error
@ 2004-10-28 22:10 bojan at antonovic dot com
  2004-10-29 13:08 ` [Bug java/18212] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bojan at antonovic dot com @ 2004-10-28 22:10 UTC (permalink / raw)
  To: java-prs

given: A.jar, B.jar and X.jar. X.jar depends on A.jar and B.jar.

wanted: nativ compiled X.jar to a.out and x.exec

1 given jar:

working: gcj --main=A.main A.jar
working: gcj -o a.exec --main=A.main A.jar

multiple given jars:

working: gcj --classpath:A.jar:B.jar:. --main=X.main X.jar A.jar B.jar
working: gcj --classpath:A.jar:B.jar:. --main=X.main X/main.class A.jar B.jar

failing:  gcj -o x.exec --classpath:A.jar:B.jar:. --main=X.main X.jar A.jar B.jar
crashing: gcj -o x.exec --classpath:A.jar:B.jar:. --main=X.main X/main.class
A.jar B.jar

When its failing, it compiles other things:
java/awt/Component.java: In class `java.awt.Component':
java/awt/Component.java: In method `java.awt.Component.eventTypeEnabled(int)':
java/awt/Component.java:4127: error: expected type 'int' but stack contains 'void'
java/awt/Component.java:4127: error: verification error at PC=311
java/awt/Component.java:4127: error: types could not be merged
^Cmake: *** [exe] Interrupt

The crash ends in an internal compiler error: Bus error.

I builded GCJ myself. See: http://gcc.gnu.org/ml/gcc/2004-09/msg00677.html

Bojan

-- 
           Summary: nativ compilation with multiple jars fails / gives
                    internal compiler error
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bojan at antonovic dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
@ 2004-10-29 13:08 ` pinskia at gcc dot gnu dot org
  2004-10-29 14:20 ` bojan at antonovic dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-29 13:08 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-29 13:08 -------
This is most likely the same as PR 11117.

Could you attach all three jar files?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
  2004-10-29 13:08 ` [Bug java/18212] " pinskia at gcc dot gnu dot org
@ 2004-10-29 14:20 ` bojan at antonovic dot com
  2004-11-08 16:29 ` bojan at antonovic dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bojan at antonovic dot com @ 2004-10-29 14:20 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From bojan at antonovic dot com  2004-10-29 14:19 -------
Subject: Re:  nativ compilation with multiple jars fails /
 gives internal compiler error

pinskia at gcc dot gnu dot org wrote:

>------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-29 13:08 -------
>This is most likely the same as PR 11117.
>
>Could you attach all three jar files?
>
>  
>
You have them in the attachment.

Because they're renamed, the real compilation calls for the classes of X 
are:

working: gcj --classpath=A.jar:B.jar:. --main=ProcessorOptimizer.Main 
ProcessorOptimizer/*.class ProcessorOptimizer/*/*.class A.jar B.jar
crashing: gcj -o x.exec --classpath=A.jar:B.jar:. 
--main=ProcessorOptimizer.Main ProcessorOptimizer/*.class 
ProcessorOptimizer/*/*.class A.jar B.jar
crashing: gcj -o x.exec --classpath=A.jar:B.jar:X.jar:. 
--main=ProcessorOptimizer.Main ProcessorOptimizer/*.class 
ProcessorOptimizer/*/*.class A.jar B.jar

The last crashing one is new.

working:  gcj --classpath=A.jar:B.jar:. --main=ProcessorOptimizer.Main 
X.jar A.jar B.jar
failing:     gcj -o x.exec --classpath=A.jar:B.jar:. 
--main=ProcessorOptimizer.Main X.jar A.jar B.jar
failing:     gcj -o x.exec --classpath=B.jar:A.jar:. 
--main=ProcessorOptimizer.Main X.jar A.jar B.jar

The last failing one is new.

I have tested this calls. I hope _I_ made no bug in the bug report! :)

Bojan




------- Additional Comments From bojan at antonovic dot com  2004-10-29 14:20 -------
Created an attachment (id=7428)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7428&action=view)

------- Additional Comments From bojan at antonovic dot com  2004-10-29 14:20 -------
Created an attachment (id=7429)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7429&action=view)

------- Additional Comments From bojan at antonovic dot com  2004-10-29 14:20 -------
Created an attachment (id=7430)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7430&action=view)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
  2004-10-29 13:08 ` [Bug java/18212] " pinskia at gcc dot gnu dot org
  2004-10-29 14:20 ` bojan at antonovic dot com
@ 2004-11-08 16:29 ` bojan at antonovic dot com
  2004-12-01 21:59 ` tromey at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bojan at antonovic dot com @ 2004-11-08 16:29 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From bojan at antonovic dot com  2004-11-08 16:29 -------
Subject: Re:  nativ compilation with multiple jars fails /
 gives internal compiler error

Problems exists still with GCJ 3.4.3.

Bojan



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
                   ` (2 preceding siblings ...)
  2004-11-08 16:29 ` bojan at antonovic dot com
@ 2004-12-01 21:59 ` tromey at gcc dot gnu dot org
  2005-01-31  6:54 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: tromey at gcc dot gnu dot org @ 2004-12-01 21:59 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2004-12-01 21:59 -------
Most of these cases work fine for me.

However, this one fails:

opsy. gcj -o Z --classpath=B.jar:A.jar:. --main=ProcessorOptimizer.Main X.jar
A.jar B.jar
java/security/SecureRandom.java:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-12-01 21:59:19
               date|                            |
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
                   ` (3 preceding siblings ...)
  2004-12-01 21:59 ` tromey at gcc dot gnu dot org
@ 2005-01-31  6:54 ` pinskia at gcc dot gnu dot org
  2005-03-07 17:11 ` bojan at antonovic dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-31  6:54 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
   Target Milestone|4.0.0                       |---


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
                   ` (4 preceding siblings ...)
  2005-01-31  6:54 ` pinskia at gcc dot gnu dot org
@ 2005-03-07 17:11 ` bojan at antonovic dot com
  2005-03-07 19:21 ` bojan at antonovic dot com
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bojan at antonovic dot com @ 2005-03-07 17:11 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From bojan at antonovic dot com  2005-03-07 00:59 -------
The part of the bug that produces the ICE (bus error) can be reproduced by
extracting and compiling all classes from a single jar. Unzip all classes from
SMOOD.jar by

unzip -l SMOOD.jar

and then compile with

gcj  -o smood.exe --main=smood.Main smood/Main.class smood/*/*.class
smood/*/*/*.class smood/*/*/*/*.class

gives

smood/Main.class:0: internal compiler error: Bus error

This ICE is not yet reproducable with other jars or with less files. However,
because bug 18212 can be splitted to bug 20351 and an other possible new one, it
can be soon removed as duplicate of two known bugs, as soon the one for the ICE
is found.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
                   ` (5 preceding siblings ...)
  2005-03-07 17:11 ` bojan at antonovic dot com
@ 2005-03-07 19:21 ` bojan at antonovic dot com
  2005-03-09 14:37 ` rmathew at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bojan at antonovic dot com @ 2005-03-07 19:21 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From bojan at antonovic dot com  2005-03-07 17:11 -------
Bug 18212 can be splitted, and be seen as duplicate, of bugs 20351 and 20362.

I mark it as duplicate of bug 20362. (If patches for 20362 and 20351 fail for
18212, it can be reopened). 

*** This bug has been marked as a duplicate of 20362 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
                   ` (6 preceding siblings ...)
  2005-03-07 19:21 ` bojan at antonovic dot com
@ 2005-03-09 14:37 ` rmathew at gcc dot gnu dot org
  2005-03-09 14:40 ` rmathew at gcc dot gnu dot org
  2005-04-16 22:03 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-03-09 14:37 UTC (permalink / raw)
  To: java-prs



-- 
Bug 18212 depends on bug 20351, which changed state.

Bug 20351 Summary: compilation with a redundant jar fails, if output file specified
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20351

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
                   ` (7 preceding siblings ...)
  2005-03-09 14:37 ` rmathew at gcc dot gnu dot org
@ 2005-03-09 14:40 ` rmathew at gcc dot gnu dot org
  2005-04-16 22:03 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-03-09 14:40 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rmathew at gcc dot gnu dot org  2005-03-09 11:03 -------
I can still see a crash similar to what Tom is seeing, but the other two
bugs are fixed - the break-up was not correct.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|20351                       |
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug java/18212] nativ compilation with multiple jars fails / gives internal compiler error
  2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
                   ` (8 preceding siblings ...)
  2005-03-09 14:40 ` rmathew at gcc dot gnu dot org
@ 2005-04-16 22:03 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-16 22:03 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-04-16 22:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-28 22:10 [Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error bojan at antonovic dot com
2004-10-29 13:08 ` [Bug java/18212] " pinskia at gcc dot gnu dot org
2004-10-29 14:20 ` bojan at antonovic dot com
2004-11-08 16:29 ` bojan at antonovic dot com
2004-12-01 21:59 ` tromey at gcc dot gnu dot org
2005-01-31  6:54 ` pinskia at gcc dot gnu dot org
2005-03-07 17:11 ` bojan at antonovic dot com
2005-03-07 19:21 ` bojan at antonovic dot com
2005-03-09 14:37 ` rmathew at gcc dot gnu dot org
2005-03-09 14:40 ` rmathew at gcc dot gnu dot org
2005-04-16 22:03 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).