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

Bug 146312

Summary: emerge -e system failed at GCC
Product: Gentoo Linux Reporter: Rex Lam <rexlam>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rex Lam 2006-09-04 14:13:56 UTC
What was trying to be accomplished:
  Upgrade GCC 3.3.x to 4.1.x.

Instruction followed:
  http://www.gentoo.org/doc/en/gcc-upgrading.xml#upgrade-3.3-to-3.4-emerge-e
  (See section 3. Upgrading from GCC-3.3 to 3.4 or greater)

Works all the way until Code Listing 3.6 AT emerge -e system.

emerge --info:
Portage 2.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.3.5-r2, 2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.2.3-r5, 2.3.4, 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.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://www.gtlib.gatech.edu/pub/gentoo"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 berkdb bitmap-fonts cjk cli crypt dlloader dri fortran gdbm gpm ipv6 isdnlog libg++ ncurses nls nptl nptlonly pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode xorg zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Emerge output error message:
    15522 DFA states,           99908 DFA arcs
      463 minimal DFA states,    3038 minimal DFA arcs
      273 all insns         21 insn equivalence classes
 3057 transition comb vector els,  9723 trans table els: use comb vect
 3057 state alts comb vector els,  9723 state alts table els: use comb vect
 9723 min delay table els, compression factor 1

17533 all allocated states,     102661 all allocated arcs
32710 all allocated alternative states
 6256 all transition comb vector els, 16780 all trans table els
 6256 all state alts comb vector els, 16780 all state alts table els
16780 all min delay table els
    0 locked states num

  transformation: 0.082987, building DFA: 92.089005
  DFA minimization: 2.358642, making insn equivalence: 0.011997
 all automaton generation: 96.331357, output: 0.631904
/bin/sh /var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../move-if-change tmp-attrtab.c insn-attrtab.c
insn-attrtab.c is unchanged
echo timestamp > s-attrtab
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/   -march=pentium2 -pipe -O2 -fprofile-generate -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/. -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../include -I/var/tmp/portage/gcc-4.1.1/work/gcc-4.1.1/gcc/../libcpp/include     -c insn-attrtab.c \
  -o insn-attrtab.o
{standard input}: Assembler messages:
{standard input}:33466: Warning: end of file not at end of a line; newline inserted
{standard input}:35157: Error: suffix or operands invalid for `test'
xgcc: Internal error: Terminated (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [insn-attrtab.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-4.1.1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called toolchain_src_compile
  toolchain.eclass, line 24:   Called gcc_src_compile
  toolchain.eclass, line 1528:   Called gcc_do_make
  toolchain.eclass, line 1402:   Called die

!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, and the call stack if relevant.

Remarks:
  Reproducible every time.

==The End==
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-04 15:27:12 UTC
This is NOT a bugzilla product bug. Please, read the descriptions.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-09-04 15:27:50 UTC
Looks like you don't have enough memory.


*** This bug has been marked as a duplicate of 20600 ***
Comment 3 Rex Lam 2006-09-04 16:03:56 UTC
(In reply to comment #2)
> Looks like you don't have enough memory.
> 
> 
> *** This bug has been marked as a duplicate of 20600 ***
> 

Where in the output indicates that?
I have 128 MB of ram and 1 GB of swap.
Comment 4 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-05 11:56:43 UTC
(In reply to comment #3)
> Where in the output indicates that?

"Terminated (program cc1)" <- this means cc1 was killed by OOM (Out of Memory), and thus that you do not have enough memory.

Comment 5 Rex Lam 2006-09-05 12:05:17 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Where in the output indicates that?
> 
> "Terminated (program cc1)" <- this means cc1 was killed by OOM (Out of Memory),
> and thus that you do not have enough memory.
> 

So I simply need more RAM?  I have a gig of swap allocated though.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-09-05 14:02:59 UTC
Go check available RAM and disk space... 
Comment 7 Rex Lam 2006-09-05 14:15:22 UTC
I guess that my question is that isn't a gig of swap enough to have the compilation?