Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 751904 - sys-kernel/genkernel-4.1.2-r3 - ERROR: Failed to apply patch ... dmraid-1.0.0_rc16-004-staticlink.patch
Summary: sys-kernel/genkernel-4.1.2-r3 - ERROR: Failed to apply patch ... dmraid-1.0.0...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-30 13:36 UTC by Alexander Bruns
Modified: 2021-02-06 16:30 UTC (History)
0 users

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


Attachments
log of broken genkernel-run (genkernel.log,264.85 KB, text/plain)
2020-10-30 13:37 UTC, Alexander Bruns
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bruns 2020-10-30 13:36:10 UTC
Hi,

I wanted to update from kernel 4.14.156 to 4.14.202 and use the same config on genkernel than last time.

Last time was December 2019 ;-) So I do nut upgrade my kernel very often ;-)

I used this command:

genkernel all --lvm --mdadm --dmraid --kernel-config=/boot/config-4.14.202

If I do genkernel it stops here:

* Gentoo Linux Genkernel; Version 4.1.2
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: all --lvm --mdadm --dmraid --kernel-config=/boot/config-4.14.202

* Working with Linux kernel 4.14.202-gentoo-x86_64 for x86_64
* Using kernel config file '/boot/config-4.14.202' ...
*
* Note: The version above is subject to change (depends on config and status of kernel sources).

* kernel: >> Initializing ...
* >> Previous config backed up to .config--2020-10-23--21-33-32.bak
* >> Running 'make mrproper' ...
* >> Running 'make oldconfig' ...
* >> Re-running 'make oldconfig' due to changed kernel options ...
* >> Compiling 4.14.202-gentoo-x86_64 bzImage ...
* >> Compiling 4.14.202-gentoo-x86_64 modules ...
* >> Installing 4.14.202-gentoo-x86_64 modules (and stripping) ...
* >> Generating module dependency data ...
* >> Compiling out-of-tree module(s) ...
* >> Saving config of successful build to '/etc/kernels/kernel-config-4.14.202-gentoo-x86_64' ...

* initramfs: >> Initializing ...
* >> Appending devices cpio data ...
* >> Appending base_layout cpio data ...
* >> Appending util-linux cpio data ...
* >> Appending eudev cpio data ...
* >> Appending devicemanager cpio data ...
* >> Appending auxilary cpio data ...
* >> Appending busybox cpio data ...
* >> Appending dmraid cpio data ...
* ERROR: Failed to apply patch '/usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-004-staticlink.patch' for 'dmraid-1.0.0.rc16-3'!
* ERROR: create_initramfs(): append_data(): append_dmraid(): populate_binpkg(): gkbuild(): Failed to create binpkg of dmraid-1.0.0.rc16-3!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* '/var/log/genkernel.log' so that your issue can be dealt with effectively.
*
* Please do *not* report kernel compilation failures as genkernel bugs!
*

Any ideas what to change or look to? I did not find somone reporting similar. 

Here the complete genkernel.log:




Reproducible: Always

Steps to Reproduce:
1. genkernel all --lvm --mdadm --dmraid --kernel-config=/boot/config-4.14.202 
2.
3.
Comment 1 Alexander Bruns 2020-10-30 13:37:27 UTC
Created attachment 669308 [details]
log of broken genkernel-run
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-30 16:53:08 UTC
Like posted in https://forums.gentoo.org/viewtopic-t-1122044-start-0-postdays-0-postorder-asc.html I have no idea what can cause this. The patch is correct and applies for several people.

Please show us `emerge --info sys-devel/patch | tail -n 11`.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-30 16:54:01 UTC
And `sha256sum /usr/share/genkernel/patches/dmraid/*/*.patch`
Comment 4 Alexander Bruns 2020-11-01 15:17:39 UTC
Hi,

Here the inputs you wanted:

