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

Bug 568002

Summary: genkernel fails with cpio 'Cannot stat: No such file or directory' errors
Product: Gentoo Linux Reporter: Marc Duponcheel <marc>
Component: [OLD] Core systemAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: genkernel.log
emerge --info
genkernel.conf

Description Marc Duponcheel 2015-12-11 16:55:55 UTC
Created attachment 418986 [details]
genkernel.log

I use following recipe for years
 --
eselect kernel set linux-4.3.2-gentoo
cd /usr/src/linux-4.3.2-gentoo
make clean
make mrproper
zcat /proc/config.gz > .config
make oldconfig
make prepare
genkernel --no-clean --makeopts=-j5 all
 --
here is output

* Gentoo Linux Genkernel; Version 3.4.52.2
* Running with options: --no-clean --makeopts=-j5 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 ..

* Linux Kernel 4.3.2-gentoo for x86_64...
* .. with config file /etc/kernels/kernel-config-x86_64-4.3.2-gentoo
* kernel: --mrproper is disabled; not running 'make mrproper'.
*         >> Running oldconfig...
* kernel: --clean is disabled; not running 'make clean'.
*         >> Compiling 4.3.2-gentoo bzImage...
*         >> Not installing firmware as it's included in the kernel already (CONFIG_FIRMWARE_IN_KERNEL=y)...
*         >> Compiling 4.3.2-gentoo modules...
*         >> Generating module dependency data...
* Copying config for successful build to /etc/kernels/kernel-config-x86_64-4.3.2-gentoo
* busybox: >> Using cache
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending auxilary cpio data...
*         >> Copying keymaps
*         >> Appending busybox cpio data...
*         >> Appending modules cpio data...
*         >> Appending blkid cpio data...
cpio:  /lib64/libblkid.so.1.1.0: Cannot stat: No such file or directory
cpio:   /lib64/libc-2.22.so: Cannot stat: No such file or directory
cpio:   /lib64/libuuid.so.1.3.0: Cannot stat: No such file or directory
* ERROR: Binary  or some of its library dependencies could not be copied
* 
* -- Grepping log... --
* 
* Running with options: --no-clean --makeopts=-j5 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: Binary  or some of its library dependencies could not be copied
* 
* -- 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 Marc Duponcheel 2015-12-11 16:56:30 UTC
Created attachment 418988 [details]
emerge --info
Comment 2 Marc Duponcheel 2015-12-11 16:58:42 UTC
Created attachment 418990 [details]
genkernel.conf
Comment 3 Marc Duponcheel 2015-12-12 02:54:20 UTC
I tried genkernel-next too, same issue.
For now I use dracut to make init ram fs.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-01-23 21:32:54 UTC
Please increase your loglevel and re-run, then include the new output.