Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680338 - sys-kernel/gentoo-sources-4.14.105-r1 USE=experimental should apply 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
Summary: sys-kernel/gentoo-sources-4.14.105-r1 USE=experimental should apply 5010_enab...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-14 15:18 UTC by Frank Limpert
Modified: 2019-03-17 16:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Full output of ECLASS_DEBUG_OUTPUT=on ebuild gentoo-sources-4.14.106.ebuild unpack (eclass-debug-output.txt,37.19 KB, text/plain)
2019-03-16 22:24 UTC, Eugene Ho
Details
Full output of emerge --info (emerge-info.txt,5.22 KB, text/plain)
2019-03-16 22:25 UTC, Eugene Ho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Limpert 2019-03-14 15:18:15 UTC
# 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.
Comment 1 Arisu Tachibana Gentoo Infrastructure gentoo-dev 2019-03-15 02:50:00 UTC
Try to update to 4.14.106
Comment 2 Eugene Ho 2019-03-16 20:32:04 UTC
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 ]
Comment 3 Mike Pagano gentoo-dev 2019-03-16 21:32:12 UTC
attach full output of:

ECLASS_DEBUG_OUTPUT=on ebuild gentoo-sources-4.14.106.ebuild unpack

and attach full

emerge --info
Comment 4 Eugene Ho 2019-03-16 22:24:23 UTC
Created attachment 569396 [details]
Full output of ECLASS_DEBUG_OUTPUT=on ebuild gentoo-sources-4.14.106.ebuild unpack
Comment 5 Eugene Ho 2019-03-16 22:25:14 UTC
Created attachment 569398 [details]
Full output of emerge --info
Comment 6 Mike Pagano gentoo-dev 2019-03-17 16:50:44 UTC
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.