Emerge of GCC 4.2.0 fails with internal compiler error: Segmentation fault Reproducible: Always Steps to Reproduce: 1.emerge gcc Actual Results: /var/tmp/portage/sys-devel/gcc-4.2.0/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c -march=athlon64 -O2 -pipe -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/../libdecnumber -I../libdecnumber insn-attrtab.c -o insn-attrtab.o /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/config/i386/i386.md: In function 'internal_dfa_insn_code': /var/tmp/portage/sys-devel/gcc-4.2.0/work/gcc-4.2.0/gcc/config/i386/i386.md:202: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/sys-devel/gcc-4.2.0/temp/ccrqza8r.out file, please attach this to your bugreport. make[3]: *** [insn-attrtab.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build/gcc' make[2]: *** [all-stageprofile-gcc] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build' make[1]: *** [stageprofile-bubble] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.0/work/build' make: *** [profiledbootstrap] Error 2 * * ERROR: sys-devel/gcc-4.2.0 failed. * Call stack: * ebuild.sh, line 1648: Called dyn_compile * ebuild.sh, line 988: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1328: Called toolchain_src_compile * toolchain.eclass, line 26: Called gcc_src_compile * toolchain.eclass, line 1546: Called gcc_do_make * toolchain.eclass, line 1420: Called die * * emake failed with profiledbootstrap nico> emerge info *** Deprecated use of action 'info', use '--info' instead Portage 2.1.3.3 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.6-r0, 2.6.21-gentoo-r3 x86_64) ================================================================= System uname: 2.6.21-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System release 1.12.10 Timestamp of tree: Sat, 04 Aug 2007 00:30:01 +0000 ccache version 2.4 [enabled] dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/ " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac alsa amd64 artworkextra asf auctex berkdb bitmap-fonts cairo cdr cli cracklib crypt dbus dri dvi emacs ffmpeg flac fortran gdbm gif glut gnome gnuplot gpm gstreamer gtk gtk2 guile hal iconv ipv6 isdnlog jack jpeg ladspa libg++ libnotify mad midi mp3 mpeg mudflap musicbrainz nautilus ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl png portaudio ppds pppd python readline reflection sdl seamonkey session spell spl ssl svg tagwriting tcpd tiff toolkit-scroll-bars truetype truetype-fonts type1-fonts unicode vorbis xft xml xorg zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
verifies it fails at the same exact place every time you try to emerge check `dmesg` to see if anything interesting shows up
(In reply to comment #1) > verifies it fails at the same exact place every time you try to emerge > > check `dmesg` to see if anything interesting shows up > I've tried 3 more times. All failed compiling insn-attrtab.c, but in slightly different ways. Try 1 was just like the bug report. Try 2 locked up my machine, but the compile log showed that it also stopped in insn-attrtab.c. Try 3 caused a reboot. Again the log stops at insn-attrtab.c. Didn't check dmesg after try 1, but I check the system log after 2 and 3 and there's no indication of a problem. I'm running 'emerge -e system' now.
emerge -e system failed in sandbox. From config.log: gcc-config error: i686-pc-linux-gnu-gcc wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile. Tried emerging gcc 4.1.2 and got the internal compiler error. Something's messed up on my system, but it's apparently not a gcc-4.2 bug. Sorry for the bogus report.