When I try to use genkernel to create an initramfs, it fails with the following error while building busybox. When I emerge busybox directly I get no failure: * gcc -Wp,-MD,util-linux/volume_id/.ntfs.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 -D"BB_VER=KBUILD_STR(1.27.2)" -DBB_BT=AUTOCONF_TIMESTAMP -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 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ntfs)" -D"KBUILD_MODNAME=KBUILD_STR(ntfs)" -c -o util-linux/volume_id/ntfs.o util-linux/volume_id/ntfs.c *util-linux/mount.c:252:22: fatal error: rpc/rpc.h: No such file or directory * # include <rpc/rpc.h> * ^ *compilation terminated. *make[1]: *** [scripts/Makefile.build:197: util-linux/mount.o] Error 1 Reproducible: Always Steps to Reproduce: 1. genkernel initramfs 2. genkernel attempts to build busybox 3. Actual Results: busybox build fails with above error. Expected Results: genkernel should successfully build initramfs When I directly emerge busybox, it is successful.
Portage 2.3.13 (python 3.4.6-final-0, default/linux/amd64/13.0/desktop, gcc-6.4.0, glibc-2.26-r3, 4.13.10-gentoo x86_64) ================================================================= System uname: Linux-4.13.10-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.4.1 KiB Mem: 2045564 total, 439308 free KiB Swap: 8388604 total, 8365812 free Timestamp of repository gentoo: Mon, 13 Nov 2017 05:15:01 +0000 Head commit of repository gentoo: 14c8a6443df857b1159aedb05d01106ade03ecd9 sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p2) 2.29.1 app-shells/bash: 4.4_p12::gentoo dev-lang/perl: 5.26.1-r1::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.4.6-r1::gentoo dev-util/cmake: 3.9.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/openrc: 0.34.6::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.4.0-r3::gentoo, 6.4.0::gentoo sys-devel/gcc-config: 1.9.0::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://zbox/gentoo-portage priority: -1000 sync-rsync-extra-opts: x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS=" --quiet-build=n --with-bdeps=y --autounmask=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3 -l4" 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 a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr egl emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl seccomp session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 504240 [details] genkernel log The genkernel log containing the error.
Since rpc.h seems to be a part of glibc and glibc-2.26 seems to no longer ship that file, please add something with "(since glibc-2.26?)" to the bug's title. Would have helped me to find this bug faster ;) This build failure stops me from upgrading my kernel :-/
Oh, and downgrading glibc is not possible, so no workaround for now ...
(In reply to jannis from comment #3) > Since rpc.h seems to be a part of glibc and glibc-2.26 seems to no longer > ship that file, please add something with "(since glibc-2.26?)" to the bug's > title. Would have helped me to find this bug faster ;) > This build failure stops me from upgrading my kernel :-/ I added the comment about glibc-2.26 to the title, since that does appear to be the case.
I answered this on IRC yesterday. It's a busybox bug, not a genkernel bug. As a workaround, explicitly disable NFS in your genkernel config.
(In reply to Robin Johnson from comment #6) > I answered this on IRC yesterday. It's a busybox bug, not a genkernel bug. > > As a workaround, explicitly disable NFS in your genkernel config. That worked. Thank you.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e2b9b516f9f5c9b31a6b9309e85a82036900c66d commit e2b9b516f9f5c9b31a6b9309e85a82036900c66d Author: Robin H. Johnson <robbat2@gentoo.org> AuthorDate: 2017-11-15 03:15:00 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2017-11-15 03:15:00 +0000 gen_compile: avoid busybox CONFIG_FEATURE_MOUNT_NFS due to libtirpc With glibc switching to rpc via libtirpc, we cannot be sure that the user has libtirpc. Additionally, it looks like it might be be required since the 2.6.36 kernel so let's just disable it for now. Bug: https://bugs.gentoo.org/637446 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> gen_compile.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)}
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba0de310141c3f0863688e7eae78bc8f591efce8 commit ba0de310141c3f0863688e7eae78bc8f591efce8 Author: Robin H. Johnson <robbat2@gentoo.org> AuthorDate: 2017-11-16 23:41:11 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2017-11-16 23:44:12 +0000 sys-kernel/genkernel: bump. Fixes: https://bugs.gentoo.org/637698 Fixes: https://bugs.gentoo.org/637446 Package-Manager: Portage-2.3.8, Repoman-2.3.3 sys-kernel/genkernel/Manifest | 1 + sys-kernel/genkernel/genkernel-3.5.2.4.ebuild | 165 ++++++++++++++++++++++++++ 2 files changed, 166 insertions(+)