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):
Created attachment 474308 [details] build.log
Created attachment 474312 [details] emerge --info =sys-devel/gcc-6.3.0::gentoo The used cflags are the extracted march=native flags.
Created attachment 474314 [details] emerge -pqv '=sys-devel/gcc-6.3.0::gentoo'
The "Killed" line strongly suggests you ran out of memory, can you check dmesg to look for oom-killer activity?
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.