Bug 37893 - [4.4 Regression] ICE in java during bootstrap at revision 141303
Summary: [4.4 Regression] ICE in java during bootstrap at revision 141303
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libgcj (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: 4.4.0
Assignee: Jakub Jelinek
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: build, patch
: 37899 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-22 21:00 UTC by Dominique d'Humieres
Modified: 2008-10-23 19:51 UTC (History)
4 users (show)

See Also:
Host: i686-apple-darwin9
Target: i686-apple-darwin9
Build: i686-apple-darwin9
Known to work:
Known to fail:
Last reconfirmed: 2008-10-23 08:28:13


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique d'Humieres 2008-10-22 21:00:41 UTC
At revision 141303, bootstrap failed with

...
libtool: compile:  /opt/gcc/i686-darwin/gcc/gcj -B/opt/gcc/i686-darwin/i686-apple-darwin9/x86_64/libjava/ -B/opt/gcc/i686-darwin/gcc/ -ffloat-store -fomit-frame-pointer -Usun -fclasspath= -fbootclasspath=../../../../gcc-4.4-work/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -findirect-dispatch -fno-indirect-classes -fsource-filename=/opt/gcc/i686-darwin/i686-apple-darwin9/x86_64/libjava/classpath/tools/all-classes.lst -g -O2 -m64 -MT classpath/tools/libgcj_tools_la-tools.lo -MD -MP -MF classpath/tools/.deps/libgcj_tools_la-tools.Tpo -c classpath/tools/tools.zip  -fno-common -o classpath/tools/.libs/libgcj_tools_la-tools.o
jc1: internal compiler error: in java_read_sourcefilenames, at java/jcf-parse.c:192

Last successful bootstrap r141279.
Comment 1 Matthias Klose 2008-10-22 22:57:10 UTC
can't see these with 141308: please could you recheck?
Comment 2 Jakub Jelinek 2008-10-23 07:59:56 UTC
I can reproduce this too, on i686-linux, make -j48.
gcj is invoked with
-fsource-filename=/usr/src/gcc/obj19/i686-pc-linux-gnu/libjava/classpath/tools/all-classes.lst
but that file doesn't exist.
If you look at the changes Mathias committed yesterday, they are clearly buggy.
all-classes.lst is used always:
grep all-classes.lst libjava/Makefile*
libjava/Makefile.am:libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch -fno-indirect-classes  -fsource-filename=$(here)/classpath/tools/all-classes.lst
libjava/Makefile.in:libgcj_tools_la_GCJFLAGS = $(AM_GCJFLAGS) -findirect-dispatch -fno-indirect-classes  -fsource-filename=$(here)/classpath/tools/all-classes.lst
but is only generated in --enable-libjava-maintainer-mode:
grep all-classes.lst libjava/classpath/tools/Makefile*
libjava/classpath/tools/Makefile.am:    cat classes.lst asm.lst vm-tools.lst > all-classes.lst
libjava/classpath/tools/Makefile.am:    rm -rf $(TOOLS_ZIP) classes classes.lst asm asm.lst all-classes.lst
libjava/classpath/tools/Makefile.in:@JAVA_MAINTAINER_MODE_TRUE@ cat classes.lst asm.lst vm-tools.lst > all-classes.lst
libjava/classpath/tools/Makefile.in:    rm -rf $(TOOLS_ZIP) classes classes.lst asm asm.lst all-classes.lst
Before that commit, it has been generated always.
Comment 3 Jakub Jelinek 2008-10-23 08:28:13 UTC
Patch posted.
Comment 4 Jakub Jelinek 2008-10-23 08:28:48 UTC
*** Bug 37899 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Jelinek 2008-10-23 09:24:19 UTC
Subject: Bug 37893

Author: jakub
Date: Thu Oct 23 09:23:00 2008
New Revision: 141320

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141320
Log:
	PR java/37893
	* tools/Makefile.am (tools.zip): Generate *.lst files always, not
	just in JAVA_MAINTAINER_MODE.
	* tools/Makefile.in: Regenerated.

Modified:
    trunk/libjava/classpath/ChangeLog.gcj
    trunk/libjava/classpath/tools/Makefile.am
    trunk/libjava/classpath/tools/Makefile.in

Comment 6 Jakub Jelinek 2008-10-23 09:26:14 UTC
Fixed.