Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637698 - sys-kernel/genkernel fails to compile kernel 4.14
Summary: sys-kernel/genkernel fails to compile kernel 4.14
Status: RESOLVED FIXED
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:
: 638018 641824 642022 642438 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-16 18:15 UTC by Vit Pelcak
Modified: 2017-12-27 20:43 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vit Pelcak 2017-11-16 18:15:01 UTC
I have AMDGPU and until kernel 4.14 all kernels compiled just fine.

With kernel 4.14 I see this failure:


* Linux Kernel 4.14.0-gentoo for x86_64...
* .. with config file /etc/kernels/kernel-config-x86_64-4.14.0-gentoo
* kernel: Using config from /etc/kernels/kernel-config-x86_64-4.14.0-gentoo
*         Previous config backed up to .config--2017-11-16--19-00-31.bak
* kernel: >> Running mrproper...
*         >> Running oldconfig...
* kernel: >> Cleaning...
*         >> Compiling 4.14.0-gentoo bzImage...
*         >> Installing firmware ('make firmware_install') due to CONFIG_FIRMWARE_IN_KERNEL != y...
* ERROR: Failed to compile the "firmware_install" target...
* 
* -- Grepping log... --
* 
*  CC      arch/x86/boot/compressed/misc.o
*  MKPIGGY arch/x86/boot/compressed/piggy.S
*  AS      arch/x86/boot/compressed/piggy.o
*  DATAREL arch/x86/boot/compressed/vmlinux
*  LD      arch/x86/boot/compressed/vmlinux
*ld: arch/x86/boot/compressed/head_64.o: warning: relocation in readonly section `.head.text'
*ld: warning: creating a DT_TEXTREL in a shared object.
*--
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Failed to compile the "firmware_install" target...
* 
* -- End log... --
* 
* 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 compilation failures as genkernel bugs!
*

Reproducible: Always




/var/log/genkernel.log:

  HOSTCC  arch/x86/boot/compressed/mkpiggy
  CC      arch/x86/boot/compressed/cpuflags.o
  CC      arch/x86/boot/compressed/early_serial_console.o
  LZ4     arch/x86/boot/compressed/vmlinux.bin.lz4
  CC      arch/x86/boot/compressed/misc.o
  MKPIGGY arch/x86/boot/compressed/piggy.S
  AS      arch/x86/boot/compressed/piggy.o
  DATAREL arch/x86/boot/compressed/vmlinux
  LD      arch/x86/boot/compressed/vmlinux
ld: arch/x86/boot/compressed/head_64.o: warning: relocation in readonly section `.head.text'
ld: warning: creating a DT_TEXTREL in a shared object.
  ZOFFSET arch/x86/boot/zoffset.h
  OBJCOPY arch/x86/boot/vmlinux.bin
  AS      arch/x86/boot/header.o
  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  BUILD   arch/x86/boot/bzImage
