Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680218 - sys-kernel/gentoo-sources-5.0.1 - patch .../work/patches/5011_enable-cpu-optimizations-for-gcc8.patch fails
Summary: sys-kernel/gentoo-sources-5.0.1 - patch .../work/patches/5011_enable-cpu-opti...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-13 10:52 UTC by Karl Ernst Brunk
Modified: 2019-03-16 20:54 UTC (History)
2 users (show)

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


Attachments
error message of patch 5011 (5011_enable-cpu-optimizations-for-gcc8.err,17.93 KB, text/plain)
2019-03-13 10:52 UTC, Karl Ernst Brunk
Details
Debug-emerge-Output (build.log,7.61 KB, text/plain)
2019-03-14 11:26 UTC, Karl Ernst Brunk
Details
output emerge --info (e-info.txt,16.65 KB, text/plain)
2019-03-14 11:27 UTC, Karl Ernst Brunk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Ernst Brunk 2019-03-13 10:52:34 UTC
Created attachment 568972 [details]
error message of patch 5011

All gentoo-sources who try to apply that patch fail to do so. So all kernel installs are blocked.
See attatchment
Comment 1 Mike Pagano gentoo-dev 2019-03-14 10:48:55 UTC
please post the output of:

emerge --info

and please attach the full log of

ECLASS_DEBUG_OUTPUT=on emerge =sys-kernel/gentoo-sources-5.0.2
Comment 2 klaus818 2019-03-14 11:08:39 UTC
emerge --info gentoo-sources
Portage 2.3.62 (python 3.6.8-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-8.3.0, glibc-2.29, 5.0.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.0.1-gentoo-x86_64-AMD_Ryzen_5_2600X_Six-Core_Processor-with-gentoo-2.6
KiB Mem:    16444324 total,  10339364 free
KiB Swap:   40695804 total,  40695804 free
Timestamp of repository gentoo: Thu, 14 Mar 2019 11:00:01 +0000
Head commit of repository gentoo: 6f0c5ecb71c1ade5fb448a2431bec20985ce425d
sh bash 5.0_p2-r2
ld GNU ld (Gentoo 2.32 p1) 2.32.0
app-shells/bash:          5.0_p2-r2::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo
dev-util/cmake:           3.13.4::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32::gentoo
sys-devel/gcc:            8.3.0::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ftree-vectorize -ftree-slp-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -ftree-vectorize -ftree-slp-vectorize"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe -ftree-vectorize -ftree-slp-vectorize"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -ftree-vectorize -ftree-slp-vectorize"
GENTOO_MIRRORS="https://ftp.fau.de/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb branding bzip2 cairo cdda cdr chromium cli crypt cups cxx dbus declarative dri dropbox dts dvd dvdr emboss encode epub exif fam ffmpeg flac fortran gdbm gif glamor gpm grub gtk iconv ipv6 ithreads jpeg kde kipi kwallet lcms ldap libnotify libtirpc lm_sensors lto mad matroska mng mp3 mp4 mpeg mtp multilib ncurses nls nptl office ogg opencl opengl openmp pam pango pcre pdf pgo phonon pim plasma png policykit postproc ppds pulseaudio qml qt5 readline scanner sdl seccomp semantic-desktop spell ssl startup-notification svg sync-plugin-portage systemd tcpd threads tiff truetype udev udisks unicode upower usb vaapi vc vdpau vorbis vpx vulkan wayland webp widgets wxwidgets x264 x265 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="sony_dscf1" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-kernel/gentoo-sources-5.0.2::gentoo was built with the following:
USE="experimental -build -symlink" ABI_X86="(64)"
Comment 3 klaus818 2019-03-14 11:13:43 UTC
* Package:    sys-kernel/gentoo-sources-5.0.2
 * Repository: gentoo
 * Maintainer: kernel@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc experimental kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
debug:   eclass exists: /usr/portage/eclass/kernel-2.eclass
debug: inherit: kernel-2 -> /usr/portage/eclass/kernel-2.eclass
debug: *** Multiple Inheritence (Level: 2)
debug:   eclass exists: /usr/portage/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /usr/portage/eclass/toolchain-funcs.eclass
debug: *** Multiple Inheritence (Level: 3)
debug:   eclass exists: /usr/portage/eclass/multilib.eclass
debug: inherit: multilib -> /usr/portage/eclass/multilib.eclass
debug: *** Multiple Inheritence (Level: 4)
debug:   eclass exists: /usr/portage/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /usr/portage/eclass/toolchain-funcs.eclass
debug:   eclass exists: /usr/portage/eclass/python-any-r1.eclass
debug: inherit: python-any-r1 -> /usr/portage/eclass/python-any-r1.eclass
debug: *** Multiple Inheritence (Level: 3)
debug:   eclass exists: /usr/portage/eclass/python-utils-r1.eclass
debug: inherit: python-utils-r1 -> /usr/portage/eclass/python-utils-r1.eclass
debug: *** Multiple Inheritence (Level: 4)
debug:   eclass exists: /usr/portage/eclass/toolchain-funcs.eclass
debug: inherit: toolchain-funcs -> /usr/portage/eclass/toolchain-funcs.eclass
debug: _python_impl_supported: entering function, parameters: python2_6
debug: _python_impl_supported: entering function, parameters: python2_7
debug: python_export: entering function, parameters: python2_7 PYTHON_PKG_DEP
debug: python_export: implementation: python2.7
debug: python_export: PYTHON_PKG_DEP = >=dev-lang/python-2.7.5-r2:2.7
debug: EXPORT_FUNCTIONS: pkg_setup -> python-any-r1_pkg_setup
debug: *** Multiple Inheritence (Level: 2)
debug:   eclass exists: /usr/portage/eclass/estack.eclass
debug: inherit: estack -> /usr/portage/eclass/estack.eclass
debug:   eclass exists: /usr/portage/eclass/eapi7-ver.eclass
debug: inherit: eapi7-ver -> /usr/portage/eclass/eapi7-ver.eclass
debug: KV_EXTRA is 
debug: KERNEL_BASE_URI is mirror://kernel/linux/kernel/v5.x
debug: 0 EXTRAVERSION:
debug: 1 EXTRAVERSION:
debug: 1.2 EXTRAVERSION:
debug: 2 EXTRAVERSION:-gentoo
debug: PVR: 5.0.2
debug: CKV: 5.0.2
debug: OKV: 5.0.2
debug: KV: 5.0.2-gentoo
debug: KV_FULL: 5.0.2-gentoo
debug: KV_MAJOR: 5
debug: KV_MINOR: 0
debug: KV_PATCH: 2
debug: RELEASETYPE: 
debug: RELEASE: 
debug: UNIPATCH_LIST_DEFAULT: 
debug: UNIPATCH_LIST_GENPATCHES: 
debug: UNIPATCH_LIST: 
debug: S: /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/linux-5.0.2-gentoo
debug: KERNEL_URI:  mirror://kernel/linux/kernel/v5.x/linux-5.0.tar.xz
debug: K_WANT_GENPATCHES: base extras experimental
debug: Inside handle_genpatches
debug: EXPORT_FUNCTIONS: src_unpack -> kernel-2_src_unpack
debug: EXPORT_FUNCTIONS: src_prepare -> kernel-2_src_prepare
debug: EXPORT_FUNCTIONS: src_compile -> kernel-2_src_compile
debug: EXPORT_FUNCTIONS: src_install -> kernel-2_src_install
debug: EXPORT_FUNCTIONS: src_test -> kernel-2_src_test
debug: EXPORT_FUNCTIONS: pkg_setup -> kernel-2_pkg_setup
debug: EXPORT_FUNCTIONS: pkg_preinst -> kernel-2_pkg_preinst
debug: EXPORT_FUNCTIONS: pkg_postinst -> kernel-2_pkg_postinst
debug: EXPORT_FUNCTIONS: pkg_postrm -> kernel-2_pkg_postrm
>>> Preparing to unpack ...
>>> Unpacking source...
debug: Inside universal_unpack
>>> Unpacking linux-5.0.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work
debug: moving linux-5.0 to linux-5.0.2-gentoo 
debug: Doing unipatch
debug: Inside handle_genpatches
debug: genpatches tarball: genpatches-5.0-3.base.tar.xz
debug: genpatches tarball: genpatches-5.0-3.extras.tar.xz
debug: genpatches tarball: genpatches-5.0-3.experimental.tar.xz
>>> Unpacking genpatches-5.0-3.base.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/patches
debug: genpatches tarball: 
>>> Unpacking genpatches-5.0-3.extras.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/patches
debug: genpatches tarball: 
>>> Unpacking genpatches-5.0-3.experimental.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/patches
debug: genpatches tarball: 
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.pat [ ok ]
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9 [ ok ]...
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.pat [ ok ]
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9 [ ok ]...
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.pat [ ok ]
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9 [ ok ]...
 * Applying 1000_linux-5.0.1.patch (-p1) ...                             [ ok ]
 * Applying 1001_linux-5.0.2.patch (-p1) ...                             [ ok ]
 * Applying 1500_XATTR_USER_PREFIX.patch (-p1) ...                       [ ok ]
 * Applying 1510_fs-enable-link-security-restrictions-by-default.patch ( [ ok ].
 * Applying 2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch [ ok ]...
 * Applying 2600_enable-key-swapping-for-apple-mac.patch (-p1) ...       [ ok ]
 * Applying 2900_netfilter-patch-nf_tables-fix-set-double-free-in-abort- [ ok ]tch (-p1) ...
 * Applying 4567_distro-Gentoo-Kconfig.patch (-p1) ...                   [ ok ]
 * Applying 5011_enable-cpu-optimizations-for-gcc8.patch (-p1) ...       [ ok ]
debug: Doing premake
debug: Doing unpack_set_extraversion
>>> Source unpacked in /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work
>>> Preparing source in /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/linux-5.0.2-gentoo ...
debug: Applying any user patches
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/linux-5.0.2-gentoo ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/work/linux-5.0.2-gentoo ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-kernel/gentoo-sources-5.0.2

>>> Install gentoo-sources-5.0.2 into /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/image/ category sys-kernel
>>> Copying sources ...
>>> Completed installing gentoo-sources-5.0.2 into /var/tmp/portage/sys-kernel/gentoo-sources-5.0.2/image/

 * Final size of build directory:      0 KiB
 * Final size of installed tree:  938616 KiB (916.6 MiB)


 * Note: Even though you have successfully unmerged 
 * your kernel package, directories in kernel source location: 
 * /usr/src/linux-5.0.2-gentoo
 * with modified files will remain behind. By design, package managers
 * will not remove these modified files and the directories they reside in.

 * For more detailed kernel removal instructions, please see: 
 * https://wiki.gentoo.org/wiki/Kernel/Removal


 * If you are upgrading from a previous kernel, you may be interested
 * in the following document:
 *   - General upgrade guide: https://wiki.gentoo.org/wiki/Kernel/Upgrade

 * For more info on this patchset, and how to report problems, see:
 * https://dev.gentoo.org/~mpagano/genpatches
Comment 4 Karl Ernst Brunk 2019-03-14 11:26:48 UTC
Created attachment 569078 [details]
Debug-emerge-Output
Comment 5 Karl Ernst Brunk 2019-03-14 11:27:27 UTC
Created attachment 569080 [details]
output emerge --info
Comment 6 Karl Ernst Brunk 2019-03-14 11:35:08 UTC
Hi - so please don't start crying because it is funtoo. Same thing happens on a gentoo-laptop. I tried it because i first thougt it might be a difference in eclasses. But it is the same error popping up.
If its necessary or helpfull i get out the laptop (coming this afternoon back) and send over messages from that one.

But if this is caused by some difference between gen and fun, than i apollogize an bend my knee.
Comment 7 Karl Ernst Brunk 2019-03-14 14:38:30 UTC
In the meantime i did try to patch manually on different sources.

on the vanilla sources 5.0.1
1. with the official kernel.org
enable_additional_cpu_optimizations_for_gcc_v8.1+_kernel_v4.13+.patch
2. with the extracted 5011_enable-cpu-optimizations-for-gcc8.patch from 5.0-3

patch -p1 < xyz

both did work with the expacted result

While on gentoo-sources 5.0.2 both did fail at different points. But what the interesting thing is :
the manually applied patch with -p1 produces different errors on 5.0.2 than the emerge process is doing it ???

Manual patch on 5.0.2 : 

checking file arch/x86/Makefile_32.cpu
Hunk #2 FAILED at 43.
1 out of 2 hunks FAILED
checking file arch/x86/Kconfig.cpu
Hunk #2 succeeded at 150 with fuzz 1 (offset -1 lines).
Hunk #3 succeeded at 158 (offset -1 lines).
Hunk #4 FAILED at 167.
Hunk #5 succeeded at 324 (offset 70 lines).
Hunk #6 FAILED at 264.
Hunk #7 succeeded at 444 (offset 155 lines).
Hunk #8 FAILED at 326.
Hunk #9 FAILED at 344.
4 out of 9 hunks FAILED
checking file arch/x86/Makefile
Hunk #1 FAILED at 118.
1 out of 1 hunk FAILED
checking file arch/x86/include/asm/module.h
Hunk #1 FAILED at 25.
Hunk #2 succeeded at 63 (offset 20 lines).
1 out of 2 hunks FAILED

emerge patching on 5.0.2

checking file arch/x86/Makefile_32.cpu
Hunk #1 FAILED at 23.
Hunk #2 FAILED at 32.
2 out of 2 hunks FAILED
checking file arch/x86/Kconfig.cpu
Hunk #1 succeeded at 109 with fuzz 2 (offset -7 lines).
Hunk #2 FAILED at 151.
Hunk #3 FAILED at 159.
Hunk #4 FAILED at 167.
Hunk #5 FAILED at 254.
Hunk #6 FAILED at 263.
Hunk #7 succeeded at 458 with fuzz 2 (offset 170 lines).
Hunk #8 FAILED at 325.
Hunk #9 FAILED at 343.
7 out of 9 hunks FAILED
checking file arch/x86/Makefile
Hunk #1 FAILED at 118.
1 out of 1 hunk FAILED
checking file arch/x86/include/asm/module.h
Hunk #1 FAILED at 25.
Hunk #2 FAILED at 43.
2 out of 2 hunks FAILED

Hope it is not getting to confusing.
Comment 8 Mike Pagano gentoo-dev 2019-03-16 20:54:55 UTC
Wrong distro.