http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50265

             Bug #: 50265
           Summary: [4.7 Regression] Bootstrap failure
                    "BufferedImage.java:336:0: internal compiler error:
                    Segmentation fault" on *-apple-darwin*
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: domi...@lps.ens.fr


Bootstrap fails on *-apple-darwin* with

libtool: compile:  /opt/gcc/build_w/./gcc/gcj
-B/opt/gcc/build_w/x86_64-apple-darwin10.8.0/i386/libjava/
-B/opt/gcc/build_w/x86_64-apple-darwin10.8.0/i386/libjava/
-B/opt/gcc/build_w/./gcc/ -B/opt/gcc/gcc4.7w/x86_64-apple-darwin10.8.0/bin/
-B/opt/gcc/gcc4.7w/x86_64-apple-darwin10.8.0/lib/ -isystem
/opt/gcc/gcc4.7w/x86_64-apple-darwin10.8.0/include -isystem
/opt/gcc/gcc4.7w/x86_64-apple-darwin10.8.0/sys-include -m32 -ffloat-store
-fomit-frame-pointer -Usun -fclasspath=
-fbootclasspath=../../../../work/libjava/classpath/lib --encoding=UTF-8
-Wno-deprecated -fbootstrap-classes -g -O2 -m32 -c
-fsource-filename=/opt/gcc/build_w/x86_64-apple-darwin10.8.0/i386/libjava/classpath/lib/classes
-MT java/awt/image.lo -MD -MP -MF java/awt/image.deps @java/awt/image.list 
-fno-common -o java/awt/.libs/image.o
/opt/gcc/work/libjava/classpath/java/awt/image/BufferedImage.java: In class
'java.awt.image.BufferedImage':
/opt/gcc/work/libjava/classpath/java/awt/image/BufferedImage.java: In method
'java.awt.image.BufferedImage.createDefaultIndexedColorModel(boolean)':
In file included from
/opt/gcc/work/libjava/classpath/java/awt/image/BufferedImage.java:635:0,
                 from
/opt/gcc/work/libjava/classpath/java/awt/image/BufferStrategy.java:77,
                 from
/opt/gcc/work/libjava/classpath/java/awt/image/BandedSampleModel.java:757,
                 from
/opt/gcc/work/libjava/classpath/java/awt/image/BandCombineOp.java:215,
                 from
/opt/gcc/work/libjava/classpath/java/awt/image/AreaAveragingScaleFilter.java:266,
                 from
/opt/gcc/work/libjava/classpath/java/awt/image/AffineTransformOp.java:610,
                 from <built-in>:70:
/opt/gcc/work/libjava/classpath/java/awt/image/BufferedImage.java:336:0:
internal compiler error: Segmentation fault

This failure occurred between revisions 178381 and 178393 (see
http://gcc.gnu.org/ml/gcc-regression/2011-09/msg00000.html ) and requires -O2.

Note that if I move away the install directory: /opt/gcc/gcc4.7w or if I use

/opt/gcc/build_w/./gcc/gcj
-B/opt/gcc/build_w/x86_64-apple-darwin10.8.0/i386/libjava/
-B/opt/gcc/build_w/gcc/ -fomit-frame-pointer -Usun -fclasspath=
-fbootclasspath=../../../../work/libjava/classpath/lib --encoding=UTF-8
-Wno-deprecated -fbootstrap-classes -O2 -c
-fsource-filename=/opt/gcc/build_w/x86_64-apple-darwin10.8.0/i386/libjava/classpath/lib/classes
-MT java/awt/image.lo -MD -MP -MF java/awt/image.deps @java/awt/image.list

the error becomes

/opt/gcc/work/libjava/classpath/java/awt/image/BufferedImage.java: In class
'java.awt.image.BufferedImage':
/opt/gcc/work/libjava/classpath/java/awt/image/BufferedImage.java: In method
'java.awt.image.BufferedImage.createDefaultIndexedColorModel(boolean)':
In file included from <built-in>:6:0:
/opt/gcc/work/libjava/classpath/java/awt/image/BufferedImage.java:336:0:
internal compiler error: Segmentation fault

I don't see why the install director appears when building the gcc components.

Reply via email to