Bug 24441 - [4.1/4.2 regression] ICE's when building the ecj compiler 3.1.1
Summary: [4.1/4.2 regression] ICE's when building the ecj compiler 3.1.1
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.1.0
: P5 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 24652 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-19 10:30 UTC by Debian GCC Maintainers
Modified: 2006-01-06 19:39 UTC (History)
5 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Debian GCC Maintainers 2005-10-19 10:30:20 UTC
trying to bootstrap ecj using gcj-4.1, without having ant available for bootstrap purposes:

for f in $(find build/bin -name '*.java'); do \
    echo $f; \
    gcj-4.1 -d build/bin -C -g \
        -Ibuild/bin \
        $f; \
done

fails to build about 20 classes, each segfaulting with:

build/bin/org/eclipse/jdt/internal/compiler/ast/AbstractMethodDeclaration.java:440: 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.

the line number references the line after EOF (i.e. AbstractMethodDeclaration.java has 439 lines)

ignoring the errors in the first loop, and then rerunning the loop without removing already built class files, the compilation succeeds for all files.
Comment 1 Andrew Pinski 2005-11-03 14:25:00 UTC
*** Bug 24652 has been marked as a duplicate of this bug. ***
Comment 2 bero 2005-11-06 15:32:38 UTC
An alternative way of building that doesn't trigger this error:

cd build/bin
find -name '*.java' >filelist
gcj -C @filelist

That compiles all classes without complaining, but I suspect it of generating broken code (will open a new bug for that)
Comment 3 Andrew Overholt 2005-12-12 15:07:55 UTC
I am experiencing this now as well.
Comment 4 Andrew Haley 2005-12-12 15:58:40 UTC
Please try the patch at http://gcc.gnu.org/ml/gcc-patches/2005-12/msg00861.html.

Let me know if it doesn't work.
Comment 5 Andrew Overholt 2005-12-12 16:09:59 UTC
(In reply to comment #3)
> I am experiencing this now as well.

I should mention that I'm seeing this on x86_64 but not on i386.
Comment 6 Andrew Haley 2005-12-12 16:38:02 UTC
I just tried it with the patch at http://gcc.gnu.org/ml/gcc-patches/2005-12/msg00861.html.

Works for me.

Comment 7 bero 2005-12-12 19:05:01 UTC
Works for me too (4.1 branch SVN 108424 w/ the referenced patch, x86)
Comment 8 Tom Tromey 2006-01-06 19:39:54 UTC
The fix was checked in a while ago.