holodeck ~ # emerge --info sys-devel/patch | tail -n 11
USE="X a52 aac accessibility acl acpi activities aim alsa amd64 apache2 apm audiofile authfile avahi avx avx2 bash-completition berkdb bluetooth branding bzip2 cairo calendar cdb cdda cddb cdparanoia cdr cgi cjk clamav cli cracklib crypt css cups curl cxx dbus declarative dga directfb dri dts dv dvb dvd dvdr elogind emboss encode exif expat fam fastcgi fbcon ffmpeg firefox flac foomaticdb fortran ftp gcj gd gdbm geoip gif gimp git glib gmp gnutls gphoto2 gpm gps graphviz gstreamer gtk gui gzip hddtemp http iconv icq icu imagemagick imap imlib innodb ipv6 jabber java javascript jpeg jpeg2k kde kipi kwallet lame lcms ldap libg++ libglvnd libnotify libsamplerate libtirpc libwww lm_sensors lzma lzo mad maildir matroska mbox memlimit mhash mikmod mime mmx mmxext mng modules mono mp3 mp4 mpeg mplayer mssql mtp multilib mysql nas ncurses nls nntp nptl nsplugin nvidia odbc offensive ogg opengl openmp oss pam pango pcre pda pdf perl phonon php plasma png policykit posix ppds printsupport python qmail-spp qml qt3support qt5 radius rdesktop readline recode rss ruby samba scanner sdl seamonkey seccomp semantic-desktop session sharedmem shorten simplexml slang slp smp sndfile snmp soap sockets socks5 sound spell split-usr sql sqlite sqlite3 sse sse2 sse3 sse4_1 ssl ssse3 startup-notification subversion suexec svg symlink szip tcl tcpd threads tiff tk truetype udev udisks unicode upnp upnp-av upower usb vcd vhosts vim-syntax virtualbox vnc vorbis wavpack webkit widgets win32codecs wmf wxwidgets wxwindows x264 xattr xcb xcomposite xface xine xinerama xinetd xkb xml xosd xpm xprint xscreensaver xulrunner xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="access actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid compat dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic unixd negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so speling socache_shmcb status unique_id userdir usertrack version vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis 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 en ja ko zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia nouveau" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

sys-devel/patch-2.7.6-r4::gentoo was built with the following:
USE="xattr -static -test" ABI_X86="(64)"
FEATURES="preserve-libs ipc-sandbox binpkg-dostrip xattr network-sandbox unmerge-orphans usersync fixlafiles usersandbox config-protect-if-modified merge-sync assume-digests sandbox ebuild-locks collision-protect pid-sandbox parallel-fetch binpkg-docompress protect-owned unmerge-logs sfperms unknown-features-warn userfetch binpkg-logs news qa-unresolved-soname-deps userpriv distlocks strict multilib-strict"

Sie haben neue Post in /var/qmail/alias/.mailbox.


holodeck ~ # sha256sum /usr/share/genkernel/patches/dmraid/*/*.patch
876d53f834a9833749efba0d0f69d2c62307060a4c7da1bf0330a7dbe0d720d6  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0.rc16-3-staticlink.patch
5eb8d6b268249fe3ef9e184376dfc04a2b8cffb4204c41d69480f3ae09caa670  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-001-undo-p-rename.patch
23e42464c181fba59ad18ea74240e670208c26ee71510c6e34a20c2ee522d6a9  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-002-return-all-sets.patch
fa12b84136faa549313a0bf064d66f740aefbf2e1801181966ba02c2ca99db0d  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-003-static-build-fixes.patch
876d53f834a9833749efba0d0f69d2c62307060a4c7da1bf0330a7dbe0d720d6  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-004-staticlink.patch
f8a3d665822fa652d839af70fcef800d59c296891144a42603a473d6d9a69fc4  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-005-parallel-make.patch
a45054960405e41ec81bfe113adbf273d5c3292897233d58500ea12305c3c7cc  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-return-all-sets.patch
ba062ea97d9193f3bf567e031077393890349f01dad3c5864556e82d4d44f767  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-static-build-fixes.patch
5eb8d6b268249fe3ef9e184376dfc04a2b8cffb4204c41d69480f3ae09caa670  /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/dmraid-1.0.0_rc16-undo-p-rename.patch
Comment 5 Alexander Bruns 2020-11-01 15:21:48 UTC
I do the ucode for the intel-processor like this, is this perhaps breaking something? 

Begin of Decembeber 2019 when I last time let genkernel build 4.14.156 it was not braking anything:

