Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619694 - sys-devel/gcc-6.3.0 fails to compile with Error 137
Summary: sys-devel/gcc-6.3.0 fails to compile with Error 137
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: 2017-05-25 20:27 UTC by Sven Müller
Modified: 2017-05-27 13:30 UTC (History)
0 users

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


Attachments
build.log (build.log,368.44 KB, text/x-log)
2017-05-25 20:31 UTC, Sven Müller
Details
emerge --info =sys-devel/gcc-6.3.0::gentoo (emerge_info.txt,5.89 KB, text/plain)
2017-05-25 20:33 UTC, Sven Müller
Details
emerge -pqv '=sys-devel/gcc-6.3.0::gentoo' (emerge_pqv.txt,280 bytes, text/plain)
2017-05-25 20:34 UTC, Sven Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2017-05-25 20:27:47 UTC
I tried to update the gcc on my armv7 NAS. I'm far away to understand the error message: 

/bin/bash /var/tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/gcc/../move-if-change tmp-opinit.c insn-opinit.c
echo timestamp > s-opinit
build/genautomata /var/tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/gcc/common.md /var/tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/gcc/config/arm/arm.md \
  insn-conditions.md > tmp-automata.c
/bin/bash: line 1: 13591 Killed                  build/genautomata /var/tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/gcc/common.md /var/tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/gcc/config/arm/arm.md insn-conditions.md > tmp-automata.c
make[3]: *** [Makefile:2186: s-automata] Error 137
make[3]: *** Waiting for unfinished jobs....
/bin/bash /var/tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/gcc/../move-if-change tmp-attrtab.c    insn-attrtab.c
/bin/bash /var/tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/gcc/../move-if-change tmp-dfatab.c     insn-dfatab.c
/bin/bash /var/tmp/portage/sys-devel/gcc-6.3.0/work/gcc-6.3.0/gcc/../move-if-change tmp-latencytab.c insn-latencytab.c
echo timestamp > s-attrtab
rm gcc.pod
make[3]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.3.0/work/build/gcc'
make[2]: *** [Makefile:4388: all-stage1-gcc] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.3.0/work/build'
make[1]: *** [Makefile:20222: stage1-bubble] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-6.3.0/work/build'
make: *** [Makefile:20554: bootstrap-lean] Error 2
 * ERROR: sys-devel/gcc-6.3.0::gentoo failed (compile phase):
Comment 1 Sven Müller 2017-05-25 20:31:53 UTC
Created attachment 474308 [details]
build.log
Comment 2 Sven Müller 2017-05-25 20:33:35 UTC
Created attachment 474312 [details]
emerge --info =sys-devel/gcc-6.3.0::gentoo

The used cflags are the extracted march=native flags.
Comment 3 Sven Müller 2017-05-25 20:34:03 UTC
Created attachment 474314 [details]
emerge -pqv '=sys-devel/gcc-6.3.0::gentoo'
Comment 4 Ben Kohler gentoo-dev 2017-05-25 20:34:35 UTC
The "Killed" line strongly suggests you ran out of memory, can you check dmesg to look for oom-killer activity?
Comment 5 Sven Müller 2017-05-27 13:30:50 UTC
Thanks, you were completely right.

My NAS has only 512 mb RAM. So I added a swapfile of 8 GB for compiling gcc and it worked.