sys-devel/gcc-4.3.2-r3 fails to recompile: [...] mv -f Tcollect2 collect2 i686-pc-linux-gnu-gcc -O -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -Wl,-O1 -o cpp gcc.o opts-common.o gcc-options.o cppspec.o \ intl.o prefix.o version.o driver-i386.o ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a i686-pc-linux-gnu-gcc -c -O -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libdecnumber/bid -I../libdecnumber insn-attrtab.c -o insn-attrtab.o /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/config/i386/sse.md: In function 'get_attr_mode': /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/config/i386/sse.md:1317: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make[3]: *** [insn-attrtab.o] Error 1 make[3]: *** Waiting for unfinished jobs.... rm gcc.pod make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build' make: *** [bootstrap-lean] Error 2 * * ERROR: sys-devel/gcc-4.3.2-r3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4796: Called toolchain_src_compile * environment, line 5322: Called gcc_src_compile * environment, line 3050: Called gcc_do_make * environment, line 2841: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * The die message: * emake failed with bootstrap-lean * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/sys-devel:gcc-4.3.2-r3:20090703-080850.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment'. Reproducible: Always /var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment: ALSA_CARDS= ALSA_PCM_PLUGINS='adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol' APACHE2_MODULES='actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias' ARCH=x86 BINPATH=/usr/i686-pc-linux-gnu/gcc-bin/4.3.2 BRANCH_UPDATE= BRANDING_GCC_PKGVERSION='Gentoo 4.3.2-r3 p1.6, pie-10.1.5' CBUILD=i686-pc-linux-gnu CDEFINE_default=__unix__ CFLAGS='-march=pentium3 -O2 -pipe' CFLAGS_default= CHOST=i686-pc-linux-gnu CHOST_default=i686-pc-linux-gnu CROSSCOMPILE_OPTS= CTARGET=i686-pc-linux-gnu CTARGET_default=i686-pc-linux-gnu CVS_RSH=ssh CXXFLAGS='-march=pentium3 -O2 -pipe' DATAPATH=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.2 DEBUGBUILD=1 DEFAULT_ABI=default DEFINED_PHASES=' compile install postinst postrm preinst prerm setup test unpack' DEPEND=$'>=sys-libs/zlib-1.1.4\n\t>=sys-devel/gcc-config-1.4\n\tvirtual/libiconv\n\t>=dev-libs/gmp-4.2.1\n\t>=dev-libs/mpfr-2.3\n\t!build? (\n\t\tgcj? (\n\t\t\tgtk? (\n\t\t\t\tx11-libs/libXt\n\t\t\t\tx11-libs/libX11\n\t\t\t\tx11-libs/libXtst\n\t\t\t\tx11-proto/xproto\n\t\t\t\tx11-proto/xextproto\n\t\t\t\t>=x11-libs/gtk+-2.2\n\t\t\t\tx11-libs/pango\n\t\t\t)\n\t\t\t>=media-libs/libart_lgpl-2.1\n\t\t\tapp-arch/zip\n\t\t\tapp-arch/unzip\n\t\t)\n\t\t>=sys-libs/ncurses-5.2-r2\n\t\tnls? ( sys-devel/gettext )\n\t)\n\ttest? ( sys-devel/autogen dev-util/dejagnu )\n\t>=sys-apps/texinfo-4.2-r4\n\t>=sys-devel/bison-1.875\n\tsys-devel/flex\n\tamd64? (\n\t\t>=sys-libs/glibc-2.7-r2\n\t\tmultilib? (\n\t\t\tgcj? ( app-emulation/emul-linux-x86-xlibs )\n\t\t)\n\t)\n\tppc? ( >=sys-devel/binutils-2.17 )\n\tppc64? ( >=sys-devel/binutils-2.17 )\n\t>=sys-devel/binutils-2.15.94 sys-devel/gnuconfig >=sys-apps/sed-4' DESCRIPTION='The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking' DESTTREE=/usr DIROPTIONS=-m0755 EAPI=0 ELIBC=glibc ELIBTOOL_VERSION=2.0.2 ELT_APPLIED_PATCHES=' 1.5.4 2.2 1.5.6 2.2.6' ELT_LTMAIN_SH=/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/ltmain.sh ELT_PATCH_DIR=/usr/portage/eclass/ELT-patches EPATCH_EXCLUDE= EPATCH_FORCE=no EPATCH_MULTI_MSG='Applying various patches (bugfixes/updates) ...' EPATCH_OPTS='-g0 -E --no-backup-if-mismatch' EPATCH_SINGLE_MSG= EPATCH_SOURCE=//etc/portage/patches/sys-devel/gcc EPATCH_SUFFIX=patch ETYPE=gcc-compiler EXEOPTIONS=-m0755 FEATURES='distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch' GCCMAJOR=4 GCCMICRO=2 GCCMINOR=3 GCC_BRANCH_VER=4.3 GCC_CONFIG_VER=4.3.2 GCC_FILESDIR=/usr/portage/sys-devel/gcc/files GCC_LIB_COMPAT_ONLY=false GCC_PV=4.3.2 GCC_PVR=4.3.2-r3 GCC_RELEASE_VER=4.3.2 GCC_TARGET_NO_MULTILIB=false GCC_VAR_TYPE=versioned HOMEPAGE=http://gcc.gnu.org/ HTB_GCC_VER=4.3.2 INCLUDEPATH=/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include INHERITED='toolchain portability flag-o-matic versionator multilib fixheadtails libtool gnuconfig toolchain-funcs eutils' INPUT_DEVICES='keyboard mouse evdev' INSDESTTREE= INSOPTIONS=-m0644 IUSE=' multislot nptl test altivec build fortran nls nocxx nopie bootstrap doc gcj gtk hardened libffi multilib objc vanilla ip28 ip32r10k n32 n64 objc-gc mudflap objc++ openmp fixed-point' KERNEL=linux KERNEL_ABI=default KEYWORDS='alpha amd64 ~arm -hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd' KV=2.6.29-gentoo-r5 LCD_DEVICES='bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text' LDFLAGS=-Wl,-O1 LDFLAGS_default= LIBDIR_default=lib LIBOPTIONS=-m0644 LIBPATH=/usr/lib/gcc/i686-pc-linux-gnu/4.3.2 LICENSE='GPL-3 LGPL-2.1 libgcc libstdc++' MAKEOPTS=-j2 MULTILIB_ABIS=default NETBEANS='apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml' PATCH_GCC_VER=4.3.2 PATCH_VER=1.6 PDEPEND='>=sys-devel/gcc-config-1.4 elibc_glibc? ( >=sys-libs/glibc-2.6 ) ' PIE_GCC_VER=4.3.2 PIE_GLIBC_STABLE='x86 amd64 ~ppc ~ppc64 ~arm ~sparc' PIE_UCLIBC_STABLE='x86 arm' PIE_VER=10.1.5 PORTAGE_COMPRESS_EXCLUDE_SUFFIXES='css gif htm[l]? jp[e]?g js pdf png' PORTAGE_NICENESS=10 PP_GCC_VER=4.3.2 PREFIX=/usr PROFILE_ONLY_VARIABLES='ARCH ELIBC KERNEL USERLAND' PROPERTIES= PROVIDE= RDEPEND=$'>=sys-libs/zlib-1.1.4\n\t>=sys-devel/gcc-config-1.4\n\tvirtual/libiconv\n\t>=dev-libs/gmp-4.2.1\n\t>=dev-libs/mpfr-2.3\n\t!build? (\n\t\tgcj? (\n\t\t\tgtk? (\n\t\t\t\tx11-libs/libXt\n\t\t\t\tx11-libs/libX11\n\t\t\t\tx11-libs/libXtst\n\t\t\t\tx11-proto/xproto\n\t\t\t\tx11-proto/xextproto\n\t\t\t\t>=x11-libs/gtk+-2.2\n\t\t\t\tx11-libs/pango\n\t\t\t)\n\t\t\t>=media-libs/libart_lgpl-2.1\n\t\t\tapp-arch/zip\n\t\t\tapp-arch/unzip\n\t\t)\n\t\t>=sys-libs/ncurses-5.2-r2\n\t\tnls? ( sys-devel/gettext )\n\t) ' RESTRICT=strip S=/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2 SANDBOX_DEBUG=0 SANDBOX_DENY=/etc/ld.so.preload SANDBOX_PID=9942 SANDBOX_PREDICT=/dev/console:/dev/crypto:/dev/random:/proc/self/maps:/var/tmp/portage/sys-devel/gcc-4.3.2-r3/homedir SANDBOX_READ=/:/dev/shm:/dev/stdin:/var/tmp SANDBOX_VERBOSE=1 SANDBOX_WRITE=:/dev/console:/dev/fd:/dev/full:/dev/null:/dev/pts/:/dev/pty:/dev/shm:/dev/stderr:/dev/stdout:/dev/tts:/dev/tty:/dev/vc/:/dev/zero:/proc/self/fd:/tmp/:/usr/lib/cf:/usr/lib/conftest:/usr/lib32/cf:/usr/lib32/conftest:/usr/lib64/cf:/usr/lib64/conftest:/usr/tmp/cf:/usr/tmp/conftest:/var/tmp:/var/tmp/:/var/tmp/portage/sys-devel/gcc-4.3.2-r3/homedir/.bash_history SLOT=4.3 SPECS_GCC_VER=4.3.2 SPECS_VER=0.9.4 SPLIT_SPECS=no SRC_URI=$'mirror://gnu/gcc/gcc-4.3.2/gcc-4.3.2.tar.bz2 mirror://gentoo/gcc-4.3.2-uclibc-patches-1.0.tar.bz2 http://dev.gentoo.org/~lv/GCC/gcc-4.3.2-uclibc-patches-1.0.tar.bz2 http://dev.gentoo.org/~eradicator/gcc/gcc-4.3.2-uclibc-patches-1.0.tar.bz2 http://dev.gentoo.org/~vapier/dist/gcc-4.3.2-uclibc-patches-1.0.tar.bz2 http://dev.gentoo.org/~halcy0n/patches/gcc-4.3.2-uclibc-patches-1.0.tar.bz2 mirror://gentoo/gcc-4.3.2-patches-1.6.tar.bz2 http://dev.gentoo.org/~lv/GCC/gcc-4.3.2-patches-1.6.tar.bz2 http://dev.gentoo.org/~eradicator/gcc/gcc-4.3.2-patches-1.6.tar.bz2 http://dev.gentoo.org/~vapier/dist/gcc-4.3.2-patches-1.6.tar.bz2 http://dev.gentoo.org/~halcy0n/patches/gcc-4.3.2-patches-1.6.tar.bz2 !nopie? ( mirror://gentoo/gcc-4.3.2-piepatches-v10.1.5.tar.bz2 http://dev.gentoo.org/~lv/GCC/gcc-4.3.2-piepatches-v10.1.5.tar.bz2 http://dev.gentoo.org/~eradicator/gcc/gcc-4.3.2-piepatches-v10.1.5.tar.bz2 http://dev.gentoo.org/~vapier/dist/gcc-4.3.2-piepatches-v10.1.5.tar.bz2 http://dev.gentoo.org/~halcy0n/patches/gcc-4.3.2-piepatches-v10.1.5.tar.bz2 ) !nopie? ( mirror://gentoo/gcc-4.3.2-specs-0.9.4.tar.bz2 http://dev.gentoo.org/~lv/GCC/gcc-4.3.2-specs-0.9.4.tar.bz2 http://dev.gentoo.org/~eradicator/gcc/gcc-4.3.2-specs-0.9.4.tar.bz2 http://dev.gentoo.org/~vapier/dist/gcc-4.3.2-specs-0.9.4.tar.bz2 http://dev.gentoo.org/~halcy0n/patches/gcc-4.3.2-specs-0.9.4.tar.bz2 )\n\t\t\tgcj? ( ftp://sourceware.org/pub/java/ecj-4.3.jar )' STDCXX_INCDIR=/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/g++-v4 UCLIBC_GCC_VER=4.3.2 UCLIBC_VER=1.0 USE='elibc_glibc kernel_linux mudflap nls nptl openmp userland_GNU x86' USERLAND=GNU VERSIONATOR_OLD_EXTGLOB='shopt -u extglob' VERSIONATOR_RECURSION=0 VIDEO_CARDS= _=PKG_INSTALL_MASK _E_DOCDESTTREE_= _E_EXEDESTTREE_= ___ECLASS_RECUR_MULTILIB=yes ___ECLASS_RECUR_TOOLCHAIN_FUNCS=yes _pipestatus='0 0' conf=gcc-4.3.2-r3 fix_files=' contrib/test_summary' gcc_common_hard='-DEFAULT_RELRO -DEFAULT_BIND_NOW' ELT_find_ltmain_sh () { local x=; local dirlist=; [...] # emerge --info Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.29-gentoo-r5-i686-Pentium_III_-Coppermine-with-glibc2.0 Timestamp of tree: Fri, 03 Jul 2009 07:20:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.4-r3 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.7.9-r1, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=pentium3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.linux.org.tr/pub/mirrors/gentoo/" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl apache2 berkdb bzip2 cjk cli cracklib crypt dri fortran gdbm gpm iconv imap isdnlog kerberos ldap libwww maildir midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection sasl session spl ssl sysfs tcpd unicode usb x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
There was a recent change in toolchain.eclass which introduced the nptl USE flag to gcc (hence the recompile for a stable system): http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain.eclass?r1=1.400&r2=1.401 https://bugs.gentoo.org/show_bug.cgi?id=270767 Affects all gcc versions.
(In reply to comment #0) I'm also having problems with this change, although a bit of a different error, but it is 100% reproducable, at first I suspected the hardware, but it always fails with the same exact error, at the same exact point: gcc-4.3.2/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/../libdecnumber/bid -I../libdecnumber /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/sbitmap.c -o sbitmap.o /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/sbitmap.c: In function ‘sbitmap_popcount’: /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/sbitmap.c:1047: internal compiler error: in memory_address_length, at config/i386/i386.c:16380 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make[3]: *** [sbitmap.o] Error 1 make[3]: *** Waiting for unfinished jobs.... rm gfortran.pod gcc.pod make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build' make: *** [bootstrap-lean] Error 2 * * ERROR: sys-devel/gcc-4.3.2-r3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4828: Called toolchain_src_compile * environment, line 5354: Called gcc_src_compile * environment, line 3082: Called gcc_do_make * environment, line 2873: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * The die message: * emake failed with bootstrap-lean * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/sys-devel:gcc-4.3.2-r3:20090703-093537.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment'. emerge --info output: Portage 2.2_rc33 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.29-gentoo-r5-i686-AMD_Phenom-tm-_8650_Triple-Core_Processor-with-glibc2.0 Timestamp of tree: Fri, 03 Jul 2009 09:30:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.5.4-r3 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -w" 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/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -w" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.cc.uoc.gr/mirrors/linux/gentoo/ http://files.gentoo.gr" LDFLAGS="-Wl,-O1 -Wl,-s -Wl,--sort-common -Wl,--as-needed -Wl,-z,now" LINGUAS="en" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib acpi alsa apache2 asf async audiofile branding bzip2 cairo caps cdr cli cracklib crypt ctype cups curl dbus dedicated deprecated divx dri dts dvd dvdnav dvdr dvdread emboss emerald encode exif expat fam fbcondecor ffmpeg firefox flac foomaticdb fortran gd gdbm gif glibc-omitfp glitz glut gmedia gmp gnome gnome-keyring gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imagemagick imap imlib isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility lcms libcaca libnotify libwww lm_sensors mad magic maildir matroska mhash midi mikmod mmap mmx mmxext mng motif mozilla moznocompose moznoirc moznomail mp3 mpeg mpm-prefork msn mudflap mysql ncurses networking new-login newspr nforce2 nls no-htdocs no-old-linux nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl php pic png ppds pppd python qt3 qt3support qt4 quicktime rar readline realmedia reflection regex resolvconf rtc samba sasl sdl session slang spell spl srt sse sse2 sse3 sse4a ssl suhosin svg swat sysfs tcltk tcpd tiff transparency truetype unicode usb userlocales vcd vda vorbis win32codecs wmp x264 x86 xcomposite xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd vesa" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
It fails reproducibly on my machine with again a different error: /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/lower-subreg.c: In function ‘decompose_multiword_subregs’: /var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/gcc-4.3.2/gcc/lower-subreg.c:1400: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make[3]: *** [lower-subreg.o] Error 1 make[3]: *** Waiting for unfinished jobs.... rm gcc.pod make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.2-r3/work/build' make: *** [bootstrap-lean] Error 2 * * ERROR: sys-devel/gcc-4.3.2-r3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 4823: Called toolchain_src_compile * environment, line 5349: Called gcc_src_compile * environment, line 3077: Called gcc_do_make * environment, line 2868: Called die * The specific snippet of code: * emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}"; * The die message: * emake failed with bootstrap-lean * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/sys-devel:gcc-4.3.2-r3:20090704-074400.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.2-r3/temp/environment'. * ################## emerge --info ################## Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r1 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_E8500_@_3.16GHz-with-glibc2.0 Timestamp of tree: Sat, 04 Jul 2009 01:45:02 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r3 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" 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/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--color y --with-bdeps y" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ " LANG="en_US.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="--jobs=5 --load-average=44" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/mpd /usr/local/portage/layman/devnull /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl acpi alsa berkdb bzip2 cli cracklib crypt cups dri flac fortran gdbm gpm iconv ieee1394 isdnlog maildir midi mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl pppd python readline reflection session spl ssl startup-notification svg sysfs tcpd truetype unicode vorbis x86 xorg xulrunner zlib" ALSA_CARDS="hda-intel emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon directory ptp2 usb" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I managed to compile it finally by changing my CFLAGS, specifically I changed "march=native" to "march=i686 mtune=amdfam10" and it worked.
the nptl USE flag has nothing to do with glibc systems
(In reply to comment #5) > the nptl USE flag has nothing to do with glibc systems You can see from my emerge --info above CFLAGS="-march=pentium3 -O2 -pipe" that I do not use march=native. Please reconsider your conclusion that march=native is the cause of this error.
/etc/make.conf: MAKEOPTS="-j1" solves the problem for me. Was MAKEOPTS="-j2". Closing.
(In reply to comment #7) > /etc/make.conf: > MAKEOPTS="-j1" > > solves the problem for me. Was MAKEOPTS="-j2". > > Closing. Confirmed. Putting MAKEOPTS="-j1" in /etc/portage/env/sys-devel/gcc solves it nicely. Thanks for the research & sharing!