Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433469 - x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Summary: x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-30 22:44 UTC by James Ashley
Modified: 2012-09-03 11:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,378.15 KB, text/plain)
2012-08-30 22:44 UTC, James Ashley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Ashley 2012-08-30 22:44:46 UTC
Created attachment 322603 [details]
Build log

Reproducible: Always

Steps to reproduce:
emerge --update binutils

Expected results:
updated binutils

Actual results:

...
mv -f .deps/int_encoding.Tpo .deps/int_encoding.Po 
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold  -I/var/tmp/portag
ls-2.22-r1/work/binutils-2.22/gold -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold/../include -I/var/tmp/portails-2.22-r1/work/binutils-2.22/gold/../elfcpp DLOCALEDIR="\"/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/locale\"" -DBINDIR="\
nux-gnu/binutils-bin/2.22\"" -DTOOLBINDIR="\"/usr/x86_64-pc-linux-gnu/bin\""   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=6
rge.o -O2 -pipe -MT merge.o -MD -MP -MF .deps/merge.Tpo -c -o merge.o /var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22
mv -f .deps/mapfile.Tpo .deps/mapfile.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold  -I/var/tmp/portag
ls-2.22-r1/work/binutils-2.22/gold -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold/../include -I/var/tmp/porta
ils-2.22-r1/work/binutils-2.22/gold/../elfcpp -DLOCALEDIR="\"/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/locale\"" -DBINDIR="\
nux-gnu/binutils-bin/2.22\"" -DTOOLBINDIR="\"/usr/x86_64-pc-linux-gnu/bin\""   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=6
ject.o -O2 -pipe -MT object.o -MD -MP -MF .deps/object.Tpo -c -o object.o /var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-
c
mv -f .deps/merge.Tpo .deps/merge.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold  -I/var/tmp/portag
ls-2.22-r1/work/binutils-2.22/gold -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold/../include -I/var/tmp/porta
ils-2.22-r1/work/binutils-2.22/gold/../elfcpp -DLOCALEDIR="\"/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/locale\"" -DBINDIR="\
nux-gnu/binutils-bin/2.22\"" -DTOOLBINDIR="\"/usr/x86_64-pc-linux-gnu/bin\""   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=6
tions.o -O2 -pipe -MT options.o -MD -MP -MF .deps/options.Tpo -c -o options.o /var/tmp/portage/sys-devel/binutils-2.22-r1/work/binut
ons.cc
mv -f .deps/options.Tpo .deps/options.Po
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold  -I/var/tmp/portag
ls-2.22-r1/work/binutils-2.22/gold -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold/../include -I/var/tmp/porta
ils-2.22-r1/work/binutils-2.22/gold/../elfcpp -DLOCALEDIR="\"/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/locale\"" -DBINDIR="\
nux-gnu/binutils-bin/2.22\"" -DTOOLBINDIR="\"/usr/x86_64-pc-linux-gnu/bin\""   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=6
tput.o -O2 -pipe -MT output.o -MD -MP -MF .deps/output.Tpo -c -o output.o /var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-
c

x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[4]: *** [output.o] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/incremental.Tpo .deps/incremental.Po
mv -f .deps/layout.Tpo .deps/layout.Po
mv -f .deps/object.Tpo .deps/object.Po
make[4]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.22-r1/work/build/gold'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.22-r1/work/build/gold'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.22-r1/work/build/gold'
make[1]: *** [all-gold] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.22-r1/work/build'
make: *** [all] Error 2
emake failed

(etc)

emerge --info '=sys-devel/binutils-2.22-r1'
 
 Portage 2.1.11.9 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r2, 2.6.35.4-rscloud x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35.4-rscloud-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2374_HE-with-gentoo-2.1
Timestamp of tree: Thu, 30 Aug 2012 13:30:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.6.8, 3.1.5, 3.2.3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.2, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-o
wned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 -
-exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre pppd
readline session sse sse2 ssl tcpd unicode zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 e
s1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare d
snoop 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 aut
hz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config l
ogio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow
 plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPS
