Bug 38124

Summary: gcc fails to compile with Internal error, aborting at dw2gencfi.c line 1267 errror
Product: gcc Reporter: Kamaraju Kusumanchi <kamaraju>
Component: c++Assignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED INVALID    
Severity: normal CC: gcc-bugs
Priority: P3    
Version: unknown   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:

Description Kamaraju Kusumanchi 2008-11-14 21:55:39 UTC
The weekly snapshot (dated 20081107) of gcc 4.4 fails to compile on a Sun
Solaris machine with the following errors.

/bin/bash ../libtool --tag CXX --tag disable-shared --mode=compile /home/kkusuman/software/compileHere/gcc-4.4-20081107/./gcc/xgcc -shared-libgcc -B/home/kkusuman/software/compileHere/gcc-4.4-20081107/./gcc -nostdinc++ -L/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/src -L/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -B/home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/bin/ -B/home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/lib/ -isystem /home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/include -isystem /home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/sys-include -I/home/kkusuman/software/unZipped/gcc-4.4-20081107/libstdc++-v3/../gcc -I/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8 -I/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/include -I/home/kkusuman/software/unZipped/gcc-4.4-20081107/libstdc++-v3/libsupc++ -I/home/kkusuman/software/myroot/include -fno-implicit-templates -prefer-pic -Wall -Wextra -Wwrite-strings -Wcast-qual  -fdiagnostics-show-location=once  -ffunction-sections -fdata-sections  -O2 -g    -c -o eh_alloc.lo ../../../../../unZipped/gcc-4.4-20081107/libstdc++-v3/libsupc++/eh_alloc.cc
libtool: compile:  /home/kkusuman/software/compileHere/gcc-4.4-20081107/./gcc/xgcc -shared-libgcc -B/home/kkusuman/software/compileHere/gcc-4.4-20081107/./gcc -nostdinc++ -L/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/src -L/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -B/home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/bin/ -B/home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/lib/ -isystem /home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/include -isystem /home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/sys-include -I/home/kkusuman/software/unZipped/gcc-4.4-20081107/libstdc++-v3/../gcc -I/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/include/sparc-sun-solaris2.8 -I/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/include -I/home/kkusuman/software/unZipped/gcc-4.4-20081107/libstdc++-v3/libsupc++ -I/home/kkusuman/software/myroot/include -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -g -c ../../../../../unZipped/gcc-4.4-20081107/libstdc++-v3/libsupc++/eh_alloc.cc  -fPIC -DPIC -o eh_alloc.o
In file included from ../../../../../unZipped/gcc-4.4-20081107/libstdc++-v3/libsupc++/eh_alloc.cc:42:
/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/include/ext/concurrence.h: In constructor '__gnu_cxx::__cond::__cond()':
/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/include/ext/concurrence.h:281: warning: missing initializer for member '_pthread_cond::<anonymous struct>::__pthread_cond_magic'
/var/tmp//cc2pJBdQ.s: Assembler messages:
/var/tmp//cc2pJBdQ.s:9164: Internal error, aborting at dw2gencfi.c line 1267
Please report this bug.
make[4]: *** [eh_alloc.lo] Error 1
make[4]: Leaving directory `/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3/libsupc++'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/kkusuman/software/compileHere/gcc-4.4-20081107/sparc-sun-solaris2.8/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/home/kkusuman/software/compileHere/gcc-4.4-20081107'
make: *** [all] Error 2


I am using the Sun solaris cc compiler.
> cc -V
cc: Sun C 5.5 2003/03/12

But the binutils is compiled by myself.

> as --version
GNU assembler (GNU Binutils) 2.19
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `sparc-sun-solaris2.8'.

> ld --version
GNU ld (GNU Binutils) 2.19
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
Comment 1 Andrew Pinski 2008-11-14 22:02:12 UTC
>/var/tmp//cc2pJBdQ.s:9164: Internal error, aborting at dw2gencfi.c line 1267

You submit this to binutils, http://sourceware.org/bugzilla/ .
Comment 2 Kamaraju Kusumanchi 2008-11-18 14:28:11 UTC
I filed this bug against binutils as http://sourceware.org/bugzilla/show_bug.cgi?id=7032 . The conclusion there is that it is a compiler bug 
(since the abort is an unhandled case in a switch).

Could some one take a second look at this again?