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

             Bug #: 50968
           Summary: ICE on armhf building gcc-snapshot
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: konstantinos.margari...@linaro.org
              Host: arm-linux-gnueabihf
            Target: arm-linux-gnueabihf
             Build: arm-linux-gnueabihf


Trying on armhf to build gcc-snapshot-20111101-1 (svn 20111101) package on
armhf, I got the following ICE:

Reading specs from /root/gcc-snapshot-20111101/build/./gcc/specs
COLLECT_GCC=/root/gcc-snapshot-20111101/build/./gcc/xgcc
COLLECT_LTO_WRAPPER=/root/gcc-snapshot-20111101/build/./gcc/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 20111101-1'
--with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs
--enable-languages=c,c++,java,fortran,objc,obj-c++
--prefix=/usr/lib/gcc-snapshot --enable-shared --enable-linker-build-id
--with-system-zlib --disable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-plugin --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.7-snap/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.7-snap
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.7-snap
--with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --disable-sjlj-exceptions --with-arch=armv7-a
--with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --disable-werror
--enable-checking=yes --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.7.0 20111101 (experimental) [trunk revision 180743] (Debian
20111101-1)
COLLECT_GCC_OPTIONS='-B' '/root/gcc-snapshot-20111101/build/./gcc/' '-B'
'/usr/lib/gcc-snapshot/arm-linux-gnueabihf/bin/' '-B'
'/usr/lib/gcc-snapshot/arm-linux-gnueabihf/lib/' '-isystem'
'/usr/lib/gcc-snapshot/arm-linux-gnueabihf/include' '-isystem'
'/usr/lib/gcc-snapshot/arm-linux-gnueabihf/sys-include' '-g' '-O2' '-O2' '-I'
'.' '-I' '.' '-I' '../../src/gcc' '-I' '../../src/gcc/.' '-I'
'../../src/gcc/../include' '-I' '../../src/gcc/../libdecnumber' '-I'
'../../src/gcc/../libdecnumber/dpd' '-I' '../libdecnumber' '-I'
'../../src/gcc/../libgcc' '-g' '-O2' '-D' 'IN_GCC' '-Wextra' '-Wall'
'-Wwrite-strings' '-Wcast-qual' '-Wstrict-prototypes' '-Wmissing-prototypes'
'-Wold-style-definition' '-isystem' './include' '-fPIC' '-g' '-D'
'HAVE_GTHR_DEFAULT' '-D' 'IN_LIBGCC2' '-fbuilding-libgcc'
'-fno-stack-protector' '-I' '.' '-I' '.' '-I' '../.././gcc' '-I'
'../../../src/libgcc' '-I' '../../../src/libgcc/.' '-I'
'../../../src/libgcc/../gcc' '-I' '../../../src/libgcc/../include' '-D'
'HAVE_CC_TLS' '-MT' 'unwind-dw2.o' '-MD' '-MP' '-MF' 'unwind-dw2.dep'
'-fexceptions' '-fvisibility=hidden' '-D' 'HIDE_EXPORTS' '-v' '-c' '-o'
'unwind-dw2.i' '-march=armv7-a' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mthumb'
'-mtls-dialect=gnu'
 /root/gcc-snapshot-20111101/build/./gcc/cc1 -quiet -v -I . -I . -I
../../src/gcc -I ../../src/gcc/. -I ../../src/gcc/../include -I
../../src/gcc/../libdecnumber -I ../../src/gcc/../libdecnumber/dpd -I
../libdecnumber -I ../../src/gcc/../libgcc -I . -I . -I ../.././gcc -I
../../../src/libgcc -I ../../../src/libgcc/. -I ../../../src/libgcc/../gcc -I
../../../src/libgcc/../include -imultilib . -imultiarch arm-linux-gnueabihf
-iprefix
/root/gcc-snapshot-20111101/build/gcc/../lib/gcc/arm-linux-gnueabihf/4.7.0/
-isystem /root/gcc-snapshot-20111101/build/./gcc/include -isystem
/root/gcc-snapshot-20111101/build/./gcc/include-fixed -MD unwind-dw2.d -MF
unwind-dw2.dep -MP -MT unwind-dw2.o -D IN_GCC -D HAVE_GTHR_DEFAULT -D
IN_LIBGCC2 -D HAVE_CC_TLS -D HIDE_EXPORTS -isystem
/usr/lib/gcc-snapshot/arm-linux-gnueabihf/include -isystem
/usr/lib/gcc-snapshot/arm-linux-gnueabihf/sys-include -isystem ./include
../../../src/libgcc/unwind-dw2.c -quiet -dumpbase unwind-dw2.c -march=armv7-a
-mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb -mtls-dialect=gnu -auxbase-strip
unwind-dw2.i -g -g -g -O2 -O2 -O2 -Wextra -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -version -fPIC
-fbuilding-libgcc -fno-stack-protector -fexceptions -fvisibility=hidden -o
/tmp/cco4mgij.s
GNU C (Debian 20111101-1) version 4.7.0 20111101 (experimental) [trunk revision
180743] (arm-linux-gnueabihf)
        compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.1.0,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory
