public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/20715] New: gcj link error
@ 2005-04-01 14:46 jack dot rong at cloakware dot com
  2005-04-01 14:48 ` [Bug java/20715] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jack dot rong at cloakware dot com @ 2005-04-01 14:46 UTC (permalink / raw)
  To: java-prs

When I tried to compile and link java application into an exacutable using GCJ 
v3.4.3 in Linux Red Hat 3.4.3-9.EL4, it produces error messages:

jrong@weyoun:~/testarea/build$ ./gcjbuild
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/libgcj.spec
rename spec lib to liborig
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --
infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-
checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-
exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
 /usr/libexec/gcc/i386-redhat-linux/3.4.3/jc1 /tmp/ccDKDmFrjx -fhash-
synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-
exceptions -fkeep-inline-functions -quiet -dumpbase ccDKDmFrjx -auxbase 
ccDKDmFrjx -g1 -version -fjni -
fclasspath=/opt/cloakware/cspmclient_thirdparty/java/jre/lib:/opt/cloakware/csp
mclient_thirdparty/java/jre/lib/jsse.jar:/opt/cloakware/cspmclient_thirdparty/j
etty/lib/javax.servlet.jar:/opt/cloakware/cspmclient_thirdparty/jetty/ext/xmlPa
rserAPIs-2.5.jar -ffilelist-file -o /tmp/ccKdJ5dJ.s
GNU Java version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4) (i386-redhat-linux)
        compiled by GNU C version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4).
GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=129199
Class path starts here:
    /opt/cloakware/cspmclient_thirdparty/java/jre/lib/
    /opt/cloakware/cspmclient_thirdparty/java/jre/lib/jsse.jar/ (zip)
    /opt/cloakware/cspmclient_thirdparty/jetty/lib/javax.servlet.jar/ (zip)
    /opt/cloakware/cspmclient_thirdparty/jetty/ext/xmlParserAPIs-2.5.jar/ (zip)
    /usr/share/java/libgcj-3.4.3.jar/ (system) (zip)
java/awt/Component.java: In class `java.awt.Component':
java/awt/Component.java: In method `java.awt.Component.eventTypeEnabled(int)':
java/awt/Component.java:4709: error: expected type 'int' but stack 
contains 'void'
java/awt/Component.java:4709: error: verification error at PC=327
java/awt/Component.java:4709: error: types could not be merged
java/io/BufferedReader.java:0: confused by earlier errors, bailing out



Looks like one of our jars linked is using the java.awt.* package, which cause 
the problem.

By the way, all our JAVA applications work very well if we don't compile and 
link it into an executable.

Thanks a lot in advance.

Jack rong

-- 
           Summary: gcj link error
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jack dot rong at cloakware 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=20715


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

* [Bug java/20715] gcj link error
  2005-04-01 14:46 [Bug libgcj/20715] New: gcj link error jack dot rong at cloakware dot com
@ 2005-04-01 14:48 ` pinskia at gcc dot gnu dot org
  2005-04-01 14:52 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-01 14:48 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
          Component|libgcj                      |java


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


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

* [Bug java/20715] gcj link error
  2005-04-01 14:46 [Bug libgcj/20715] New: gcj link error jack dot rong at cloakware dot com
  2005-04-01 14:48 ` [Bug java/20715] " pinskia at gcc dot gnu dot org
@ 2005-04-01 14:52 ` pinskia at gcc dot gnu dot org
  2005-04-01 14:58 ` [Bug java/20715] gcj compilation error jack dot rong at cloakware dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-01 14:52 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-01 14:52 -------
You might want to try a snapshot of 4.0.0 which has AWT support builtin.
Also this is not a link error, this is at compile time still.
This error usually shows up if you try to compile a .jar and a .java file at the same time.  This is known 
to be broken, there are a couple of bugs for this.

-- 


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


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

* [Bug java/20715] gcj link error
  2005-04-01 14:46 [Bug libgcj/20715] New: gcj link error jack dot rong at cloakware dot com
                   ` (2 preceding siblings ...)
  2005-04-01 14:58 ` [Bug java/20715] gcj compilation error jack dot rong at cloakware dot com
@ 2005-04-01 14:58 ` jack dot rong at cloakware dot com
  2005-06-15 20:19 ` [Bug java/20715] gcj compilation error tromey at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jack dot rong at cloakware dot com @ 2005-04-01 14:58 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From jack dot rong at cloakware dot com  2005-04-01 14:58 -------
Subject: RE:  gcj link error

It is a compilation error. Thanks.

Jack

-----Original Message-----
From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: Friday, April 01, 2005 9:52 AM
To: jack.rong@cloakware.com
Subject: [Bug java/20715] gcj link error



------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-01
14:52 -------
You might want to try a snapshot of 4.0.0 which has AWT support builtin.
Also this is not a link error, this is at compile time still.
This error usually shows up if you try to compile a .jar and a .java file at
the same time.  This is known
to be broken, there are a couple of bugs for this.

--


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

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



-- 


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


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

* [Bug java/20715] gcj compilation error
  2005-04-01 14:46 [Bug libgcj/20715] New: gcj link error jack dot rong at cloakware dot com
  2005-04-01 14:48 ` [Bug java/20715] " pinskia at gcc dot gnu dot org
  2005-04-01 14:52 ` pinskia at gcc dot gnu dot org
@ 2005-04-01 14:58 ` jack dot rong at cloakware dot com
  2005-04-01 14:58 ` [Bug java/20715] gcj link error jack dot rong at cloakware dot com
  2005-06-15 20:19 ` [Bug java/20715] gcj compilation error tromey at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jack dot rong at cloakware dot com @ 2005-04-01 14:58 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|gcj link error              |gcj compilation error


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


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

* [Bug java/20715] gcj compilation error
  2005-04-01 14:46 [Bug libgcj/20715] New: gcj link error jack dot rong at cloakware dot com
                   ` (3 preceding siblings ...)
  2005-04-01 14:58 ` [Bug java/20715] gcj link error jack dot rong at cloakware dot com
@ 2005-06-15 20:19 ` tromey at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-06-15 20:19 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From tromey at gcc dot gnu dot org  2005-06-15 20:19 -------
In 4.0, if you can use indirect dispatch, gcj will use the new
verifier, which is somewhat less buggy.  (Assuming this is a verifier
bug, which is not clear, as there is not enough information here.)

In "4.1" (cvs trunk) the new verifier is always used, even for
"C++ ABI" compilations.

Could you try 4.0 with -findirect-dispatch and see if this still happens?



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

end of thread, other threads:[~2005-06-15 20:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-01 14:46 [Bug libgcj/20715] New: gcj link error jack dot rong at cloakware dot com
2005-04-01 14:48 ` [Bug java/20715] " pinskia at gcc dot gnu dot org
2005-04-01 14:52 ` pinskia at gcc dot gnu dot org
2005-04-01 14:58 ` [Bug java/20715] gcj compilation error jack dot rong at cloakware dot com
2005-04-01 14:58 ` [Bug java/20715] gcj link error jack dot rong at cloakware dot com
2005-06-15 20:19 ` [Bug java/20715] gcj compilation error tromey 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).