Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel error: Failed to create binpkg of util-linux
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
r0ck80y
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2007
Posts: 102

PostPosted: Wed Jun 19, 2024 4:55 pm    Post subject: Genkernel error: Failed to create binpkg of util-linux Reply with quote

I am running an upgrade of the linux kernel. I am using the following script to upgrade the kernel:
Code:

# Copy the previous kernel config
zcat /proc/config.gz > /usr/src/linux/.config

# cd to the new kernel source directory
cd /usr/src/linux

# Update the .config file
make olddefconfig

# Diff the config files
diff <(sort .config) <(sort /home/myusername/my-config) | awk '/^<.*(=|Linux)/ { $1=""; print }'
diff <(sort .config) <(sort /home/myusername/my-config) | awk '/^>.*(=|Linux)/ { $1=""; print }'

# Backup this .config file
cp .config /home/myusername/my-config

# Compile the kernel
genkernel --kernel-config=/home/myusername/my-config --menuconfig all


I get the following output which includes an error when creating initramfs. What could be causing the error?

Code:

* Gentoo Linux Genkernel; Version 4.3.10
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --kernel-config=/home/myusername/my-config --menuconfig all

* Working with Linux kernel 6.9.5-gentoo for x86_64
* Using kernel config file '/home/myusername/my-config' ...
*
* Note: The version above is subject to change (depends on config and status of kernel sources).

* kernel: >> Initializing ...
*         >> Running 'make mrproper' ...
*         >> Running 'make oldconfig' ...
*         >> Invoking menuconfig ...
*         >> Kernel config was not modified!
*         >> Kernel version has changed (probably due to config change) since genkernel start:
*            We are now building Linux kernel 6.9.5-gentoo-x86_64 for x86_64 ...
*         >> Compiling 6.9.5-gentoo-x86_64 bzImage ...
*         >> Compiling 6.9.5-gentoo-x86_64 modules ...
*         >> Installing 6.9.5-gentoo-x86_64 modules (and stripping) ...
*         >> Generating module dependency data ...
*         >> Compiling out-of-tree module(s) ...
*         >> Saving config of successful build to '/etc/kernels/kernel-config-6.9.5-gentoo-x86_64' ...

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
* ERROR: Command 'nice -n10 make -j4 -l4 V=1' failed!
* ERROR: create_initramfs(): append_data(): append_util-linux(): populate_binpkg(): gkbuild(): Failed to create binpkg of util-linux-2.38.1!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
*


On my system, I have sys-apps/util-linux version 2.39.3-r7 installed:
Code:

[I] sys-apps/util-linux
     Available versions:  2.39.3-r2^t 2.39.3-r7^t ~2.39.4-r1^t ~2.40.1-r3^t **9999*l^t {audit build caps +cramfs cryptsetup fdformat +hardlink kill +logger magic ncurses nls pam python +readline rtas selinux slang static-libs +su +suid systemd test tty-helpers udev unicode uuidd verify-sig ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" PYTHON_TARGETS="python3_10 python3_11 python3_12"}
     Installed versions:  2.39.3-r7^t(06:29:44 PM 06/12/2024)(cramfs hardlink logger ncurses nls pam readline su suid systemd udev unicode -audit -build -caps -cryptsetup -fdformat -kill -magic -python -rtas -selinux -slang -static-libs -test -tty-helpers -verify-sig ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python3_12 -python3_10 -python3_11")
     Homepage:            https://www.kernel.org/pub/linux/utils/util-linux/ https://github.com/util-linux/util-linux
     Description:         Various useful Linux utilities


The relevant parts of the make.conf file are as follows:
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/var/db/repos/gentoo"
DISTDIR="/var/cache/distfiles"
PKGDIR="/var/cache/binpkgs"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

MAKEOPTS="-j4 -l4"
PORTAGE_NICENESS=1
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs
          binpkg-multi-instance binpkg-request-signature buildpkg-live
          config-protect-if-modified distlocks ebuild-locks
          fixlafiles ipc-sandbox merge-sync multilib-strict
          network-sandbox news parallel-fetch pid-sandbox
          preserve-libs protect-owned qa-unresolved-soname-deps
          sandbox sfperms strict
          unknown-features-warn unmerge-logs unmerge-orphans userfetch
          userpriv usersandbox usersync"
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1921

PostPosted: Wed Jun 19, 2024 5:14 pm    Post subject: Reply with quote

r0ck80y wrote:
I get the following output which includes an error when creating initramfs. What could be causing the error?
Code:
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.

Read that log for the true problem. Post it to a paste site and share here if unsure how to interpret it.
Back to top
View user's profile Send private message
r0ck80y
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2007
Posts: 102

PostPosted: Wed Jun 19, 2024 8:32 pm    Post subject: Reply with quote

Yes, I am not sure how to interpret the errors in pidfd_open and pidfd_send_signal functions as shown in the log.

I have pasted a tail of the genkernel.log file here: https://pastebin.com/FAfEFVKf
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum