User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20060918 Firefox/2.0 Build Identifier: Emerging sys-libs/glibc-2.3.6-r4 fails with error: gcc: Internal error: Segmentation fault (program as) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i586-pc-linux-gnu-linuxthreads/libio/fputwc.os] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r4/work/glibc-2.3.6/libio' make[1]: *** [libio/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r4/work/glibc-2.3.6' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1. emerge glibc 2. wait for error to stop compile Actual Results: Last gcc line before error (and the error message): gcc fputwc_u.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=k6-2 -pipe -mpreferred-stack-boundary=2 -fPIC -I../include -I. -I/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i586-pc-linux-gnu-linuxthreads/libio -I.. -I../libio -I/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i586-pc-linux-gnu-linuxthreads -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i586 -I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i586 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/i386-pc-linux-gnu/3.4.6/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -D_IO_MTSAFE_IO -o /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i586-pc-linux-gnu-linuxthreads/libio/fputwc_u.os -MD -MP -MF /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i586-pc-linux-gnu-linuxthreads/libio/fputwc_u.os.dt -MT /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i586-pc-linux-gnu-linuxthreads/libio/fputwc_u.os gcc: Internal error: Segmentation fault (program as) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i586-pc-linux-gnu-linuxthreads/libio/fputwc.os] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r4/work/glibc-2.3.6/libio' make[1]: *** [libio/subdir_lib] Error 2 make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r4/work/glibc-2.3.6' make: *** [all] Error 2 !!! ERROR: sys-libs/glibc-2.3.6-r4 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile glibc-2.3.6-r4.ebuild, line 1128: Called toolchain-glibc_src_compile glibc-2.3.6-r4.ebuild, line 217: Called die !!! make for default failed !!! If you need support, post the topmost build error, and the call stack if relevant. Expected Results: Emerge completion without errors is the expected result. The error is the result of an attempt to migrate from a CHOST of i386-pc-linux-gnu to a CHOST of i586-pc-linux-gnu. Initially completed an 'emerge glibc binutils gcc' with no errors. I was attempting to re-emerge these when the error appeared compiling glibc. Prior to the initial emerge, I changed the CHOST variable in make.conf from i386-pc-linux-gnu to i586-pc-linux-gnu - this was the only variable changed in the make.conf file. /etc/make.conf: # These settings were set by the catalyst build script that automatically built this stage # Please consult /etc/make.conf.example for a more detailed example CFLAGS="-O2 -march=k6-2 -pipe" #CHOST="i386-pc-linux-gnu" CHOST="i586-pc-linux-gnu" #CHOST="i586-pc-linux-gnu" -- to do: recompile for i586 (http://www.gentoo.org/doc/en/gcc-upgrading.xml) CXXFLAGS="${CFLAGS}" MAKEOPTS="-j2" GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/" SYNC="rsync://laeb/gentoo-portage" USE="ipv6" #SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" PORTDIR_OVERLAY="/usr/local/portage" http_proxy="http://laeb:8080" #FEATURES="distcc" emerge --info output: Portage 2.1.1 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r4, 2.6.14-hardened-r8 i 586) ================================================================= System uname: 2.6.14-hardened-r8 i586 AMD-K6(tm) 3D processor Gentoo Base System version 1.12.5 Last Sync: Fri, 22 Sep 2006 14:20:01 +0000 distcc 2.18.3 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable d] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-O2 -march=k6-2 -pipe" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=k6-2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/" LINGUAS="" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d istfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://laeb/gentoo-portage" USE="berkdb crypt dlloader elibc_glibc hardened input_devices_keyboard input_dev ices_mouse ipv6 kernel_linux nls pam pic readline ssl tcpd userland_GNU userloca les x86 xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTA GE_RSYNC_EXTRA_OPTS
Can you reproduce the problem, i.e. does it fail *exactly* at the same place?
Issue has been resolved, problem determined to be hardware.