Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 468460

Summary: "genkernel all" fails with no config found
Product: Gentoo Hosted Projects Reporter: Ulrich Teichert <krypton>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: hppa, zerochaos
Priority: Normal    
Version: unspecified   
Hardware: HPPA   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 472470    
Bug Blocks:    
Attachments: 32-bit config extracted from install-hppa-minimal-20130122-smp.iso
64-bit config extracted from install-hppa-minimal-20130122-smp.iso
genkernel.log
genkernel --log-level=5

Description Ulrich Teichert 2013-05-03 14:51:30 UTC
After an install through the experimental live CD from:

http://distfiles.gentoo.org/experimental/hppa/livecd/install-hppa-minimal-20130122.iso

`genkernel all` failed with the error message "no kernel config found". I did an `emerge genkernel` prior to that and version 3.4.45 got installed.

Reproducible: Always

Actual Results:  
Kernel compile did not start

Expected Results:  
Kernel compile with config from live CD.
Comment 1 Ulrich Teichert 2013-05-03 15:14:58 UTC
Forgot to mention that this was on a C8000 with a 64bit kernel booted - 32bit kernels do not work on it.
Comment 2 Richard Yao (RETIRED) gentoo-dev 2013-06-06 06:41:35 UTC
Would the hppa team provide a general purpose .config for us, preferrably from Linux 3.6 or later? That is the only thing blocking hppa support in genkernel.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-06 12:58:02 UTC
(In reply to Richard Yao from comment #2)
> Would the hppa team provide a general purpose .config for us, preferrably
> from Linux 3.6 or later? That is the only thing blocking hppa support in
> genkernel.

You mean one generated by genkernel?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-06 13:08:48 UTC
Created attachment 350276 [details]
32-bit config extracted from install-hppa-minimal-20130122-smp.iso

I guess the ones from that install CD will do?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-06 13:09:05 UTC
Created attachment 350278 [details]
64-bit config extracted from install-hppa-minimal-20130122-smp.iso
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-06 13:09:57 UTC
It would probably help to see the output genkernel produces so that we know how it actually fails.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-06 13:44:39 UTC
(In reply to Richard Yao from comment #2)
> Would the hppa team provide a general purpose .config for us, preferrably
> from Linux 3.6 or later? That is the only thing blocking hppa support in
> genkernel.

Hint: If you ever need to extract a config from a kernel, just use
   /usr/src/linux/scripts/extract-ikconfig

:)
Comment 8 Rick Farina (Zero_Chaos) gentoo-dev 2013-06-17 15:41:45 UTC
*** Bug 473596 has been marked as a duplicate of this bug. ***
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 19:41:05 UTC
It seems that even if you get the failure, and then pass --kernel-config=/usr/src/linux/.config, it proceeds to copy that to a date-suffixed .bak file and fails to find it after that.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-02 15:23:52 UTC
Created attachment 374096 [details]
genkernel.log

In /etc/genkernel.conf I make a single change (to at least get the right toolchain to be used):

#KERNEL_CROSS_COMPILE="x86_64-pc-linux-gnu"
KERNEL_CROSS_COMPILE="hppa64-unknown-linux-gnu-"

On the command line I apparently need to provide
   --kernel-config=/usr/src/linux/.config

or it will complain it cannot find it, regardless of whether that file exists.

(Note that the original line that is commented out wouldn't work in any case, since it is supposed to be a prefix ending in a dash.)
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-02 15:27:56 UTC
Created attachment 374098 [details]
genkernel --log-level=5

This isn't any more informative.
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-01-02 23:22:19 UTC
These codepaths have changed significently, please retest with the latest unstable genkernel.