Hi, While usual kernel update from 4.9.34 to 4.12.5 it fails with the error: ------------------------------------------------------------- /tmp/cc3rZjPi.s: Assembler messages: /tmp/cc3rZjPi.s:32: Error: instruction `andn' isn't supported in 16-bit mode. /tmp/cc3rZjPi.s:40: Error: instruction `shlx' isn't supported in 16-bit mode. make[1]: *** [scripts/Makefile.build:302: arch/x86/boot/cpucheck.o] Error 1 make: *** [arch/x86/Makefile:281: bzImage] Error 2 make: *** Waiting for unfinished jobs.... ------------------------------------------------------------ There's neither boot image in /boot, nor modules in /lib/modules installed. I've never seen errors like that before, and have no idea how to fix or debug this issue... Regards, Alex
Created attachment 489092 [details] Kernel config
Created attachment 489094 [details] /proc/cpuinfo
My compiling options: KCFLAGS="-O2 -march=native -fno-stack-protector -fomit-frame-pointer" KCPPFLAGS=$KCFLAGS KCXXFLAGS=$KCFLAGS make -j4 && make modules_install && make install 2>&1 Also tried with "-O3" and without any "-O" -- same error.
https://sourceware.org/bugzilla/show_bug.cgi?id=21965
The bug finally landed here https://sourceware.org/bugzilla/show_bug.cgi?id=21965 4.12.5 builds on i3-7300 with gcc-5.4.0 and '--march=broadwell' Looks like sys-devel/gcc needs some update for Kaby Lakes... Regards, Alex
is this still a problem ? have you tried with recent gcc version ?
(In reply to Alice Ferrazzi from comment #6) > is this still a problem ? have you tried with recent gcc version ? It's not a problem in the way that I found a workaround for it, see above. I will try again with the recent kernel update, with sys-devel/gcc-5.4.0-r3 But as I understand from gcc patches, building with "-march=native" on Kaby Lakes requires gcc-7 which is masked in portage.
GCC-6.4 works with "-march=skylake" "-mach=native" seems resulting into "-march=broadwell -mtune=generic"
you need to open a bug to gcc for this