Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 198819

Summary: gcc: Internal error: Segmentation fault
Product: Gentoo Linux Reporter: Fozzy <h2o2>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fozzy 2007-11-11 15:33:43 UTC
gcc   -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.2.2/work/gcc-4.2.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.2.2/work/gcc-4.2.2/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.2.2/work/gcc-4.2.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.2.2/work/gcc-4.2.2/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.2.2/work/gcc-4.2.2/gcc/../libdecnumber -I../libdecnumber    \
  -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/usr/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/usr/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.2.2\" -DDEFAULT_TARGET_MACHINE=\"i686-pc-linux-gnu\" -DSTANDARD_BINDIR_PREFIX=\"/usr/i686-pc-linux-gnu/gcc-bin/4.2.2/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\"  `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
  -c /var/tmp/portage/sys-devel/gcc-4.2.2/work/gcc-4.2.2/gcc/gcc.c -o gcc.o)
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [gcc.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.2/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.2/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.2/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.2.2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 5361:   Called src_compile
  ebuild.sh, line 1304:   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
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.2.2/temp/build.log'.

Reproducible: Always

Steps to Reproduce:
1.emerge (gcc or kde or some other large packet)
2.
3.

Actual Results:  
  -c /var/tmp/portage/sys-devel/gcc-4.2.2/work/gcc-4.2.2/gcc/gcc.c -o gcc.o)
gcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [gcc.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.2/work/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.2/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.2.2/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.2.2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 5361:   Called src_compile
  ebuild.sh, line 1304:   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
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-4.2.2/temp/build.log'.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2007-11-11 15:39:45 UTC
emerge --info please.
Comment 2 Fozzy 2007-11-11 19:11:49 UTC
(In reply to comment #1)
> emerge --info please.
> 

Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 unknown
Timestamp of tree: Sun, 11 Nov 2007 01:47:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61
sys-devel/automake:  1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.23
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en ru"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="(multilib) 3dnow X Xaw3d a52 aac aalib acl acpi alsa ao apm arts audiofile automount bash-completion bcmath bitmap-fonts bzip2 cairo cdb cdr cli cracklib crypt cscope ctype cups curl curlwrappers dbus djvu dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gcj gdbm gif glut gpm gstreamer gtk hal iconv imagemagick imlib ip28 ip32r10k isdnlog jpeg jpeg2k kde kerberos ldap mad midi mikmod mmx mp3 mpeg mudflap multislot ncurses nls nptl nptlonly objc objc++ objc-gc ogg opengl openmp oss pam pcre pdf perl png portage pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sqlite sqlite3 sse ssl svg syslog tcl tcpd threads tiff tk truetype truetype-fonts type1-fonts unicode vim-syntax vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="softvol shm dsnoop" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Error ocurs at all version of gcc and/or kernel. memtest86 ends without errors.
Comment 3 SpanKY gentoo-dev 2007-11-11 19:33:04 UTC
does it crash at the same spot every time ?
Comment 4 Fozzy 2007-11-11 20:05:04 UTC
(In reply to comment #3)
> does it crash at the same spot every time ?
> 
No it doesn't. How I see, it crashes at large source files (for example gcc, glibc, binutils, kdebase)
Comment 5 SpanKY gentoo-dev 2007-11-11 20:08:13 UTC

*** This bug has been marked as a duplicate of bug 20600 ***