Just bootstrapped a fresh amd64 machine with gentoo-sources-5.4.48 and the kernel compilation failed due to missing cpio. Please consider adding as rdepend, thanks.
Please show us kernel config which triggered this.
https://github.com/hydrapolic/kernel-config/blob/master/config/linux-5.4-gentoo.config
It's probably a dupe of #696840. However, I'm pretty sure I haven't enabled CONFIG_IKHEADERS purposely.
OK, it's triggered by CONFIG_IKHEADERS=y. So the question will be how that got enabled in your config. I emerged latest gentoo-sources-5.7.7 and it doesn't get enabled when you do `make oldconfig` even without an .config file. You said you bootstrapped a fresh system. Normally you will use kernel config from running system, i.e. from the bootmedium you used to install Gentoo. Is that also true in you case? Which medium did you use?
I have the same issue. I used http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/install-amd64-minimal-20200708T103427Z.iso for bootstrapping and I created kernel config from scratch (do not reuse it from any system). CC kernel/kallsyms.o CC kernel/acct.o CC kernel/crash_core.o CC kernel/kexec_core.o CC kernel/kexec.o CC kernel/compat.o CC kernel/utsname.o CC kernel/user_namespace.o CC kernel/pid_namespace.o GZIP kernel/config_data.gz CC kernel/configs.o CHK kernel/kheaders_data.tar.xz GEN kernel/kheaders_data.tar.xz ./kernel/gen_kheaders.sh: line 61: cpio: command not found make[1]: *** [kernel/Makefile:133: kernel/kheaders_data.tar.xz] Error 127 make: *** [Makefile:1706: kernel] Error 2
(In reply to Thomas Deutschmann from comment #4) > OK, it's triggered by CONFIG_IKHEADERS=y. So the question will be how that > got enabled in your config. I emerged latest gentoo-sources-5.7.7 and it > doesn't get enabled when you do `make oldconfig` even without an .config > file. > > You said you bootstrapped a fresh system. Normally you will use kernel > config from running system, i.e. from the bootmedium you used to install > Gentoo. Is that also true in you case? Which medium did you use? I was provisioning a virtual machine in GCP so I started a debian instance, chrooted to latest stage3-amd64 and downloaded my config from github. The configuration was made on an other machine (it's a shared one used on all machines), just installing the sources, make menuconfig and picking the stuff I need (drivers) and this was reused here. So I haven't taken the config from the running system, but went from a vanilla config + add stuff needed on multiple machines (and disabled unneeded stuff too).
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=093c23074262ad9200669fff52d9d0625b34ff71 commit 093c23074262ad9200669fff52d9d0625b34ff71 Author: Mike Pagano <mpagano@gentoo.org> AuthorDate: 2021-08-24 11:18:07 +0000 Commit: Mike Pagano <mpagano@gentoo.org> CommitDate: 2021-08-24 11:19:17 +0000 kernel-2.eclass: Add cpio dependency Closes: https://bugs.gentoo.org/731666 Signed-off-by: Mike Pagano <mpagano@gentoo.org> eclass/kernel-2.eclass | 1 + 1 file changed, 1 insertion(+)