Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646446 - sys-kernel/genkernel-3.4.52.4-r2 ERROR: Error: No kernel .config specified, or file not found! - Missing default config in /usr/share/genkernel/arch
Summary: sys-kernel/genkernel-3.4.52.4-r2 ERROR: Error: No kernel .config specified, o...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: ARM Linux
: Normal minor
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-02 22:56 UTC by sachse
Modified: 2018-02-09 00:12 UTC (History)
0 users

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 sachse 2018-02-02 22:56:13 UTC
sys-kernel/genkernel-3.4.52.4-r2 ERROR: Error: No kernel .config specified, or file not found



Reproducible: Always

Steps to Reproduce:
1. run genkernel on ARM platform

Actual Results:  
read(255, "determine_config_file\n\nset_kerne"..., 8192) = 7651
stat64("/etc/kernels/kernel-config-arm-4.14.15-gentoo", 0xbed3d750) = -1 ENOENT (No such file or directory)
stat64("/usr/share/genkernel/arch/arm/kernel-config-4.14.15-gentoo", 0xbed3d660) = -1 ENOENT (No such file or directory)
stat64("/usr/share/genkernel/arch/arm/kernel-config-4.14", 0xbed3d480) = -1 ENOENT (No such file or directory)
stat64("/usr/share/genkernel/arch/arm/kernel-config", 0xbed3d390) = -1 ENOENT (No such file or directory)

ERROR: Error: No kernel .config specified, or file not found

Expected Results:  
Provide a default config file or ignore missing file if /usr/src/linux/.config exists

Workarund: Add --kernel-config=/usr/src/linux/.config to commandline
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-02-03 05:54:52 UTC
please re-run with --loglevel=5, because you didn't provide your commandline or genkernel.conf.

For the most part, the ARM platforms are so different from each other, that you SHOULD specify your own config.
Comment 2 sachse 2018-02-09 00:12:55 UTC
Commandline is: genkernel --menuconfig --loglevel=5 --no-splash --lvm --mdadm --disklabel --luks --no-gpg --keymap --mdadm-config=/etc/mdadm.conf --no-dmraid --no-zfs --no-iscsi --no-integrated-initramfs  --install initramfs --no-clean --no-mrproper all

I think instead of aborting the script it would nice to try to use /usr/src/linux/.config if it exits.
Mostly a copy of /proc/config.gz from install system.