I took instructions from here:
https://fitzcarraldoblog.wordpress.com/2014/11/06/updating-intel-cpu-microcode-from-gentoo-linux/

cd /boot/initrd
cp /lib/firmware/intel-ucode/06-3c-03 /boot/initrd/kernel/x86/microcode/GenuineIntel.bin
cd /boot/initrd
find . | cpio -o -H newc >../ucode.cpio


If genkernel builds correct I would do it like this:


mv /boot/initramfs-genkernel-x86_64-4.14.202-gentoo /boot/initramfs-genkernel-x86_64-4.14.202-gentoo.tmp
cat /boot/ucode.cpio /boot/initramfs-genkernel-x86_64-4.14.202-gentoo.tmp > /boot/initramfs-genkernel-x86_64-4.14.202-gentoo

Is this somegow breaking anything O do these steps only after genkernel which is failing.
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2020-11-01 16:37:28 UTC
Please unmerge genkernel. Manually clean /usr/share/genkernel. Now re-install the package.

You should only have

- dmraid-1.0.0_rc16-001-undo-p-rename.patch
- dmraid-1.0.0_rc16-002-return-all-sets.patch
- dmraid-1.0.0_rc16-003-static-build-fixes.patch
- dmraid-1.0.0_rc16-004-staticlink.patch
- dmraid-1.0.0_rc16-005-parallel-make.patch

in /usr/share/genkernel/patches/dmraid/1.0.0.rc16-3/
Comment 7 Alexander Bruns 2020-11-03 07:57:46 UTC
Thx, that was the solution, after unmerging the package there vere some patches remaining. I deleted them, re-emerged gencernel and now get this:

* Gentoo Linux Genkernel; Version 4.1.2
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: all --lvm --mdadm --dmraid --kernel-config=/boot/config-4.14.202

* Working with Linux kernel 4.14.202-gentoo-x86_64 for x86_64
* Using kernel config file '/boot/config-4.14.202' ...
* 
* Note: The version above is subject to change (depends on config and status of kernel sources).

* kernel: >> Initializing ...
*         >> Previous config backed up to .config--2020-11-02--23-04-36.bak
*         >> Running 'make mrproper' ...
*         >> Running 'make oldconfig' ...
*         >> Re-running 'make oldconfig' due to changed kernel options ...
*         >> Compiling 4.14.202-gentoo-x86_64 bzImage ...
*         >> Compiling 4.14.202-gentoo-x86_64 modules ...
*         >> Installing 4.14.202-gentoo-x86_64 modules (and stripping) ...
*         >> Generating module dependency data ...
*         >> Compiling out-of-tree module(s) ...
*         >> Saving config of successful build to '/etc/kernels/kernel-config-4.14.202-gentoo-x86_64' ...

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
*         >> Appending eudev cpio data ...
*         >> Appending devicemanager cpio data ...
*         >> Appending auxilary cpio data ...
*         >> Appending busybox cpio data ...
*         >> Appending dmraid cpio data ...
*         >> Appending lvm cpio data ...
*         >> Appending mdadm cpio data ...
*         >> Appending modprobed cpio data ...
*         >> Appending modules cpio data ...
*         >> Appending linker cpio data ...
*         >> Deduping cpio ...
*         >> Pre-generating initramfs' /etc/ld.so.cache ...
*         >> Compressing cpio data (.gz) ...

* Kernel compiled successfully!
* 
* --no-bootloader set; Skipping bootloader update ...
* 
* Required kernel parameter:
* 
*       root=/dev/$ROOT
* 
* Where $ROOT is the device node for your root partition as the
* one specified in /etc/fstab

* If you require Genkernel's hardware detection features, you MUST
* tell your bootloader to use the provided initramfs file '/boot/initramfs-4.14.202-gentoo-x86_64.img'.

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:
* - Add "dodmraid" for dmraid support or "dodmraid=<additional options>"
* - Add "domdadm" for MDRAID support
* - Add "dolvm" for LVM support
* 
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
* 
* Make sure you have the latest ~arch genkernel before reporting bugs.


Thank you very much.

Alex
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2021-02-06 16:30:58 UTC
Thank you for the feedback.

Closing as INVALID because it wasn't a problem in genkernel itself.