Setup is 16028 bytes (padded to 16384 bytes).
System is 8545 kB
CRC c2eebaa6
Kernel: arch/x86/boot/bzImage is ready  (#1)
*         >> Installing firmware ('make firmware_install') due to CONFIG_FIRMWARE_IN_KERNEL != y...
COMMAND: make -j12 -j1 CC="gcc" LD="ld" AS="as" ARCH="x86"  
make: *** No rule to make target „firmware_install“. Exit.
* Gentoo Linux Genkernel; Version 65
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* ERROR: Failed to compile the "firmware_install" target...
* 
* -- Grepping log... --
* 
* 
* -- End log... --
* 
* 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 compilation failures as genkernel bugs!
*
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-11-16 21:19:27 UTC
4.14 no longer supports in-kernel firmware at all.

I'll amend the check to forcibly bail out, but you need to migrate yourself as previously noted by genkernel.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-11-16 22:43:31 UTC
For the moment, disable FIRMWARE_INSTALL in your config.
Comment 3 Larry the Git Cow gentoo-dev 2017-11-16 23:44:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba0de310141c3f0863688e7eae78bc8f591efce8

commit ba0de310141c3f0863688e7eae78bc8f591efce8
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2017-11-16 23:41:11 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2017-11-16 23:44:12 +0000

    sys-kernel/genkernel: bump.
    
    Fixes: https://bugs.gentoo.org/637698
    Fixes: https://bugs.gentoo.org/637446
    Package-Manager: Portage-2.3.8, Repoman-2.3.3

 sys-kernel/genkernel/Manifest                 |   1 +
 sys-kernel/genkernel/genkernel-3.5.2.4.ebuild | 165 ++++++++++++++++++++++++++
 2 files changed, 166 insertions(+)
Comment 4 Brian Evans (RETIRED) gentoo-dev 2017-11-18 14:42:56 UTC
*** Bug 638018 has been marked as a duplicate of this bug. ***
Comment 5 J.Borme 2017-11-18 19:21:58 UTC
FIRMWARE="no" in /etc/genkernel.conf does NOT solve the problem.

Upgrading to genkernel 3.5.2.4 solves the problem.

(and thanks to the devs for the quick action)
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-11-18 20:04:36 UTC
FIRMWARE_INSTALL=no is the workaround.
Comment 7 Vit Pelcak 2017-11-20 10:53:37 UTC
Hello.

Just a question, why was this bug changed from genkernel-next to genkernel?

If genkernel-next no longer supported or was the summary where I forgot to explicitly mention genkernel-next misleading?
Comment 8 Vit Pelcak 2017-11-20 10:53:46 UTC
Hello.

Just a question, why was this bug changed from genkernel-next to genkernel?

If genkernel-next no longer supported or was the summary where I forgot to explicitly mention genkernel-next misleading?
Comment 9 Brian Evans (RETIRED) gentoo-dev 2017-11-20 14:53:01 UTC
(In reply to Vit Pelcak from comment #8)
> Hello.
> 
> Just a question, why was this bug changed from genkernel-next to genkernel?
> 
> If genkernel-next no longer supported or was the summary where I forgot to
> explicitly mention genkernel-next misleading?

It was unclear and really affects both.

genkernel-next should import this patch as well in a new release.

CC'ing back the genkernel-next maintainer
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-11-20 21:50:03 UTC
Nothing in the original report other than the component said genkernel-next.

muddler: can you throw a small patch onto gk-next that changes the log destinations and bug reporting details?
Comment 11 Scott Alfter 2017-12-19 16:49:10 UTC
Just got bit by this bug when gentoo-sources 4.14.7 was marked stable...had to pull in genkernel 3.5.2.4 (still keyworded) to get it to build.
Comment 12 Brian Evans (RETIRED) gentoo-dev 2017-12-20 16:13:43 UTC
*** Bug 641824 has been marked as a duplicate of this bug. ***
Comment 13 Jan C Peters 2017-12-20 22:31:12 UTC
Same here, with genkernel-next-66. Happens on compiling both 4.14.7 and 4.14.8-r1 kernels. Also hoping for a patch on genkernel-next.
Comment 14 Brian Evans (RETIRED) gentoo-dev 2017-12-22 13:39:33 UTC
*** Bug 642022 has been marked as a duplicate of this bug. ***
Comment 15 Thomas Beutin 2017-12-22 15:22:18 UTC
it would be nice if someone with proper permissions could change the subject to "sys-kernel/genkernel" instead of just "genkernel" so this will pop up on a search like this:
https://bugs.gentoo.org/buglist.cgi?quicksearch=ALL%20sys-kernel%2Fgenkernel
Comment 16 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2017-12-22 17:01:42 UTC
maybe is better to mask affected genkernels for the moment
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-12-25 07:07:38 UTC
alicef: please don't reopen like this. This is fixed in ~arch versions already, and I'm trying to get a stable out the door.
Comment 18 Brian Evans (RETIRED) gentoo-dev 2017-12-27 20:43:38 UTC
*** Bug 642438 has been marked as a duplicate of this bug. ***