I'm encountering a weird error while trying to compile kernel 6.18.9. It fails with the following error:
Code: Select all
* ERROR: Command 'nice -n10 make -j8 V=1' failed!
* ERROR: create_initramfs(): append_data(): append_e2fsprogs(): populate_binpkg(): gkbuild(): Failed to create binpkg of e2fsprogs-1.47.0!
Code: Select all
# ~/bin/kernel-tools.py build -d
WARNING: Will unset existing variable 'TMPDIR' to avoid clashing with genkernel config ...
* Gentoo Linux Genkernel; Version 4.3.17
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --kernel-config=/usr/src/linux/.config_custom --makeopts=-j8 --microcode=intel --bootloader=grub2 --no-virtio --no-hyperv --no-nfs --no-lvm --no-mdadm --no-iscsi --no-dmraid --no-zfs --luks --btrfs --e2fsprogs --oldconfig --nconfig all
* Working with Linux kernel 6.18.9-gentoo-x86_64 for x86_64
* Using kernel config file '/usr/src/linux-6.18.9-gentoo/.config_custom' ...
*
* Note: The version above is subject to change (depends on config and status of kernel sources).
* kernel: >> Initializing ...
* >> --no-clean is set; Skipping 'make clean' ...
* >> --no-mrproper is set; Skipping 'make mrproper' ...
* >> Will ignore kernel config from '/usr/src/linux-6.18.9-gentoo/.config_custom'
* in favor of already existing but different kernel config
* found in '/usr/src/linux/.config' ...
* >> Running 'make oldconfig' ...
* >> Invoking nconfig ...
* >> Kernel config was not modified!
* >> Re-running 'make oldconfig' due to changed kernel options ...
* >> Compiling 6.18.9-gentoo-x86_64 bzImage ...
* >> Compiling 6.18.9-gentoo-x86_64 modules ...
* >> Installing 6.18.9-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.18.9-gentoo-x86_64' ...
* initramfs: >> Initializing ...
* >> Appending devices cpio data ...
* >> Appending base_layout cpio data ...
* >> Appending util-linux cpio data ...
* >> Appending eudev cpio data ...
* >> Appending devicemanager cpio data ...
* >> Appending auxiliary cpio data ...
* >> Appending busybox cpio data ...
* >> Appending btrfs cpio data ...
* >> Appending e2fsprogs cpio data ...
* ERROR: Command 'nice -n10 make -j8 V=1' failed!
* ERROR: create_initramfs(): append_data(): append_e2fsprogs(): populate_binpkg(): gkbuild(): Failed to create binpkg of e2fsprogs-1.47.0!
* 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 kernel compilation failures as genkernel bugs!
*
Traceback (most recent call last):
File "/home/root/bin/kernel-tools.py", line 197, in <module>
sys.exit(main())
~~~~^^
File "/home/root/bin/kernel-tools.py", line 178, in main
genkernel(mode = build_mode)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/root/bin/kernel-tools.py", line 122, in genkernel
raise RuntimeError("An error occurred while building the kernel")
RuntimeError: An error occurred while building the kernel
#Code: Select all
x86_64-pc-linux-gnu-gcc -I. -I../../lib -I../../lib -I/var/tmp/genkernel/gk_xDtZjYUu/e2fsprogs/buildroot/usr/include -Os -pipe -fomit-frame-pointer -I/var/tmp/genkernel/gk_xDtZjYUu/e2fsprogs/buildroot/usr/include -pthread -DHAVE_CONFIG_H -c unix_io.c -o unix_io.o
x86_64-pc-linux-gnu-gcc -I. -I../../lib -I../../lib -I/var/tmp/genkernel/gk_xDtZjYUu/e2fsprogs/buildroot/usr/include -Os -pipe -fomit-frame-pointer -I/var/tmp/genkernel/gk_xDtZjYUu/e2fsprogs/buildroot/usr/include -pthread -DHAVE_CONFIG_H -c sparse_io.c -o sparse_io.o
tdb.c:113:13: error: 'bool' cannot be defined via 'typedef'
113 | typedef int bool;
| ^~~~
tdb.c:113:13: note: 'bool' is a keyword with '-std=c23' onwards
tdb.c:113:1: warning: useless type name in empty declaration
113 | typedef int bool;
| ^~~~~~~
x86_64-pc-linux-gnu-gcc -I. -I../../lib -I../../lib -I/var/tmp/genkernel/gk_xDtZjYUu/e2fsprogs/buildroot/usr/include -Os -pipe -fomit-frame-pointer -I/var/tmp/genkernel/gk_xDtZjYUu/e2fsprogs/buildroot/usr/include -pthread -DHAVE_CONFIG_H -c unlink.c -o unlink.o
make[2]: *** [Makefile:619: tdb.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/genkernel/gk_xDtZjYUu/e2fsprogs/e2fsprogs-1.47.0/lib/ext2fs'
make[1]: *** [Makefile:458: all-libs-recursive] Error 1
make[1]: Leaving directory '/var/tmp/genkernel/gk_xDtZjYUu/e2fsprogs/e2fsprogs-1.47.0'
make: *** [Makefile:372: all] Error 2
* ERROR: Command 'nice -n10 make -j8 V=1' failed!
* ERROR: create_initramfs(): append_data(): append_e2fsprogs(): populate_binpkg(): gkbuild(): Failed to create binpkg of e2fsprogs-1.47.0!
* 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 kernel compilation failures as genkernel bugs!
*
* mount: >> Boot partition state on '/boot' was not changed; Skipping restore boot partition state ...
>>> Ended on: 2026-02-11 18:43:13 (after 0 days 0 hours 22 minutes 52 seconds)Code: Select all
# gcc --version
gcc (Gentoo 15.2.1_p20251122 p3) 15.2.1 20251122
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# eselect gcc list
[1] x86_64-pc-linux-gnu-15 *
#
I didn't have any problem compiling other kernels in the 6.18 series until this point.
I didn't install any new package recently. I'm just updating the system every other week.
I do remember glibc updates recently, but I'm not sure if it is related.
Any idea what could cause the compilation to fail for this specific kernel.




