# emerge -p -v gentoo-sources ... [ebuild R ] sys-kernel/gentoo-sources-4.14.105-r1:4.14.105-r1::gentoo USE="experimental -build -symlink" 0 KiB # emerge gentoo-sources ... >>> Unpacking source... >>> Unpacking linux-4.14.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.14.105-r1/work >>> Unpacking genpatches-4.14-112.base.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.14.105-r1/work/patches >>> Unpacking genpatches-4.14-112.extras.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.14.105-r1/work/patches >>> Unpacking genpatches-4.14-112.experimental.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.14.105-r1/work/patches * Excluding Patch #*BFQ* ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ... [ ok ] * Applying 1000_linux-4.14.1.patch (-p1) ... [ ok ] ... BUT applying the patch by hand works perfectly: # patch -p1 < 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch patching file arch/x86/include/asm/module.h patching file arch/x86/Kconfig.cpu patching file arch/x86/Makefile patching file arch/x86/Makefile_32.cpu AND the patch itself still works, too. I can select the CPU family I want.
Try to update to 4.14.106
There is no change with 4.14.106. # emerge --info | grep sys-devel/gcc: sys-devel/gcc: 8.2.0-r6::gentoo # emerge -pv gentoo-sources:4.14.106 [...] [ebuild R ] sys-kernel/gentoo-sources-4.14.106:4.14.106::gentoo USE="experimental -build -symlink" 0 KiB # emerge gentoo-sources:4.14.106 [...] >>> Unpacking source... >>> Unpacking linux-4.14.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.14.106/work >>> Unpacking genpatches-4.14-113.base.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.14.106/work/patches >>> Unpacking genpatches-4.14-113.extras.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.14.106/work/patches >>> Unpacking genpatches-4.14-113.experimental.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.14.106/work/patches * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ... [ ok ] * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ... [ ok ]
attach full output of: ECLASS_DEBUG_OUTPUT=on ebuild gentoo-sources-4.14.106.ebuild unpack and attach full emerge --info
Created attachment 569396 [details] Full output of ECLASS_DEBUG_OUTPUT=on ebuild gentoo-sources-4.14.106.ebuild unpack
Created attachment 569398 [details] Full output of emerge --info
Upstream has a separate patch for gcc >= v8. That's the 5011 patch, which is not in 4.14 since it's for the >=4.20 kernel This patch is for gcc < v8. You have gcc 8.2.0, so this patch will not apply.