User account creation filtered due to spam.

Bug 12996 - ICE trying to compile an entire jar file
Summary: ICE trying to compile an entire jar file
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 3.3.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Keywords: ice-on-valid-code
: 12202 (view as bug list)
Depends on: 11117
  Show dependency treegraph
Reported: 2003-11-10 17:49 UTC by Bruno Haible
Modified: 2016-09-30 22:51 UTC (History)
3 users (show)

See Also:
Host: i586-suse-linux-gnu
Target: i586-suse-linux-gnu
Build: i586-suse-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2004-05-20 23:46:55


Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Haible 2003-11-10 17:49:28 UTC
gcj gives an error "java/io/CharConversionException.class:0: internal compiler error: Segmentation fault"
when asked to compile a jar file.

System: Linux linuix 2.4.21-99-default #1 Wed Sep 24 13:30:51 UTC 2003 i686 athlon i386 GNU/Linux
Architecture: i686

        <machine, os, target, libraries (multiple lines)>
host: i586-suse-linux-gnu
build: i586-suse-linux-gnu
target: i586-suse-linux-gnu
configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --disable-checking --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux


$ LC_ALL=C CLASSPATH=libintl.jar /packages/gnu-inst-gcc/3.3/bin/gcj libintl.jar --main=Hello -o Hello
java/io/CharConversionException.class:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.
Comment 1 Bruno Haible 2003-11-10 17:49:28 UTC

Workaround is to unpack the jar and compile its contents file by file.
Comment 2 Tom Tromey 2003-11-10 18:31:56 UTC
This one's my fault.
I've got a fix; before it can go in I have to
figure out how to get a .jar compilation test
case in libjava.
Comment 4 Tom Tromey 2003-11-10 22:09:59 UTC
I spoke too soon; this one isn't my fault.
Instead it looks like our support for compiling a .java file
and a .jar file on the same command line is a bit weak.
Another workaround, perhaps more palatable, is to compile
each .java and .jar file separately to .o files, then link
them together.
Comment 5 Andrew Pinski 2004-08-20 06:59:41 UTC
*** Bug 12202 has been marked as a duplicate of this bug. ***
Comment 6 Andrew Pinski 2016-09-30 22:51:09 UTC
Closing as won't fix as the Java front-end has been removed from the trunk.