Not sure what is wrong here. I've tried with MAKEOPTS=-j1, but for some reason it fails to link at some point. * Package: sys-devel/gcc-6.4.0 * Repository: gentoo * Maintainer: toolchain@gentoo.org * USE: arm cxx elibc_glibc fortran kernel_linux nls nptl openmp pch sanitize ssp userland_GNU vtv * FEATURES: preserve-libs sandbox test userpriv usersandbox /var/tmp/portage/sys-devel/gcc-6.4.0/work/build/./prev-gcc/xg++ -B/var/tmp/portage/sys-devel/gcc-6.4.0/work/build/./prev-gcc/ -B/usr/armv5tel-softfloat-linux-gnueabi/bin/ -nostdinc++ -B/var/tmp/portage/sys-devel/gcc-6.4.0/work/build/prev-armv5tel-softfloat-linux-gnueabi/libstdc++-v3/src/.libs -B/var/tmp/portage/sys-devel/gcc-6.4.0/work/build/prev-armv5tel-softfloat-linux-gnueabi/libstdc++-v3/libsupc++/.libs -isystem /var/tmp/portage/sys-devel/gcc-6.4.0/work/build/prev-armv5tel-softfloat-linux-gnueabi/libstdc++-v3/include/armv5tel-softfloat-linux-gnueabi -isystem /var/tmp/portage/sys-devel/gcc-6.4.0/work/build/prev-armv5tel-softfloat-linux-gnueabi/libstdc++-v3/include -isystem /var/tmp/portage/sys-devel/gcc-6.4.0/work/gcc-6.4.0/libstdc++-v3/libsupc++ -L/var/tmp/portage/sys-devel/gcc-6.4.0/work/build/prev-armv5tel-softfloat-linux-gnueabi/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-6.4.0/work/build/prev-armv5tel-softfloat-linux-gnueabi/libstdc++-v3/libsupc++/.libs -no-pie -fno-PIE -O2 -march=armv5te -pipe -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -o cc1plus \ cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-cilkplus.o cp/cp-gimplify.o cp/cp-array-notation.o cp/lambda.o cp/vtable-class-hierarchy.o cp/constexpr.o cp/cp-ubsan.o cp/constraint.o cp/logic.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o arm-c.o glibc-c.o cc1plus-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -rdynamic -ldl -lz collect2: error: ld returned 1 exit status make[3]: *** [/var/tmp/portage/sys-devel/gcc-6.4.0/work/gcc-6.4.0/gcc/cp/Make-lang.in:100: cc1plus] Error 1 make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0/work/build/gcc' make[2]: *** [Makefile:4428: all-stage2-gcc] Error 2 make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0/work/build' make[1]: *** [Makefile:20339: stage2-bubble] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.4.0/work/build' make: *** [Makefile:20554: bootstrap-lean] Error 2 * ERROR: sys-devel/gcc-6.4.0::gentoo failed (compile phase): * emake failed Portage 2.3.8 (python 2.7.14-final-0, default/linux/arm/13.0/armv5te/desktop, gcc-5.4.0, glibc-2.25-r9, 3.10.25-gentoo armv5tel) ================================================================= System uname: Linux-3.10.25-gentoo-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-2.4.1 KiB Mem: 513244 total, 54232 free KiB Swap: 1535996 total, 1468192 free Timestamp of repository gentoo: Mon, 08 Jan 2018 20:30:01 +0000 Head commit of repository gentoo: b971baa7f7d66a6dd5e33b3eeecd92678585fc59 sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 distcc 3.2rc1 armv5tel-softfloat-linux-gnueabi [disabled] ccache version 3.2.4 [disabled] app-shells/bash: 4.4_p12::gentoo dev-lang/perl: 5.24.3::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.5::gentoo, 3.5.4-r1::gentoo dev-util/ccache: 3.2.4::gentoo dev-util/cmake: 3.8.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.11::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.4_p6-r2::gentoo, 1.5-r2::gentoo, 1.6.3-r2::gentoo, 1.7.9-r3::gentoo, 1.8.5-r5::gentoo, 1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1-r1::gentoo sys-devel/binutils: 2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo, 2.29.1-r1::gentoo sys-devel/gcc: 5.4.0-r3::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.25-r9::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://192.168.1.100/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="arm" ACCEPT_LICENSE="* -@EULA" CBUILD="armv5tel-softfloat-linux-gnueabi" CFLAGS="-O2 -march=armv5te -pipe" CHOST="armv5tel-softfloat-linux-gnueabi" CONFIG_PROTECT="/etc /etc/omega.conf /etc/stunnel/stunnel.conf /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /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 -march=armv5te -pipe" DISTDIR="/mnt/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=2 --keep-going --with-bdeps=y --backtrack=3" FCFLAGS="-O2 -pipe -march=armv5te" FEATURES="assume-digests binpkg-logs collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=armv5te" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv jpeg kpathsea lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt5 readline sdl seccomp spell ssl startup-notification svg tcpd test tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb v4 v5" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="exynos freedreno omap" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 514160 [details] sys-devel:gcc-6.4.0:20180105-053444.log.gz
Does not look like ld wrote anything to stdout/err at all. Could it be an OOM? does dmesg hint at what gone wrong?
(In reply to Sergei Trofimovich from comment #2) > Does not look like ld wrote anything to stdout/err at all. Could it be an > OOM? does dmesg hint at what gone wrong? I'm not sure, I think there was nothing reported in dmesg. Currently re-running it to double check...
In case of oom, you may want to checkout bug #623156 for fixes for the increased memory consumption, or chroot from a more powerfull machine via qemu-static.
Closing as obsolete. Please file a new bug if new gcc-9/binutils still fails.