"/usr/lib/gcc-snapshot/arm-linux-gnueabihf/include"
ignoring nonexistent directory
"/usr/lib/gcc-snapshot/arm-linux-gnueabihf/sys-include"
ignoring nonexistent directory "./include"
ignoring nonexistent directory
"/root/gcc-snapshot-20111101/build/gcc/../lib/gcc/arm-linux-gnueabihf/4.7.0/include"
ignoring nonexistent directory
"/root/gcc-snapshot-20111101/build/gcc/../lib/gcc/arm-linux-gnueabihf/4.7.0/include-fixed"
ignoring nonexistent directory
"/root/gcc-snapshot-20111101/build/gcc/../lib/gcc/arm-linux-gnueabihf/4.7.0/../../../../arm-linux-gnueabihf/include"
ignoring nonexistent directory
"/root/gcc-snapshot-20111101/build/gcc/../lib/gcc/../../lib/gcc/arm-linux-gnueabihf/4.7.0/include"
ignoring nonexistent directory "/usr/local/include/arm-linux-gnueabihf"
ignoring nonexistent directory
"/root/gcc-snapshot-20111101/build/gcc/../lib/gcc/../../include"
ignoring nonexistent directory
"/root/gcc-snapshot-20111101/build/gcc/../lib/gcc/../../lib/gcc/arm-linux-gnueabihf/4.7.0/include-fixed"
ignoring nonexistent directory
"/root/gcc-snapshot-20111101/build/gcc/../lib/gcc/../../lib/gcc/arm-linux-gnueabihf/4.7.0/../../../../arm-linux-gnueabihf/include"
ignoring duplicate directory "."
ignoring nonexistent directory "../../src/gcc"
ignoring nonexistent directory "../../src/gcc/."
ignoring nonexistent directory "../../src/gcc/../include"
ignoring nonexistent directory "../../src/gcc/../libdecnumber"
ignoring nonexistent directory "../../src/gcc/../libdecnumber/dpd"
ignoring nonexistent directory "../libdecnumber"
ignoring nonexistent directory "../../src/gcc/../libgcc"
ignoring duplicate directory "."
ignoring duplicate directory "."
ignoring duplicate directory "../../../src/libgcc/."
#include "..." search starts here:
#include <...> search starts here:
.
 ../.././gcc
 ../../../src/libgcc
 ../../../src/libgcc/../gcc
 ../../../src/libgcc/../include
 /root/gcc-snapshot-20111101/build/./gcc/include
 /root/gcc-snapshot-20111101/build/./gcc/include-fixed
 /usr/local/include
 /usr/include/arm-linux-gnueabihf
 /usr/include
End of search list.
GNU C (Debian 20111101-1) version 4.7.0 20111101 (experimental) [trunk revision
180743] (arm-linux-gnueabihf)
        compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.1.0,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: b6d9a11f8fd1327d924a42449715d3da
../../../src/libgcc/unwind-dw2.c: In function 'init_dwarf_reg_size_table':
../../../src/libgcc/unwind-dw2.c:1482:39: internal compiler error: in
arm_dbx_register_number, at config/arm/arm.c:23536
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccbxDxpM.out file, please attach this to
your bugreport.

Attached a minimally produced testcase using delta and topformflat tools. I
used the following cmd line options to get the same ICE:

$ gcc -O -mfpu=vfpv3 -mfloat-abi=hard -march=armv7-a -mthumb -fpermissive -w -c
unwind-dw2-min.i 
unwind-dw2-min.i: In function ‘init_dwarf_reg_size_table’:
unwind-dw2-min.i:10:41: internal compiler error: in arm_dbx_register_number, at
config/arm/arm.c:22369
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccOmN9MY.out file, please attach this to
your bugreport.

Reply via email to