Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 619694

Summary: sys-devel/gcc-6.3.0 fails to compile with Error 137
Product: Gentoo Linux Reporter: Sven Müller <musv>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info =sys-devel/gcc-6.3.0::gentoo
emerge -pqv '=sys-devel/gcc-6.3.0::gentoo'

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.