Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 441714 - media-video/vlc-2.0.4 - Internal error: Killed (program cc1)
Summary: media-video/vlc-2.0.4 - Internal error: Killed (program cc1)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-04 09:08 UTC by martin.wiesner
Modified: 2012-11-10 02:39 UTC (History)
0 users

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


Attachments
Output generated during build (vlc-2.0.4-Gentoo-RPI-build.log,34.08 KB, text/plain)
2012-11-04 09:08 UTC, martin.wiesner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martin.wiesner 2012-11-04 09:08:51 UTC
Created attachment 328286 [details]
Output generated during build

Emerging 'media-video/vlc-2.0.4' with these useflags 'a52 aac alsa avcodec avformat dvbpsi encode ffmpeg gcrypt httpd lua mp3 ncurses ogg postproc swscale xml' results in a crash during compile phase. RPI is Version 2 (256MB) with 240MB mem available at runtime.

####################
  CC     misc/xml.lo
armv6j-hardfloat-linux-gnueabi-gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[4]: *** [libvlc-module.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/media-video/vlc-2.0.4/work/vlc-2.0.4/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-video/vlc-2.0.4/work/vlc-2.0.4/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/media-video/vlc-2.0.4/work/vlc-2.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/vlc-2.0.4/work/vlc-2.0.4'
make: *** [all] Error 2
 * ERROR: media-video/vlc-2.0.4 failed (compile phase):
 *   emake failed

####################


The output of emerge --info:

####################
Portage 2.1.11.9 (default/linux/arm/10.0/armv6j/server, gcc-4.5.3, glibc-2.15-r3, 3.2.27+ armv6l)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.27+-armv6l-ARMv6-compatible_processor_rev_7_-v6l-with-gentoo-2.1
Timestamp of tree: Thu, 01 Nov 2012 21:30:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.2-r3
dev-util/pkgconfig:       0.27.1
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.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
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-r3
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv6j-hardfloat-linux-gnueabi"
CFLAGS="-O3 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
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="-O3 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=softfp"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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 arm berkdb bzip2 cli cracklib crypt cups cxx fortran gdbm gpm iconv ipv6 minizip modules mudflap ncurses nls nptl openmp pam pcre pppd readline session snmp ssl tcpd truetype unicode xml zlib" 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="authn_core authz_core socache_shmcb unixd 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" 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" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
####################


see attachment for full build.log

Best,
Martin
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-04 09:41:02 UTC
This almost certainly means that you are running out of memory and are triggering the OOM killer. Increase your swap and/or enable zram.
Comment 2 martin.wiesner 2012-11-04 10:01:02 UTC
(In reply to comment #1)
> This almost certainly means that you are running out of memory and are
> triggering the OOM killer. Increase your swap and/or enable zram.

Good guess, but sadly no... :/

I just triggered a new build attempt and monitored the mem consumption via top, but memory and swap were *not* used (swap had approx. 188 of 196 mb free!) to the full amount.

so memory is not the issue here.
Comment 3 martin.wiesner 2012-11-04 10:04:48 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > This almost certainly means that you are running out of memory and are
> > triggering the OOM killer. Increase your swap and/or enable zram.
> 
> Good guess, but sadly no... :/
> 
> I just triggered a new build attempt and monitored the mem consumption via
> top, but memory and swap were *not* used (swap had approx. 188 of 196 mb
> free!) to the full amount.
> 
> so memory is not the issue here.


Ooooh, you might be right. I just had another run and saw the "mem"-busted issue for a tiny bit of a second in top. 

do you have any idea why this build consumes so much more memory all of a sudden? it looks very "normal" for most of the compile steps before and then ... boom!
Comment 4 SpanKY gentoo-dev 2012-11-04 11:28:58 UTC
look at `dmesg`.  if it is running out of memory, drop the -pipe flag.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-04 13:48:33 UTC
and change -O3 to -O2
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-04 18:53:12 UTC
You ran out of RAM. Simply cross-compile it.
Comment 7 martin.wiesner 2012-11-05 07:04:09 UTC
The RPI definitely ran out of mem, that is confirmed now. I reorganized the swap partition to have 4 times as much space (=1GB) than real memory has to offer which results in the VLC build succeeding :)

One comment: -O3 -> -O2 and removing -pipe from gcc flags were not necessary and are intentionally set by me as my goal is to get highest performance out of the RPI. 

I think this "bug"/issue can be closed.

Thanks for quick responses
Best,
Martin
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-11-05 14:58:21 UTC
-pipe will not result in higher performance, it will only bypass the file system during build, causing increased memory usage. This can speed up the build if you have enough memory, but once you hit swap -pipe is going to be counter-productive.
Comment 9 martin.wiesner 2012-11-05 18:22:14 UTC
(In reply to comment #8)
> -pipe will not result in higher performance, it will only bypass the file
> system during build, causing increased memory usage. This can speed up the
> build if you have enough memory, but once you hit swap -pipe is going to be
> counter-productive.

Thanks for that hint, sounds a "candidate" here. 

For all the others reading this post: -O3 runs rock solid on my RPI so far. No problems compiling or at runtime with other programs. Has anyone else experiences on "how much optimization" RPI can take running stable Gentoo?
Comment 10 SpanKY gentoo-dev 2012-11-10 02:39:33 UTC
(In reply to comment #9)

try dropping the -pipe