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.
*** Bug 24652 has been marked as a duplicate of this bug. ***
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)
I am experiencing this now as well.
Please try the patch at http://gcc.gnu.org/ml/gcc-patches/2005-12/msg00861.html. Let me know if it doesn't work.
(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.
I just tried it with the patch at http://gcc.gnu.org/ml/gcc-patches/2005-12/msg00861.html. Works for me.
Works for me too (4.1 branch SVN 108424 w/ the referenced patch, x86)
The fix was checked in a while ago.