When compiling elfutils-0.140, I encountered the following ICE: x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -I. -I.. -I. -I. -I./../libelf -I./../libebl -I./../libdw -I.. -I./../lib -Wall -Wshadow -Wunused -Wformat=2 -std=gnu99 -march=amdfam10 -O3 -pipe -ggdb -fstack-protector -MT link_map.o -MD -MP -MF .deps/link_map.Tpo -c -o link_map.o link_map.c link_map.c: In function ‘dwfl_link_map_report’: link_map.c:864: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make: *** [link_map.o] Error 1
I'm using the gcc 4.4-20090313 snapshot. I get the same error on both i686 (athlon-xp) and x86_64 (amdfam10). I used -save-temps, and started some experimenting: gcc -c link_map.i -o link_map.o -std=gnu99 -O1 -ggdb : fails gcc -c link_map.i -o link_map.o -std=gnu99 -O1 -g : fails gcc -c link_map.i -o link_map.o -std=gnu99 -O1 : succeeds Removing -ggdb allows the build of elfutils-0.140 to successfully complete. Here is the output of gcc -v from my x86_64 machine: Using built-in specs. Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.4.0_alpha20090313/work/gcc-4.4-20090313/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.0-alpha20090313 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0-alpha20090313/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.0-alpha20090313 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.0-alpha20090313/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.0-alpha20090313/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0-alpha20090313/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --enable-cld --enable-java-awt=gtk --enable-objc-gc --enable-languages=c,c++,java,objc,obj-c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.0_alpha20090313' --without-ppl --without-cloog --disable-ppl-version-check --disable-cloog-version-check Thread model: posix gcc version 4.4.0-alpha20090313 (experimental) (Gentoo 4.4.0_alpha20090313) This snapshot is compiled from a Gentoo ebuild, but no patches have been applied. -- Summary: ICE with gcc 4.4-20090313 when compiling elfutils-0.140 with -g Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cneil at yahoo dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39486