D_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtc
m104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44
780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 p
ython2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx triden
t vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq stea
l rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

There's also an error in the build log about saving and restoring the pwd. That goes away when I run in /root, and I really don't believe it's related.
Comment 1 James Ashley 2012-08-31 00:54:22 UTC
It looks like I lied about its reproducibility. When I re-ran the emerge, it worked up until this error:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold  -I/var/tmp/portage/sys-devel/binuti
ls-2.22-r1/work/binutils-2.22/gold -I/var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold/../include -I/var/tmp/portage/sys-devel/binut
ils-2.22-r1/work/binutils-2.22/gold/../elfcpp -DLOCALEDIR="\"/usr/share/binutils-data/x86_64-pc-linux-gnu/2.22/locale\"" -DBINDIR="\"/usr/x86_64-pc-li
nux-gnu/binutils-bin/2.22\"" -DTOOLBINDIR="\"/usr/x86_64-pc-linux-gnu/bin\""   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=re
loc.o -O2 -pipe -MT reloc.o -MD -MP -MF .deps/reloc.Tpo -c -o reloc.o /var/tmp/portage/sys-devel/binutils-2.22-r1/work/binutils-2.22/gold/reloc.cc
{standard input}: Assembler messages:
{standard input}:54471: Warning: end of file not at end of a line; newline inserted
{standard input}:54547: Error: undefined symbol `.LLSDACSE6047' in operation
{standard input}:54573: Error: undefined symbol `.LFB' in operation
x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.

(which is farther along)

And I to include the emerge -pqv:
[ebuild     U ] sys-devel/binutils-2.22-r1 [2.20.1-r1] USE="cxx%* nls zlib%* -multislot -multitarget -static-libs% -test -vanilla"

I ran it again and kept an eye on top. The behavior I saw there was:
4 instances of cc1plus, each averaging about 15% of "memory". Compilation paused for several minutes on options.cc. Nothing seemed to be using much CPU (the 4 cc1plus processes were sitting at around 2-3%) or RAM, but available memory shrunk to basically 0.

Eventually, it moved on to output.cc. Some RAM was restored, but not much. A few minutes later one instance of cc1plus died. This time, the accompanying error message was:

{standard input}: Assembler messages:
{standard input}:33536: Warning: end of file not at end of a line; newline inserted
{standard input}:33918: Error: suffix or operands invalid for `cmp'
{standard input}:33918: Error: open CFI at the end of file; missing .cfi_endproc directive
x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc01plus)
Please submit a full bug report.

It spent a few more minutes at 
make[4]: *** [output.o] Error 1
make[4]: *** Waiting for unfinished jobs....

When one of the cc1plus processes did show a huge increase in its memory footprint (it quickly ballooned out to ~60%), until it exited.

Then the cleanup happened. It took much longer than I would have expected, but it probably isn't related.
mv -f .deps/object.Tpo .deps/object.Po
mv -f .deps/layout.Tpo .deps/layout.Po
mv -f .deps/incremental.Tpo .deps/incremental.Po

Both of these build logs are available if anyone thinks they might help. I don't see anything particularly interesting or different.

I've never had memory issues when emerging before, but it's always possible that binutils now simply takes more than I have available (256 MB RAM, 512 MB swap). So, despite the error messages, I'm not convinced this is an actual bug. (And I really suspect it's an issue with different versions of things in my toolchain not playing nicely together).
Comment 2 James Ashley 2012-08-31 01:20:02 UTC
This just keeps getting stranger.

Setting MAKEFLAGS=-j2 seems to have fixed the problem. (I *did* search the forums before I opened this; it just wasn't a successful search).

So maybe the "bug" is really just the error message. Which, for an out-of-memory situation, probably isn't worth fixing. I'm sorry for wasting time/bandwidth.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-03 11:32:32 UTC
You ran out of RAM.