Created attachment 613954 [details] genkernel log I'm using genkernel-9999 (commit ee2d1bfe83add4441909e999fff06694c6f3c433) and it fails with following messages: * initramfs: >> Initializing ... * >> Appending devices cpio data ... * >> Appending base_layout cpio data ... * >> Appending auxilary cpio data ... * >> Appending blkid cpio data ... * >> Appending busybox cpio data ... * 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.31.1! * Please consult '/var/log/genkernel.log' for more information and any * errors that were reported above. Attached full genkernel.log which contains following errors: Output of: x86_64-pc-linux-gnu-gcc -Os -pipe -fomit-frame-pointer -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 -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-builtin-printf -Os -static -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a klibc-utils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o klibc-utils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -lresolv -Wl,--end-group ========== /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: libbb/lib.a(inet_common.o): in function `INET6_resolve': inet_common.c:(.text.INET6_resolve+0x46): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: coreutils/lib.a(mktemp.o): in function `mktemp_main': mktemp.c:(.text.mktemp_main+0x94): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: networking/lib.a(ipcalc.o): in function `ipcalc_main': ipcalc.c:(.text.ipcalc_main+0x228): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: libbb/lib.a(inet_common.o): in function `INET_resolve': inet_common.c:(.text.INET_resolve+0x49): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: libbb/lib.a(xconnect.o): in function `bb_lookup_port': xconnect.c:(.text.bb_lookup_port+0x44): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: networking/lib.a(netstat.o): in function `ip_port_str': netstat.c:(.text.ip_port_str+0x50): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: util-linux/lib.a(rdate.o): in function `rdate_main': rdate.c:(.text.rdate_main+0xfd): undefined reference to `stime' /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: coreutils/lib.a(date.o): in function `date_main': date.c:(.text.date_main+0x26d): undefined reference to `stime' collect2: error: ld returned 1 exit status Note: if build needs additional libraries, put them in CONFIG_EXTRA_LDLIBS. Example: CONFIG_EXTRA_LDLIBS="pthread dl tirpc audit pam" make: *** [Makefile:718: busybox_unstripped] Error 1 I'm running genkernel with: genkernel --makeopts=-j4 --kernel-config=/usr/src/linux/desktop.config --firmware --no-microcode-initramfs --lvm --busybox all Emerging busybox outside genkernel succeeds, so I think it's genkernel bug.
> Emerging busybox outside genkernel succeeds, so I think it's genkernel bug. No, busybox in repository is already patched, see bug 708350.
(In reply to Thomas Deutschmann from comment #1) > > Emerging busybox outside genkernel succeeds, so I think it's genkernel bug. > No, busybox in repository is already patched, see bug 708350. Are you sure ? I synced portage and emerged busybox today and the latest change to busybox is from 4 days ago, if I see correctly ( https://gitweb.gentoo.org/repo/gentoo.git/log/sys-apps/busybox ) emerge --info busybox: Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.1/systemd, gcc-9.2.0, glibc-2.31, 5.6.0-rc1-x86_64+ x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.6.0-rc1-x86_64+-x86_64-Intel-R-_Core-TM-_i5-6600_CPU_@_3.30GHz-with-gentoo-2.7 KiB Mem: 32889856 total, 3247388 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sat, 15 Feb 2020 09:30:01 +0000 Head commit of repository gentoo: 96076573ffc3c9e64a31dd6258129bd5044bb9ee sh bash 5.0_p16 ld GNU ld (Gentoo 2.33.1 p2) 2.33.1 ccache version 3.7.7 [enabled] app-shells/bash: 5.0_p16::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.6::gentoo, 3.8.1::gentoo dev-util/ccache: 3.7.7::gentoo dev-util/cmake: 3.16.4::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.1-r2::gentoo sys-devel/binutils: 2.33.1-r1::gentoo, 2.34::gentoo sys-devel/gcc: 9.2.0-r3::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.5::gentoo (virtual/os-headers) sys-libs/glibc: 2.31::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://192.168.0.9/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 haskell location: /var/lib/layman/haskell masters: gentoo priority: 50 rust location: /var/lib/layman/rust masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 masters: gentoo priority: 50 local location: /usr/local/portage/local masters: gentoo priority: 80 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O3 -pipe -g -ggdb -Wvla" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O3 -pipe -g -ggdb -Wvla" DISTDIR="/usr/portage/distfiles" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="pl_PL.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="pl en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X acl adns alsa amd64 audio avx avx2 berkdb bluetooth bzip2 caps clang cli clutter crypt cups cxx dbus dri dri3 drm egl emacs ffmpeg fortran fpm fuse gadu gbm gdbm git glade gles glib gnutls gold gstreamer hardened iconv icu idn inotify ipv6 jack jpeg libdrm libtirpc llvm mmx mono mtp multilib multitarget ncurses net45 nls nptl opengl openmp openrc pam pcre perl pgf pkcs pkcs11 pkcs12 png policykit pulseaudio readline sasl seccomp socks socks4 socks5 sound split-usr sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification syslog system-sqlite systemd tcpd theora threads truetype udev unicode v4l2 vaapi valgrind vdpau video vim vpx wayland wifi x265 xattr xcb xft zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ca0132" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="pl en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX AArch64 ARM RISCV WebAssembly" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sys-apps/busybox-1.31.1-r2::gentoo was built with the following: USE="ipv6 static syslog systemd -debug -livecd -make-symlinks -math -mdev -pam -savedconfig (-selinux) -sep-usr" ABI_X86="(64)" CFLAGS="-march=native -O3 -pipe -g -ggdb -Wvla -fno-strict-aliasing" CXXFLAGS="-march=native -O3 -pipe -g -ggdb -Wvla -fno-strict-aliasing"
(In reply to Mariusz Ceier from comment #2) > (In reply to Thomas Deutschmann from comment #1) > > > Emerging busybox outside genkernel succeeds, so I think it's genkernel bug. > > No, busybox in repository is already patched, see bug 708350. > > Are you sure ? I synced portage and emerged busybox today and the latest > change to busybox is from 4 days ago, if I see correctly ( > https://gitweb.gentoo.org/repo/gentoo.git/log/sys-apps/busybox ) > I mean, I still think it's genkernel issue and not busybox. Did you mean "Yes" ? Maybe it's just a misunderstanding ;)
See the linked bug 708350: sys-apps/busybox in Gentoo repository got patched (https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7d0d98ea093bb29a81c1f9c0d27d823c61e8640). Genkernel will need to apply same patch. => This is not a problem *caused* by genkernel. Busybox just needs a patch when compiled against libc-2.31 and this patch is currently missing.
(In reply to Thomas Deutschmann from comment #4) > See the linked bug 708350: sys-apps/busybox in Gentoo repository got patched > (https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=d7d0d98ea093bb29a81c1f9c0d27d823c61e8640). Genkernel will need to apply > same patch. > > => This is not a problem *caused* by genkernel. Busybox just needs a patch > when compiled against libc-2.31 and this patch is currently missing. Oh ok. I thought genkernel was using portage versions of packages like busybox when building initramfs. TIL
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=eaaf2994e76a9e0f3df3516f960818b99807b713 commit eaaf2994e76a9e0f3df3516f960818b99807b713 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2020-02-15 20:43:33 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2020-02-15 20:43:33 +0000 busybox: fix building against libc-2.31 Closes: https://bugs.gentoo.org/709738 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> .../busybox/1.31.1/busybox-1.31.1-glibc-2.31.patch | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+)