Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 402965 - armv7a-unknown-linux-gnueabi-gcc - armv7a-unknown-linux-gnueabi-gcc: Internal error: Killed (program cc1)
Summary: armv7a-unknown-linux-gnueabi-gcc - armv7a-unknown-linux-gnueabi-gcc: Internal...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-10 08:17 UTC by Steve Arnold
Modified: 2014-07-02 15:05 UTC (History)
0 users

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


Attachments
Python (cross)build log (cross-python_build.log,226.14 KB, text/plain)
2012-02-13 22:34 UTC, Steve Arnold
Details
libtirpc (cross)build log (cross-libtirpc_build.log,47.48 KB, text/plain)
2012-02-13 22:35 UTC, Steve Arnold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2012-02-10 08:17:26 UTC
This is my first try at a full gentoo install on a recent ARM board (the dm816x-evm) so I'm looking for a little insight on this one, specifically the fpu and arch settings.  I set neon in make.conf, and then tried the original stage flags (same failure whether neon or vfpv3).

(I've built a new kernel to try out tomorrow when I get back to the office)

I'm using the latest autobuild stage for armv7a (as a chroot build environment on USB disk), and several things have built successfully except a couple of things like python and glib where I get this error:

make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.30.2-r1/work/glib-2.30.2/glib/libcharset'
Making all in pcre
make[4]: Entering directory `/var/tmp/portage/dev-libs/glib-2.30.2-r1/work/glib-2.30.2/glib/pcre'
  CC     pcre_compile.lo
/bin/sh ../../libtool --silent --tag=CC   --mode=compile armv7a-unknown-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"GLib-GRegex\" -DSUPPORT_UCP -DSUPPORT_UTF8 -DNEWLINE=-1 -DMATCH_LIMIT=10000000 -DMATCH_LIMIT_RECURSION=8192 -DMAX_NAME_SIZE=32 -DMAX_NAME_COUNT=10000 -DMAX_DUPLENGTH=30000 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -DPCRE_STATIC -I../.. -I../../glib -I../../glib -I../.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION   -Wno-pointer-sign   -DG_DISABLE_SINGLE_INCLUDES -pthread  -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wall -c -o pcre_compile.lo pcre_compile.c
  CC     pcre_chartables.lo
/bin/sh ../../libtool --silent --tag=CC   --mode=compile armv7a-unknown-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"GLib-GRegex\" -DSUPPORT_UCP -DSUPPORT_UTF8 -DNEWLINE=-1 -DMATCH_LIMIT=10000000 -DMATCH_LIMIT_RECURSION=8192 -DMAX_NAME_SIZE=32 -DMAX_NAME_COUNT=10000 -DMAX_DUPLENGTH=30000 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -DPCRE_STATIC -I../.. -I../../glib -I../../glib -I../.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION   -Wno-pointer-sign   -DG_DISABLE_SINGLE_INCLUDES -pthread  -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wall -c -o pcre_chartables.lo pcre_chartables.c
  CC     pcre_config.lo
/bin/sh ../../libtool --silent --tag=CC   --mode=compile armv7a-unknown-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"GLib-GRegex\" -DSUPPORT_UCP -DSUPPORT_UTF8 -DNEWLINE=-1 -DMATCH_LIMIT=10000000 -DMATCH_LIMIT_RECURSION=8192 -DMAX_NAME_SIZE=32 -DMAX_NAME_COUNT=10000 -DMAX_DUPLENGTH=30000 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -DPCRE_STATIC -I../.. -I../../glib -I../../glib -I../.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION   -Wno-pointer-sign   -DG_DISABLE_SINGLE_INCLUDES -pthread  -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wall -c -o pcre_config.lo pcre_config.c
  CC     pcre_dfa_exec.lo
/bin/sh ../../libtool --silent --tag=CC   --mode=compile armv7a-unknown-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"GLib-GRegex\" -DSUPPORT_UCP -DSUPPORT_UTF8 -DNEWLINE=-1 -DMATCH_LIMIT=10000000 -DMATCH_LIMIT_RECURSION=8192 -DMAX_NAME_SIZE=32 -DMAX_NAME_COUNT=10000 -DMAX_DUPLENGTH=30000 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -DPCRE_STATIC -I../.. -I../../glib -I../../glib -I../.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION   -Wno-pointer-sign   -DG_DISABLE_SINGLE_INCLUDES -pthread  -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wall -c -o pcre_dfa_exec.lo pcre_dfa_exec.c
  CC     pcre_exec.lo
/bin/sh ../../libtool --silent --tag=CC   --mode=compile armv7a-unknown-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"GLib-GRegex\" -DSUPPORT_UCP -DSUPPORT_UTF8 -DNEWLINE=-1 -DMATCH_LIMIT=10000000 -DMATCH_LIMIT_RECURSION=8192 -DMAX_NAME_SIZE=32 -DMAX_NAME_COUNT=10000 -DMAX_DUPLENGTH=30000 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -DPCRE_STATIC -I../.. -I../../glib -I../../glib -I../.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION   -Wno-pointer-sign   -DG_DISABLE_SINGLE_INCLUDES -pthread  -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wall -c -o pcre_exec.lo pcre_exec.c
{standard input}: Assembler messages:
{standard input}:16719: Warning: end of file not at end of a line; newline inserted
{standard input}:18050: Error: bad arguments to instruction -- `mov r3'
armv7a-unknown-linux-gnueabi-gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[4]: *** [pcre_exec.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.30.2-r1/work/glib-2.30.2/glib/pcre'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.30.2-r1/work/glib-2.30.2/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.30.2-r1/work/glib-2.30.2/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.30.2-r1/work/glib-2.30.2'
make: *** [all] Error 2
 * ERROR: dev-libs/glib-2.30.2-r1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.30.2-r1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.30.2-r1'.
 * The complete build log is located at '/var/log/portage/dev-libs:glib-2.30.2-r1:20120210-052542.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.30.2-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/glib-2.30.2-r1/work/glib-2.30.2'

>>> Failed to emerge dev-libs/glib-2.30.2-r1, Log file:

>>>  '/var/log/portage/dev-libs:glib-2.30.2-r1:20120210-052542.log'

 * Messages for package dev-libs/glib-2.30.2-r1:

 * ERROR: dev-libs/glib-2.30.2-r1 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.30.2-r1',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.30.2-r1'.
 * The complete build log is located at '/var/log/portage/dev-libs:glib-2.30.2-r1:20120210-052542.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.30.2-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/glib-2.30.2-r1/work/glib-2.30.2'


(chroot) dm816x-evm ~ # cat /proc/cpuinfo 
Processor       : ARMv7 Processor rev 2 (v7l)
BogoMIPS        : 986.31
Features        : swp half thumb fastmult vfp edsp neon vfpv3 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc08
CPU revision    : 2

Hardware        : ti8168pcm
Revision        : 0000
Serial          : 0000000000000000
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-10 16:47:54 UTC
1) Please post your `(cross-)emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Steve Arnold archtester gentoo-dev 2012-02-13 21:56:58 UTC
I'll have to grab the rest of the build log when I get home, but here's the emerge --info for the cross-toolchain:

# emerge-armv7a-unknown-linux-gnueabi --info
Portage 2.1.10.45 (embedded, gcc-4.5.3, unavailable, 3.1.6 i686)
=================================================================
System uname: Linux-3.1.6-i686-Intel-R-_Xeon-R-_CPU_E5345_@_2.33GHz-with-gentoo-2.1
Timestamp of tree: Mon, 06 Feb 2012 18:30:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.6.6-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.81-r2
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x-arm x-portage
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe  -fomit-frame-pointer -I/usr/armv7a-unknown-linux-gnueabi/usr/include/ -I/usr/armv7a-unknown-linux-gnueabi/include/"
CHOST="armv7a-unknown-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-Os -pipe  -fomit-frame-pointer -I/usr/armv7a-unknown-linux-gnueabi/usr/include/ -I/usr/armv7a-unknown-linux-gnueabi/include/"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://212.86.229.22/pub/gentoo http://gentoo.osuosl.org/"
LDFLAGS="-L/usr/armv7a-unknown-linux-gnueabi/lib -L/usr/armv7a-unknown-linux-gnueabi/usr/lib"
LINGUAS="en"
MAKEOPTS="-j9"
PKGDIR="/usr/armv7a-unknown-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/armv7a-unknown-linux-gnueabi/"
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="/usr/armv7a-unknown-linux-gnueabi/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/arm /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm bindist kdrive make-symlinks minimal modules multicall zlib" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard tslib" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Steve Arnold archtester gentoo-dev 2012-02-13 22:34:24 UTC
Created attachment 301855 [details]
Python (cross)build log
Comment 4 Steve Arnold archtester gentoo-dev 2012-02-13 22:35:14 UTC
Created attachment 301857 [details]
libtirpc (cross)build log

Just trying to get to glib is an adventure...
Comment 5 Steve Arnold archtester gentoo-dev 2012-02-13 22:40:12 UTC
Sorry, the emerge --info in comment #2 is from another arm toolchain (but both seem to have about the same build issues).  The attached build logs are from the older toolchain (ie, built from older versions) shown here.  I'm pretty sure it's something obvious to everyone but me...

# emerge-arm-none-linux-gnueabi --info
Portage 2.1.10.45 (default/linux/arm/10.0, gcc-4.3.3, unavailable, 3.1.6 i686)
=================================================================
System uname: Linux-3.1.6-i686-Intel-R-_Xeon-R-_CPU_E5345_@_2.33GHz-with-gentoo-2.1
Timestamp of tree: Mon, 06 Feb 2012 18:30:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p20
dev-lang/python:          2.6.6-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.81-r2
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x-arm x-portage
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mabi=aapcs-linux -mno-thumb-interwork -fomit-frame-pointer -I/usr/arm-none-linux-gnueabi/usr/include/ -I/usr/arm-none-linux-gnueabi/include/"
CHOST="arm-none-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mabi=aapcs-linux -mno-thumb-interwork -fomit-frame-pointer -I/usr/arm-none-linux-gnueabi/usr/include/ -I/usr/arm-none-linux-gnueabi/include/"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LDFLAGS="-L/usr/arm-none-linux-gnueabi/lib -L/usr/arm-none-linux-gnueabi/usr/lib"
MAKEOPTS="-j9"
PKGDIR="/usr/arm-none-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/arm-none-linux-gnueabi/"
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="/usr/arm-none-linux-gnueabi/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/embedded-cross"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl arm bindist bzip2 cli cracklib crypt cups cxx fam fortran gdbm iconv ipv6 make-symlinks minimal modules mudflap ncurses nls nptl nptlonly openmp pam pcre pppd readline session sqlite ssl sysfs tcpd unicode utils xattr xorg 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="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 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" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev 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
Comment 6 Steve Arnold archtester gentoo-dev 2012-02-13 22:55:22 UTC
Sorry (again) but you threw me with the (cross)question, since I have a couple of crossdev arm toolchains as well as the (native) arm chroot stage.  Maybe I have too many things going at once...

I'm having similar build issues in both environments, but the original error was on the actual arm hardware (ie, our local implementation of the TI 816x-evm board).  So the build logs I just attached were from the cross-build errors and not the native stage build.  I'll be back in a few with the native build log...
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-14 18:40:42 UTC
armv7a-unknown-linux-gnueabi-gcc: Internal error: Killed (program cc1)

Why did it get killed? Did you ran out of RAM?
Comment 8 Rob Stoddard 2014-07-02 15:05:22 UTC
How can one tell if you run out of ram?  For example, what led me here is the fact that my gtk-webkit build is breaking with a similar complaint; an internal error in GCC.   Oh, if only GCC would tell you WHY it had an internal error.   "Out of RAM" is a very easy thing to print when your malloc() fails.