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

Bug 82079

Summary: Inconsistent errors from GCC during emerge
Product: Gentoo Linux Reporter: morgan harvey <mharvey>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: 2004.3   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description morgan harvey 2005-02-15 00:18:23 UTC
GCC has been offering me sporadic problems -- unpredictably -- during emerges. A package will fail to build with the following error (this is taken from an openoffice emerge):

g++-v3 -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DPOWERPC -DPPC -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSRX645  -DSHAREDLIB -D_DLL_  -DMULTITHREAD   -o ../../unxlngppc.pro/slo/svdoutlinercache.o /var/tmp/portage/openoffice-1.1.4/work/svx/source/svdraw/svdoutlinercache.cxx
g++: Internal error: Trace/breakpoint trap (program cc1plus)

After receiving this error, simply retrying seems to fix the problem. If there are several packages, however, the same error will pop up after the third or fourth (sometimes more, sometime fewer) package.

 http://bugs.gentoo.org/show_bug.cgi?id=58969 seems to be directly related to this bug but for x86.

Expected behavior: This error seems to be related to a problem in GCC. I guess expected behavior would be for the compiler not to bork out like that.

Reproducing: Try emerging something big (like OpenOffice) or something that causes 25 dependencies to be emerged with it -- that seems to be the best way...

Output from "emerge info":
Portage 2.0.51-r15 (default-linux/ppc/2004.3, gcc-3.4.1, glibc-2.3.3.20040420-r2, 2 .6.7 ppc)
=================================================================
System uname: 2.6.7 ppc 7457, altivec supported
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r6,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 10 2005, 07:40:12)]
dev-lang/python:     2.2.3-r6, 2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.90.0.3-r3
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/en v /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/ mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/dis tributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa altivec berkdb bitmap-fonts cdr cups dba dvd esd f77 fam font-server fo rtran gd gif gnome gpm gstreamer gtk gtk2 imagemagick imlib jpeg kde motif mozilla ncurses nls oggvorbis opengl pam perl png ppc python qt readline sdl ssl tcltk tcpd  tiff truetype truetype-fonts type1-fonts xml xml2 xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-15 02:20:20 UTC

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