View previous topic :: View next topic |
Author |
Message |
Jon Wilder Tux's lil' helper
Joined: 04 Apr 2011 Posts: 114 Location: Greenville SC
|
Posted: Tue Aug 08, 2017 5:11 am Post subject: Binutils 2.28.1 Failing Emerge |
|
|
Hi all. I'm doing the first emerge -auND @world on a Raspberry Pi 3 Model B. Most of the update is done, but Binutils-2.28.1 is failing. Here is the output of where the error starts -
Code: |
aarch64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold -I/var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold -I/var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold/../include -I/var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold/../elfcpp -DLOCALEDIR="\"/usr/share/binutils-data/aarch64-unknown-linux-gnu/2.28.1/locale\"" -DBINDIR="\"/usr/aarch64-unknown-linux-gnu/binutils-bin/2.28.1\"" -DTOOLBINDIR="\"/usr/aarch64-unknown-linux-gnu/bin\"" -DTOOLLIBDIR="\"/usr/aarch64-unknown-linux-gnu/lib\"" -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=stringpool.o -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -MT stringpool.o -MD -MP -MF .deps/stringpool.Tpo -c -o stringpool.o /var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold/stringpool.cc
{standard input}: Assembler messages:
{standard input}:42103: Warning: end of file not at end of a line; newline inserted
{standard input}:42934: Error: ']' expected at operand 2 -- `str x3,[x23,x1'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
aarch64-unknown-linux-gnu-g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.
make[4]: *** [Makefile:918: output.o] Error 4
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/reloc.Tpo .deps/reloc.Po
mv -f .deps/stringpool.Tpo .deps/stringpool.Po
make[4]: Leaving directory '/var/tmp/portage/sys-devel/binutils-2.28.1/work/build/gold'
make[3]: *** [Makefile:941: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/binutils-2.28.1/work/build/gold'
make[2]: *** [Makefile:692: all] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/binutils-2.28.1/work/build/gold'
make[1]: *** [Makefile:6079: all-gold] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/binutils-2.28.1/work/build'
make: *** [Makefile:851: all] Error 2
* ERROR: sys-devel/binutils-2.28.1::gentoo failed (compile phase):
* emake failed |
And here is emerge --info sys-devel/binutils -
Code: |
Portage 2.3.6 (python 2.7.13-final-0, default/linux/arm64/13.0, gcc-4.9.4, glibc-2.24-r3, 4.10.17-v8+ aarch64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.10.17-v8+-aarch64-with-gentoo-2.4.1
KiB Mem: 888240 total, 763048 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Mon, 07 Aug 2017 19:00:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash: 4.4_p12::gentoo
dev-lang/perl: 5.24.2::gentoo
dev-lang/python: 2.7.13::gentoo, 3.4.6::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.4.1::gentoo
sys-apps/openrc: 0.28::gentoo
sys-apps/sandbox: 2.10-r4::gentoo
sys-devel/autoconf: 2.69-r4::gentoo
sys-devel/automake: 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 4.9.4::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc: 2.24-r3::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="*"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs 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 xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="acl apache2 arm64 berkdb bindist bluetooth bzip2 cli cracklib crypt cxx dri embedded fortran gd gdbm iconv ipv6 modules multilib ncurses nls nptl openmp pam pcre php python readline seccomp session ssl tcpd truetype unicode xattr 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 neon thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" 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="evdev" KERNEL="linux" L10N="en" 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" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="vc4" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
=================================================================
Package Settings
=================================================================
sys-devel/binutils-2.25.1-r1::gentoo was built with the following:
USE="cxx nls zlib -multitarget -static-libs -test -vanilla"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2" |
Ideas? |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7730 Location: Underworld
|
Posted: Tue Aug 08, 2017 12:12 pm Post subject: |
|
|
Moved from Portage & Programming to Gentoo on Alternative Architectures, where it may get better answers. _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Aug 08, 2017 2:31 pm Post subject: Re: Binutils 2.28.1 Failing Emerge |
|
|
Code: | aarch64-unknown-linux-gnu-g++: internal compiler error: Killed (program cc1plus) |
Should be oom, check dmesg |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31277 Location: here
|
Posted: Tue Aug 08, 2017 2:43 pm Post subject: Re: Binutils 2.28.1 Failing Emerge |
|
|
krinn wrote: | Code: | aarch64-unknown-linux-gnu-g++: internal compiler error: Killed (program cc1plus) |
Should be oom, check dmesg |
If is a oom you can create temporary swap file _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Jon Wilder Tux's lil' helper
Joined: 04 Apr 2011 Posts: 114 Location: Greenville SC
|
Posted: Tue Aug 08, 2017 3:18 pm Post subject: |
|
|
Did you happen to notice the assembler errors prior to g++ getting killed? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Tue Aug 08, 2017 5:03 pm Post subject: |
|
|
Jon Wilder,
Put the entire build log onto a pastebin site.
wgetpaste works on arm64 :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Jon Wilder Tux's lil' helper
Joined: 04 Apr 2011 Posts: 114 Location: Greenville SC
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Wed Aug 09, 2017 2:00 pm Post subject: |
|
|
Jon Wilder,
Line 2941 in your pastebin.
Code: | aarch64-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold -I/var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold -I/var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold/../include -I/var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold/../elfcpp -DLOCALEDIR="\"/usr/share/binutils-data/aarch64-unknown-linux-gnu/2.28.1/locale\"" -DBINDIR="\"/usr/aarch64-unknown-linux-gnu/binutils-bin/2.28.1\"" -DTOOLBINDIR="\"/usr/aarch64-unknown-linux-gnu/bin\"" -DTOOLLIBDIR="\"/usr/aarch64-unknown-linux-gnu/lib\"" -W -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=output.o -march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -MT output.o -MD -MP -MF .deps/output.Tpo -c -o output.o /var/tmp/portage/sys-devel/binutils-2.28.1/work/binutils-2.28.1/gold/output.cc
aarch64-unknown-linux-gnu-g++: internal compiler error: Killed (program cc1plus) |
It looks like the OOM manager kicked in.
sys-devel/binutils-2.28.1 does build on aarch64 but that's checking my cross chroot. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Jon Wilder Tux's lil' helper
Joined: 04 Apr 2011 Posts: 114 Location: Greenville SC
|
Posted: Wed Aug 09, 2017 4:36 pm Post subject: |
|
|
Well Neddy I suspect you're correct. I ended up emerging Binutils by itself with MAKEOPTS=-j1 (figured it would use less memory with -j1 instead of -j3) and while it took longer, it finally built.
Thanks. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Wed Aug 09, 2017 7:35 pm Post subject: |
|
|
Jon Wilder,
Homework, so portage does it automatically for you. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Jon Wilder Tux's lil' helper
Joined: 04 Apr 2011 Posts: 114 Location: Greenville SC
|
Posted: Wed Aug 09, 2017 7:50 pm Post subject: |
|
|
I have MAKEOPTS set to -j3 in make.conf. It works for most things but for the larger stuff like GCC and Binutils I have to set it lower. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Wed Aug 09, 2017 11:32 pm Post subject: |
|
|
Jon Wilder,
Portage can do that on a per package basis, so that
a) you don't have to remember
b) you don't fiddle about in make.conf.
Make a file called /etc/portage/package.env with the following content.
Code: | # list things that need -j2 here
app-office/libreoffice MAKEOPTS-j2
dev-libs/boost MAKEOPTS-j2
dev-java/icedtea MAKEOPTS-j2
games-emulation/sdlmame MAKEOPTS-j2
mail-client/thunderbird MAKEOPTS-j2
net-libs/webkit-gtk MAKEOPTS-j2
www-client/chromium MAKEOPTS-j2
www-client/firefox MAKEOPTS-j2
# list things that need MAKEOPTS-j1 ... maybe
net-libs/webkit-gtk MAKEOPTS-j1
|
This is a list of packges that need particular environment settings over and above make.conf. In this case, the overides are are files called MAKEOPTS-j2 and MAKEOPTS-j1. The file names are only meaningful to you.
Make a directory /etc/portage/env/ and create the files called up by /etc/portage/package.env entries here. So /etc/portage/env/MAKEOPTS-j2 contains
Code: | # use this for things that fail at higher parallel makes that -j2
MAKEOPTS="-j2" |
Adding in binutils and MAKEOPTS-j1 is left as an exercise for the reader.
These are entries from my Pi 3 arm64 install. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|