Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel: ERROR: create_initramfs(): append_data(): append_
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
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Fri Apr 05, 2024 6:21 pm    Post subject: Genkernel: ERROR: create_initramfs(): append_data(): append_ Reply with quote

Hello my gentoofriends.

Code:
emerge --info


https://bpa.st/6BWQ

I am building a kernel with Genkernel:

Code:

# genkernel --makeopts=-j4 --install --save-config --menuconfig all --kernel-append-localversion=-$(date +%Y%m%d)


This has always worked well so far.

Now there is an error.

Code:

[...]
   x86_64-pc-linux-gnu-gcc -Wp,-MD,libbb/.xrealloc_vector.o.d   -I/var/tmp/genkernel/gk_aVXFu5g3/busybox/buildroot/usr/include -std=gnu99 -Iinclude -Ilibbb  -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DBB_VER='"1.36.1"' -Os -pipe -fomit-frame-pointer -I/var/tmp/genkernel/gk_aVXFu5g3/busybox/buildroot/usr/include -malign-data=abi -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -finline-limit=0 -fno-builtin-strlen -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -Oz    -DKBUILD_BASENAME='"xrealloc_vector"'  -DKBUILD_MODNAME='"xrealloc_vector"' -c -o libbb/xrealloc_vector.o libbb/xrealloc_vector.c
  x86_64-pc-linux-gnu-gcc -Wp,-MD,libbb/.xregcomp.o.d   -I/var/tmp/genkernel/gk_aVXFu5g3/busybox/buildroot/usr/include -std=gnu99 -Iinclude -Ilibbb  -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DBB_VER='"1.36.1"' -Os -pipe -fomit-frame-pointer -I/var/tmp/genkernel/gk_aVXFu5g3/busybox/buildroot/usr/include -malign-data=abi -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -finline-limit=0 -fno-builtin-strlen -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -Oz    -DKBUILD_BASENAME='"xregcomp"'  -DKBUILD_MODNAME='"xregcomp"' -c -o libbb/xregcomp.o libbb/xregcomp.c
  rm -f libbb/lib.a; x86_64-pc-linux-gnu-ar  rcs libbb/lib.a libbb/appletlib.o libbb/ask_confirmation.o libbb/auto_string.o libbb/bb_askpass.o libbb/bb_bswap_64.o libbb/bb_cat.o libbb/bb_do_delay.o libbb/bb_getgroups.o libbb/bb_getsockname.o libbb/bb_pwd.o libbb/bb_qsort.o libbb/bb_strtonum.o libbb/capability.o libbb/change_identity.o libbb/chomp.o libbb/common_bufsiz.o libbb/compare_string_array.o libbb/concat_path_file.o libbb/concat_subpath_file.o libbb/const_hack.o libbb/copy_file.o libbb/copyfd.o libbb/correct_password.o libbb/crc32.o libbb/default_error_retval.o libbb/device_open.o libbb/dump.o libbb/duration.o libbb/endofname.o libbb/executable.o libbb/fclose_nonstdin.o libbb/fflush_stdout_and_exit.o libbb/fgets_str.o libbb/find_mount_point.o libbb/find_pid_by_name.o libbb/find_root_device.o libbb/full_write.o libbb/get_console.o libbb/get_cpu_count.o libbb/get_last_path_component.o libbb/get_line_from_file.o libbb/get_shell_name.o libbb/get_volsize.o libbb/getopt32.o libbb/getopt_allopts.o libbb/getpty.o libbb/hash_md5_sha.o libbb/hash_md5_sha256_x86-32_shaNI.o libbb/hash_md5_sha256_x86-64_shaNI.o libbb/hash_md5_sha_x86-32_shaNI.o libbb/hash_md5_sha_x86-64.o libbb/hash_md5_sha_x86-64_shaNI.o libbb/herror_msg.o libbb/human_readable.o libbb/in_ether.o libbb/inet_cksum.o libbb/inet_common.o libbb/inode_hash.o libbb/isdirectory.o libbb/isqrt.o libbb/iterate_on_dir.o libbb/kernel_version.o libbb/last_char_is.o libbb/lineedit.o libbb/lineedit_ptr_hack.o libbb/llist.o libbb/logenv.o libbb/login.o libbb/loop.o libbb/make_directory.o libbb/makedev.o libbb/match_fstype.o libbb/messages.o libbb/missing_syscalls.o libbb/mode_string.o libbb/mtab.o libbb/nuke_str.o libbb/obscure.o libbb/parse_config.o libbb/parse_mode.o libbb/percent_decode.o libbb/perror_msg.o libbb/perror_nomsg.o libbb/perror_nomsg_and_die.o libbb/pidfile.o libbb/platform.o libbb/print_flags.o libbb/print_numbered_lines.o libbb/printable.o libbb/printable_string.o libbb/process_escape_sequence.o libbb/procps.o libbb/progress.o libbb/ptr_to_globals.o libbb/pw_encrypt.o libbb/read.o libbb/read_key.o libbb/read_printf.o libbb/recursive_action.o libbb/remove_file.o libbb/replace.o libbb/rtc.o libbb/run_shell.o libbb/safe_gethostname.o libbb/safe_poll.o libbb/safe_strncpy.o libbb/safe_write.o libbb/securetty.o libbb/setup_environment.o libbb/signals.o libbb/simplify_path.o libbb/single_argv.o libbb/skip_whitespace.o libbb/speed_table.o libbb/str_tolower.o libbb/strrstr.o libbb/sysconf.o libbb/time.o libbb/trim.o libbb/u_signal_names.o libbb/ubi.o libbb/udp_io.o libbb/unicode.o libbb/update_passwd.o libbb/utmp.o libbb/uuencode.o libbb/verror_msg.o libbb/vfork_daemon_rexec.o libbb/warn_ignoring_args.o libbb/wfopen.o libbb/wfopen_input.o libbb/write.o libbb/xatonum.o libbb/xconnect.o libbb/xfunc_die.o libbb/xfuncs.o libbb/xfuncs_printf.o libbb/xgetcwd.o libbb/xgethostbyname.o libbb/xreadlink.o libbb/xrealloc_vector.o libbb/xregcomp.o
