| Summary: | GCC crashes on compiling Java 'Hello World' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alex <gentoo_bugs> |
| Component: | [OLD] GCC Porting | Assignee: | Please assign to toolchain <gcc-porting> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
GCC reports an internal compile error when I try to compile 'Hello World' in Java. Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libgcj.spec rename spec lib to liborig Configured with: /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/configure -- prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 -- includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include -- datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 --mandir=/usr/share/gcc- data/i686-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux- gnu/3.2/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux- gnu --with-system-zlib --enable-languages=c,c++,f77,objc,java --enable- threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio -- enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime- libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux- gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared -- disable-nls Thread model: posix gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/jc1 HelloWorld.java -fhash- synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call- exceptions -fkeep-inline-functions -quiet -dumpbase HelloWorld.java -g1 - version -o /tmp/ccrxdRlB.s GNU Java version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) (i686-pc- linux-gnu) compiled by GNU C version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice). Class path starts here: /opt/blackdown-jdk-1.4.1/jre/lib/rt.jar/ (zip) /usr/share/java/libgcj-3.2.3.jar/ (system) (zip) HelloWorld.java:1: Internal compiler error in make_class_data, at java/class.c:1676 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. for HelloWorld.java class HelloWorld { public static void main (String args[]) { for (;;) { System.out.print("Hello World "); } } } Reproducible: Always Steps to Reproduce: 1. Write 'Hello World' in Java 2. compile with gcc or gcj 3. Observe internal compiler error This is happening on a fresh install: Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.21-gss) ================================================================= System uname: 2.4.21-gss i686 AMD Athlon(tm) XP 2000+ ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://mirrors.twobit.net/gentoo/ http://gentoo.oregonstate.edu/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 crypt cups gif jpeg mad mmx mpeg ncurses pdflib png spell truetype xmms xv zlib gdbm berkdb readline java X pam libwww ssl gtk kde opengl mozilla dga maildir moznocompose moznoirc moznomail moznoxft pic scanner tetex -oss - apm -avi -encode -foomaticdb -gpm -imlib -gnome -libg++ -mikmod -motif -nls - quicktime -sdl -svga -xml2 -slang -arts -tcpd -perl -python -oggvorbis -qt"