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

Bug 266073

Summary: gcc-4.3.3-r2 fails to compile: emake failed with bootstrap-lean
Product: Gentoo Linux Reporter: samLT <samuel.lethiec>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED CANTFIX    
Severity: normal CC: andre
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description samLT 2009-04-14 06:28:39 UTC
Hello,

I ca't install gcc-4.3.3-r2, it fails with the following error message:

/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c   -march=core2 -O2 -pipe -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    -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber/bid -I../libdecnumber    /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/value-prof.c -o value-prof.o
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c   -march=core2 -O2 -pipe -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    -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber/bid -I../libdecnumber    /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/ipa-inline.c -o ipa-inline.o
/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c   -march=core2 -O2 -pipe -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    -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/../libdecnumber/bid -I../libdecnumber    /var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/gcc-4.3.3/gcc/ipa-struct-reorg.c -o ipa-struct-reorg.o
{standard input}: {standard input}: Assembler messages:
{standard input}:35923: Warning: end of file not at end of a line; newline inserted
{standard input}:37075: Error: suffix or operands invalid for `movq'
Assembler messages:
{standard input}:67752: Warning: end of file not at end of a line; newline inserted
{standard input}:69001: Error: suffix or operands invalid for `movq'
xgcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
xgcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[3]: *** [insn-recog.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [insn-attrtab.o] Error 1
rm gcc.pod gfortran.pod
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.3-r2/work/build'
make: *** [bootstrap-lean] Error 2
 *
 * ERROR: sys-devel/gcc-4.3.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 4836:  Called toolchain_src_compile
 *             environment, line 5357:  Called gcc_src_compile
 *             environment, line 3100:  Called gcc_do_make
 *             environment, line 2891:  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/tmp/portage/sys-devel/gcc-4.3.3-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.3-r2/temp/environment'.
 *

>>> Failed to emerge sys-devel/gcc-4.3.3-r2, Log file:

>>>  '/var/tmp/portage/sys-devel/gcc-4.3.3-r2/temp/build.log'

 * Messages for package sys-devel/gcc-4.3.3-r2:

 *
 * ERROR: sys-devel/gcc-4.3.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 4836:  Called toolchain_src_compile
 *             environment, line 5357:  Called gcc_src_compile
 *             environment, line 3100:  Called gcc_do_make
 *             environment, line 2891:  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/tmp/portage/sys-devel/gcc-4.3.3-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.3-r2/temp/environment'.
 *

 * Regenerating GNU info directory index...
 * Processed 77 info files.



If you need anything else, just say so.

Thank you

Reproducible: Always

Steps to Reproduce:
1. start a stage3 install
2. emerge -DNuav system
3. it fails on gcc with the above error



emerge --info:
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27.21-std117-amd64 x86_64)
=================================================================
System uname: Linux-2.6.27.21-std117-amd64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.0.0
Timestamp of tree: Mon, 13 Apr 2009 19:45:01 +0000
app-shells/bash:     4.0_p17
dev-lang/python:     2.5.4-r2, 2.6.1-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/var/bin-pkgs"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="synaptics keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Sebastian Luther (few) 2009-04-14 06:50:48 UTC
Does it always fail with the exact same error message at the same point if you try again?
Comment 2 samLT 2009-04-14 09:25:40 UTC
(In reply to comment #1)
> Does it always fail with the exact same error message at the same point if you
> try again?
> 
yes, I just tried, and it fails with the exact same error (I copied the same amount af text before the error, and then diff'ed it with the previous try, there is no difference).


Comment 3 samLT 2009-04-14 12:34:50 UTC
looking at my emerge --info, I noticed the CXXFLAGS were not the same as the CFLAGS, I don't know much about CFLAGS, but I've always seen CXXFLAGS="${CFLAGS}" in make.conf. So I decided to change the default make.conf, and set CXXFLAGS="${CFLAGS}".

I really don't know if that's related or not but it worked (gcc compiled just fine). That's the only things I changed (apart from rebooting on the rescue cd and chrooting again.

I suppose we can close this bug? Unless you want me to try something else?
Comment 4 SpanKY gentoo-dev 2009-04-18 17:27:30 UTC
xgcc: Internal error: Killed (program cc1)

looks like your system ran out of resources.  gcc-4.3 is known to require more in some cases, so there isnt much we can do.  dont use -pipe, turn down your MAKEOPTS, and increase ram/swap.

look at `dmesg` to find out more.
Comment 5 André Terpstra 2009-12-20 08:40:49 UTC
*** Bug 297495 has been marked as a duplicate of this bug. ***