Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351264 - www-plugins/gnash won't compile; cc1plus Geometry.lo eats all memory and gets killed
Summary: www-plugins/gnash won't compile; cc1plus Geometry.lo eats all memory and gets...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 01:26 UTC by Delan Azabani
Modified: 2011-01-13 05:46 UTC (History)
1 user (show)

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


Attachments
complete build log for gnash (build.log,372.42 KB, text/plain)
2011-01-10 01:28 UTC, Delan Azabani
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Delan Azabani 2011-01-10 01:26:53 UTC
While compiling www-plugins/gnash-0.8.8, cc1plus (Geometry.lo) gets killed because it eats all of the memory available. Though I have /var/tmp/portage as tmpfs, I've tried compiling gnash without the tmpfs to save memory, and it still fails the same way.

Reproducible: Always

Steps to Reproduce:
1. 
Actual Results:  
cc1plus eats all memory and gets killed

Expected Results:  
emerge gnash finishes compiling normally

=================================================================

Relevant output:

  CXX    Geometry.lo
/bin/sh ../libtool --silent --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I../librender -I../libcore/swf -I../libcore/abc -I../libcore/asobj -I../libcore/asobj/flash -I../libcore/parser -I../libltdl -I../libcore/vm -I../libbase -I../libmedia -I../libsound -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -I/usr/include/boost-1_42 -I/usr/include/freetype2      -D__STDC_CONSTANT_MACROS -I/usr/include/libavcodec -I../libmedia/ffmpeg   -march=native -O2 -pipe          -W     -Wall     -Wcast-align     -Wcast-qual     -Wpointer-arith     -Wreturn-type     -Wnon-virtual-dtor     -Wunused      -fvisibility-inlines-hidden -c -o Geometry.lo Geometry.cpp
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]: *** [as_function.lo] Error 1
make[4]: *** Waiting for unfinished jobs....

=================================================================

emerge --info:

Portage 2.2.0_alpha14 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.2-r0, 2.6.37-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.37-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 09 Jan 2011 22:15:02 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.4-r2, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo oss-overlay x11 mozilla
ACCEPT_KEYWORDS="amd64 ~*"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
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="/var/lib/layman/oss-overlay /var/lib/layman/x11 /var/lib/layman/mozilla"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X aac acl acpi amd64 apng avahi berkdb bzip2 cairo cli cracklib crypt cups cxx dbus device-mapper dri dvd extras fat fortran gdbm gpm gtk iconv ipv6 jpeg libass lm_sensors matroska mmx modules mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre perl png policykit pppd python qt4 readline sdl sdl-sound session sse sse2 ssl stream sysfs tcpd unicode usb x264 xinerama xorg xrandr xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_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 logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================

emerge -pqv:

[ebuild  N    ] www-plugins/gnash-0.8.8  USE="agg cairo dbus ffmpeg gtk nls nsplugin opengl python sdl sdl-sound ssl xv (-aqua) -cygnal -doc -fbcon -gnome -gstreamer -kde (-kdeenablefinal) (-lirc) -mysql -ssh -test -vaapi" VIDEO_CARDS="intel"

=================================================================

Build log is attached.
Comment 1 Delan Azabani 2011-01-10 01:28:41 UTC
Created attachment 259428 [details]
complete build log for gnash
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-01-10 05:14:08 UTC
ACCEPT_KEYWORDS="amd64 ~*"

Please fix your ACCEPT_KEYWORDS.
How much total and free RAM do you have?
Comment 3 Delan Azabani 2011-01-10 12:22:56 UTC
(In reply to comment #2)
> ACCEPT_KEYWORDS="amd64 ~*"
> 
> Please fix your ACCEPT_KEYWORDS.
> How much total and free RAM do you have?
> 

Sorry, I'm quite new to Gentoo. What is wrong with my ACCEPT_KEYWORDS? In my /etc/make.conf it's set to "~*".

For RAM, when idle I have about 3385MiB free out of 4096MiB total.
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-01-10 13:23:58 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > ACCEPT_KEYWORDS="amd64 ~*"
> > 
> > Please fix your ACCEPT_KEYWORDS.
> Sorry, I'm quite new to Gentoo. What is wrong with my ACCEPT_KEYWORDS? In my
> /etc/make.conf it's set to "~*".

Set it to ACCEPT_KEYWORDS="~amd64" if you want to run the testing tree.
Comment 5 Delan Azabani 2011-01-13 05:46:05 UTC
I've discovered that this may be because I'm using MAKEOPTS="-j16" and 4GiB of RAM without any swap just isn't enough for all the concurrent cc1plus instances to reside. Adding a 4GiB swap file in addition to the 4GiB of physical memory allowed the compile to finish. So this may not really be a bug.

dd if=/dev/zero of=/swap0 bs=512 count=8388608
mkswap /swap0
swapon /swap0