View previous topic :: View next topic |
Author |
Message |
r0ck80y Tux's lil' helper
Joined: 03 May 2007 Posts: 102
|
Posted: Wed Jun 19, 2024 4:55 pm Post subject: Genkernel error: Failed to create binpkg of util-linux |
|
|
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 |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 2003
|
Posted: Wed Jun 19, 2024 5:14 pm Post subject: |
|
|
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 |
|
|
r0ck80y Tux's lil' helper
Joined: 03 May 2007 Posts: 102
|
Posted: Wed Jun 19, 2024 8:32 pm Post subject: |
|
|
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 |
|
|
Duncan Mac Leod Guru
Joined: 02 May 2004 Posts: 316 Location: Germany
|
Posted: Mon Feb 03, 2025 11:27 am Post subject: |
|
|
How did you solve it?
I've got nearly the same error today... - using the latest stable genkernel... (compiling 5.10.233 gentoo-sources)
Code: |
* initramfs: >> Initializing ...
* >> Appending devices cpio data ...
* >> Appending base_layout cpio data ...
* >> Appending util-linux cpio data ...
* ERROR: Command 'nice -n10 make -j2 V=1' failed!
* ERROR: create_initramfs(): append_data(): append_util-linux(): populate_binpkg(): gkbuild(): Failed to create binpkg of util-linux-2.39.3!
* 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.
|
Seems theres is aproblem conpiling util-linux 2.39.3
Don't know why the system wants 2.39.3 ?? On my system there is already 2.40.2 !!
Code: |
/bin/sh ./libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -include config.h -I./include -DLOCALEDIR=\"/usr/share/locale\" -D_PATH_RUNSTATEDIR=\"/var/lib/run\" -D_PATH_SYSCONFSTATICDIR=\"/usr/lib\" -fsigned-char -fno-common -Wall -Wextra -Waddress-of-packed-member -Wdiscarded-qualifiers -Wformat-security -Wimplicit-function-declaration -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-missing-field-initializers -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Werror=sequence-point -I./libblkid/src -I./libmount/src -I./libmount/src -Os -pipe -fomit-frame-pointer -c -o libmount/src/la-optmap.lo `test -f 'libmount/src/optmap.c' || echo './'`libmount/src/optmap.c
/bin/sh ./libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -include config.h -I./include -DLOCALEDIR=\"/usr/share/locale\" -D_PATH_RUNSTATEDIR=\"/var/lib/run\" -D_PATH_SYSCONFSTATICDIR=\"/usr/lib\" -fsigned-char -fno-common -Wall -Wextra -Waddress-of-packed-member -Wdiscarded-qualifiers -Wformat-security -Wimplicit-function-declaration -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-missing-field-initializers -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Werror=sequence-point -I./libblkid/src -I./libmount/src -I./libmount/src -Os -pipe -fomit-frame-pointer -c -o libmount/src/la-optlist.lo `test -f 'libmount/src/optlist.c' || echo './'`libmount/src/optlist.c
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -include config.h -I./include -DLOCALEDIR=\"/usr/share/locale\" -D_PATH_RUNSTATEDIR=\"/var/lib/run\" -D_PATH_SYSCONFSTATICDIR=\"/usr/lib\" -fsigned-char -fno-common -Wall -Wextra -Waddress-of-packed-member -Wdiscarded-qualifiers -Wformat-security -Wimplicit-function-declaration -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-missing-field-initializers -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Werror=sequence-point -I./libblkid/src -I./libmount/src -I./libmount/src -Os -pipe -fomit-frame-pointer -c libmount/src/optmap.c -fPIC -DPIC -o libmount/src/.libs/la-optmap.o
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -include config.h -I./include -DLOCALEDIR=\"/usr/share/locale\" -D_PATH_RUNSTATEDIR=\"/var/lib/run\" -D_PATH_SYSCONFSTATICDIR=\"/usr/lib\" -fsigned-char -fno-common -Wall -Wextra -Waddress-of-packed-member -Wdiscarded-qualifiers -Wformat-security -Wimplicit-function-declaration -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-missing-field-initializers -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Werror=sequence-point -I./libblkid/src -I./libmount/src -I./libmount/src -Os -pipe -fomit-frame-pointer -c libmount/src/optlist.c -fPIC -DPIC -o libmount/src/.libs/la-optlist.o
libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -include config.h -I./include -DLOCALEDIR=\"/usr/share/locale\" -D_PATH_RUNSTATEDIR=\"/var/lib/run\" -D_PATH_SYSCONFSTATICDIR=\"/usr/lib\" -fsigned-char -fno-common -Wall -Wextra -Waddress-of-packed-member -Wdiscarded-qualifiers -Wformat-security -Wimplicit-function-declaration -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-missing-field-initializers -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Werror=sequence-point -I./libblkid/src -I./libmount/src -I./libmount/src -Os -pipe -fomit-frame-pointer -c libmount/src/optmap.c -o libmount/src/la-optmap.o >/dev/null 2>&1
In file included from ./include/mount-api-utils.h:11,
from libmount/src/optlist.c:19:
/usr/include/linux/mount.h:95:6: error: redeclaration of 'enum fsconfig_command'
95 | enum fsconfig_command {
| ^~~~~~~~~~~~~~~~
In file included from libmount/src/libmount.h:40,
from libmount/src/mountP.h:31,
from libmount/src/optlist.c:18:
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:250:6: note: originally defined here
250 | enum fsconfig_command
| ^~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:96:9: error: redeclaration of enumerator 'FSCONFIG_SET_FLAG'
96 | FSCONFIG_SET_FLAG = 0, /* Set parameter, supplying no value */
| ^~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:252:3: note: previous definition of 'FSCONFIG_SET_FLAG' with type 'enum fsconfig_command'
252 | FSCONFIG_SET_FLAG = 0, /* Set parameter, supplying no value */
| ^~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:97:9: error: redeclaration of enumerator 'FSCONFIG_SET_STRING'
97 | FSCONFIG_SET_STRING = 1, /* Set parameter, supplying a string value */
| ^~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:254:3: note: previous definition of 'FSCONFIG_SET_STRING' with type 'enum fsconfig_command'
254 | FSCONFIG_SET_STRING = 1, /* Set parameter, supplying a string value */
| ^~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:98:9: error: redeclaration of enumerator 'FSCONFIG_SET_BINARY'
98 | FSCONFIG_SET_BINARY = 2, /* Set parameter, supplying a binary blob value */
| ^~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:256:3: note: previous definition of 'FSCONFIG_SET_BINARY' with type 'enum fsconfig_command'
256 | FSCONFIG_SET_BINARY = 2, /* Set parameter, supplying a binary blob value */
| ^~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:99:9: error: redeclaration of enumerator 'FSCONFIG_SET_PATH'
99 | FSCONFIG_SET_PATH = 3, /* Set parameter, supplying an object by path */
| ^~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:258:3: note: previous definition of 'FSCONFIG_SET_PATH' with type 'enum fsconfig_command'
258 | FSCONFIG_SET_PATH = 3, /* Set parameter, supplying an object by path */
| ^~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:100:9: error: redeclaration of enumerator 'FSCONFIG_SET_PATH_EMPTY'
100 | FSCONFIG_SET_PATH_EMPTY = 4, /* Set parameter, supplying an object by (empty) path */
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:260:3: note: previous definition of 'FSCONFIG_SET_PATH_EMPTY' with type 'enum fsconfig_command'
260 | FSCONFIG_SET_PATH_EMPTY = 4, /* Set parameter, supplying an object by (empty) path */
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:101:9: error: redeclaration of enumerator 'FSCONFIG_SET_FD'
101 | FSCONFIG_SET_FD = 5, /* Set parameter, supplying an object by fd */
| ^~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:262:3: note: previous definition of 'FSCONFIG_SET_FD' with type 'enum fsconfig_command'
262 | FSCONFIG_SET_FD = 5, /* Set parameter, supplying an object by fd */
| ^~~~~~~~~~~~~~~
/usr/include/linux/mount.h:102:9: error: redeclaration of enumerator 'FSCONFIG_CMD_CREATE'
102 | FSCONFIG_CMD_CREATE = 6, /* Invoke superblock creation */
| ^~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:264:3: note: previous definition of 'FSCONFIG_CMD_CREATE' with type 'enum fsconfig_command'
264 | FSCONFIG_CMD_CREATE = 6, /* Invoke superblock creation */
| ^~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:103:9: error: redeclaration of enumerator 'FSCONFIG_CMD_RECONFIGURE'
103 | FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:266:3: note: previous definition of 'FSCONFIG_CMD_RECONFIGURE' with type 'enum fsconfig_command'
266 | FSCONFIG_CMD_RECONFIGURE = 7, /* Invoke superblock reconfiguration */
| ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/mount-api-utils.h:11,
from libmount/src/optlist.c:19:
/usr/include/linux/mount.h:129:8: error: redefinition of 'struct mount_attr'
129 | struct mount_attr {
| ^~~~~~~~~~
In file included from libmount/src/libmount.h:40,
from libmount/src/mountP.h:31,
from libmount/src/optlist.c:18:
/usr/lib/gcc/x86_64-pc-linux-gnu/11/include-fixed/sys/mount.h:219:8: note: originally defined here
219 | struct mount_attr
| ^~~~~~~~~~
make[2]: *** [Makefile:11218: libmount/src/la-optlist.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/genkernel/gk_a4VsjVvM/util-linux/util-linux-2.39.3'
make[1]: *** [Makefile:15793: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/genkernel/gk_a4VsjVvM/util-linux/util-linux-2.39.3'
make: *** [Makefile:6702: all] Error 2
* ERROR: Command 'nice -n10 make -j2 V=1' failed!
* ERROR: create_initramfs(): append_data(): append_util-linux(): populate_binpkg(): gkbuild(): Failed to create binpkg of util-linux-2.39.3!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
|
|
|
Back to top |
|
|
Duncan Mac Leod Guru
Joined: 02 May 2004 Posts: 316 Location: Germany
|
Posted: Mon Feb 03, 2025 1:20 pm Post subject: |
|
|
Problem **SOLVED** - Bug-Report filed: https://bugs.gentoo.org/949260
Downgrading genkernel to 4.3.10 (which uses an older version of util-linux < 2.39) worked.
genkernel 4.3.16 (which uses util-linux-2.39.3) does not build util-linux on amd64 (stable) with latest updates and should be put to testing tree, not stable. |
|
Back to top |
|
|
|
|
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
|
|