* ERROR: Command 'nice -n10 make -j4 V=1' failed!

* ERROR: create_initramfs(): append_data(): append_busybox(): populate_binpkg(): gkbuild(): Failed to create binpkg of busybox-1.36.1!
* 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!
*



I have checked if busybox is installed, but it is not. So I wanted to install it

Busybox build log:

https://pastebin.com/mBn4wQLx

What to do now?


Best regards
Not Hans
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1663

PostPosted: Fri Apr 05, 2024 6:43 pm    Post subject: Reply with quote

The error:
Code:
  x86_64-pc-linux-gnu-gcc -Wp,-MD,networking/.tc.o.d  -std=gnu99 -Iinclude -Ilibbb  -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DBB_VER='"1.36.1"' -march=native -O2 -pipe -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -finline-limit=0 -fno-builtin-strlen -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf    -DKBUILD_BASENAME='"tc"'  -DKBUILD_MODNAME='"tc"' -c -o networking/tc.o networking/tc.c
networking/tc.c:  In function ‘cbq_print_opt’:
networking/tc.c:236:27: error: ‘TCA_CBQ_MAX’ undeclared (first use in this function); did you mean ‘TCA_CBS_MAX’?


This is Bug 926872 (busybox) and Bug 928573 (genkernel)
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Fri Apr 05, 2024 6:52 pm    Post subject: Reply with quote

Thanks.

I had already found this and didn't recognize it. :(

unfortunately packages.gentoo.org is not working for me today.

Is "sys-apps/busybox/busybox-1.36.1-r2" still in ~amd64?
Back to top
View user's profile Send private message
NichtDerHans
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2023
Posts: 131

PostPosted: Sat Apr 06, 2024 6:32 am    Post subject: Reply with quote

I have just downgraded to linux-headers-6.6 now genkernel, initramfs... runs fine. :)
Back to top
View user's profile Send private message
zint
n00b
n00b


Joined: 13 Apr 2024
Posts: 1

PostPosted: Sat Apr 13, 2024 1:58 am    Post subject: Reply with quote

Here is a commit about the bug:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8ad860a1ed9aa92adaa7dcf1c3fc78d0e2f80ce

author Viorel Munteanu <ceamac@gentoo.org> 2024-03-29 17:45:20 +0200
committer Viorel Munteanu <ceamac@gentoo.org> 2024-03-29 17:47:49 +0200
commit d8ad860a1ed9aa92adaa7dcf1c3fc78d0e2f80ce (patch)
tree 8df068b8c7d5a9c8bca3801060583385bba82c75
parent sys-apps/lshw: really bump to 02.20.2b (diff)
download gentoo-d8ad860a1ed9aa92adaa7dcf1c3fc78d0e2f80ce.tar.gz
gentoo-d8ad860a1ed9aa92adaa7dcf1c3fc78d0e2f80ce.tar.bz2
gentoo-d8ad860a1ed9aa92adaa7dcf1c3fc78d0e2f80ce.zip
sys-apps/busybox: fix building with kernel headers 6.8
Apply a patch from the mailing list.

Closes: https://bugs.gentoo.org/926872
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat
-rw-r--r-- sys-apps/busybox/busybox-1.36.1-r2.ebuild 377
-rw-r--r-- sys-apps/busybox/files/busybox-1.36.1-kernel-6.8.patch 53
2 files changed, 430 insertions, 0 deletions

I download the patch `busybox-1.36.1-kernel-6.8.patch` and put it in `/usr/share/genkernel/patches/busybox/1.36.1`.
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