Build log and emerge --info ill be attached. If you need more input please ask.
Created attachment 536450 [details] emerge --info
The build log would help.
Created attachment 536616 [details] build log
My guess would be that -march=native incorrectly detects some features on your CPU. We need to find which instructions were generated and which feature wa misdetected. Please post the output of LANG=C gcc -Q --help=target -march=native and we'll try to find which features was it. Can you also extract instruction that was attempted to be executed? The crash was in: /bin/bash: line 1: 8572 Illegal instruction build/genextract /tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/common.md /tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/config/i386/i386.md insn-conditions.md > tmp-extract.c If you run something like: $ gdb --args build/genextract /tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/common.md /tmp/portage/sys-devel/gcc-7.3.0-r3/work/gcc-7.3.0/gcc/config/i386/i386.md insn-conditions.md gdb> run gdb> bt gdb> disassemble gdb should show what was attempted to be executed.
This can be closed. After a few attempts the package built. Im not aware what i might have changed if anything that led to the success.
Sounds good!