libtool: link: armv6j-hardfloat-linux-gnueabi-gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -O2 -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -Wl,-O1 -o .libs/ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o earmelf_linux_eabi.o earmelfb_linux_eabi.o -Wl,--as-needed ../bfd/.libs/libbfd.so -L/var/tmp/portage/sys-devel/binutils-2.23.2/work/build/bfd/../libiberty/pic -liberty ../libiberty/libiberty.a -lz -ldl -Wl,-rpath -Wl,/usr/lib/binutils/armv6j-hardfloat-linux-gnueabi/2.23.2 make[4]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.23.2/work/build/ld' make[3]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.23.2/work/build/ld' make[2]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.23.2/work/build/ld' mv -f .deps/incremental.Tpo .deps/incremental.Po make[4]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.23.2/work/build/gold' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.23.2/work/build/gold' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.23.2/work/build/gold' make[1]: *** [all-gold] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.23.2/work/build' make: *** [all] Error 2 emake failed * ERROR: sys-devel/binutils-2.23.2::gentoo failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 93: Called src_compile * environment, line 2792: Called toolchain-binutils_src_compile * environment, line 3483: Called die * The specific snippet of code: * emake all || die "emake failed"; * * If you need support, post the output of `emerge --info '=sys-devel/binutils-2.23.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/binutils-2.23.2::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-devel/binutils-2.23.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/binutils-2.23.2/temp/environment'. * Working directory: '/var/tmp/portage/sys-devel/binutils-2.23.2/work/build' * S: '/var/tmp/portage/sys-devel/binutils-2.23.2/work/binutils-2.23.2' # emerge --info '=sys-devel/binutils-2.23.2::gentoo' Portage 2.2.7 (default/linux/arm/13.0/armv6j, gcc-4.5.4, glibc-2.16.0, 3.10.25+ armv6l) ================================================================= System Settings ================================================================= System uname: Linux-3.10.25+-armv6l-with-gentoo-2.2 KiB Mem: 237052 total, 128084 free KiB Swap: 524284 total, 457052 free Timestamp of tree: Sun, 12 Jan 2014 02:15:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 distcc 3.1 armv6j-hardfloat-linux-gnueabi [disabled] app-shells/bash: 4.2_p45 dev-lang/python: 2.7.5-r3, 3.2.5-r3, 3.3.2-r2 dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.5.4, 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo ACCEPT_KEYWORDS="arm" ACCEPT_LICENSE="*" CBUILD="armv6j-hardfloat-linux-gnueabi" CFLAGS="-O2 -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" CHOST="armv6j-hardfloat-linux-gnueabi" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" 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 -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" DISTDIR="/mnt/usb01/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n" FCFLAGS="-O2 -pipe -march=armv6j" FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe -march=armv6j" GENTOO_MIRRORS=" http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.inode.at http://gentoo.mirror.sdv.fr" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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.de.gentoo.org/gentoo-portage" USE="acl arm berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules mudflap ncurses nls nptl offensive openmp pam pcre readline session ssl tcpd unicode zlib" 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 author" 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 ublox 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" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON # emerge -pqv '=sys-devel/binutils-2.23.2::gentoo' [ebuild U ] sys-devel/binutils-2.23.2 [2.23.1] USE="cxx nls zlib -multislot -multitarget -static-libs {-test} -vanilla" Can you help me while compiling binutils fails?
Please attach the entire build.log.
Created attachment 367800 [details] build.log
virtual memory exhausted: Cannot allocate memory virtual memory exhausted: Cannot allocate memory there's your problem.
But I never run out of swap space. So what's the deal? And how can I work around it? MemTotal: 237052 kB SwapTotal: 524284 kB
Cross-compiling on a system with more RAM would help here.