Since `libcrypt` got moved out of `glibc` to `libxcrypt`, running `genkernel` for me failed to build the initramfs: * >> Appending dropbear cpio data ... * ERROR: Command 'nice -n10 make -j42 -l40 V=1 MULTI=1 PROGRAMS='dbclient dropbear dropbearkey dropbearconvert scp'' failed! * ERROR: create_initramfs(): append_data(): append_dropbear(): populate_binpkg(): gkbuild(): Failed to create binpkg of dropbear-2020.81! * Please consult '/var/log/genkernel.log' for more information and any * errors that were reported above. Digging into the log, the link stage for dropbear failed to find `-lcrypt`: make[1]: Leaving directory '/var/tmp/genkernel/gk_v1LI4Euu/dropbear/dropbear-2020.81/libtomcrypt' x86_64-pc-linux-gnu-gcc -L/var/tmp/genkernel/gk_v1LI4Euu/dropbear/buildroot/usr/lib -L/var/tmp/genkernel/gk_v1LI4Euu/dropbear/buildroot/usr/lib -static -o dropbearmulti dbmulti.o atomicio.o bignum.o buffer.o chachapoly.o circbuffer.o cli-agentfwd.o cli-auth.o cli-authinteract.o cli-authpasswd.o cli-authpubkey.o cli-channel.o cli-chansession.o cli-kex.o cli-main.o cli-runopts.o cli-session.o cli-tcpfwd.o common-algo.o common-channel.o common-chansession.o common-kex.o common-runopts.o common-session.o compat.o crypto_desc.o curve25519.o dbhelpers.o dbmalloc.o dbrandom.o dbutil.o dh_groups.o dropbearconvert.o dropbearkey.o dss.o ecc.o ecdsa.o ed25519.o fake-rfc2553.o gcm.o gendss.o gened25519.o genrsa.o gensignkey.o keyimport.o list.o listener.o loginrec.o ltc_prng.o netio.o packet.o process-packet.o progressmeter.o queue.o rsa.o scp.o scpmisc.o signkey.o sshpty.o svr-agentfwd.o svr-auth.o svr-authpam.o svr-authpasswd.o svr-authpubkey.o svr-authpubkeyoptions.o svr-chansession.o svr-kex.o svr-main.o svr-runopts.o svr-service.o svr-session.o svr-tcpfwd.o svr-x11fwd.o tcp-accept.o termcodes.o libtomcrypt/libtomcrypt.a libtommath/libtommath.a -lutil -lz -lcrypt /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lcrypt /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: svr-auth.o: in function `recv_msg_userauth_request': svr-auth.c:(.text+0x48a): warning: Using 'getgrouplist' in statically linked app lications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: svr-chansession.o: in function `execchild': svr-chansession.c:(.text+0x6de): warning: Using 'initgroups' in statically linke d applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: sshpty.o: in function `pty_setowner': sshpty.c:(.text+0x2e7): warning: Using 'getgrnam' in statically linked applicati ons requires at runtime the shared libraries from the glibc version used for linking /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: common-session.o: in function `fill_passwd': common-session.c:(.text+0x9b3): warning: Using 'getpwnam' 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/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cli-kex.o: in function `recv_msg_kexdh_reply': cli-kex.c:(.text+0x2ce): warning: Using 'getpwuid' 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/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netio.o: in function `connect_remote': netio.c:(.text+0x135): 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/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: common-session.o: in function `fill_passwd': common-session.c:(.text+0xa0c): warning: Using 'getspnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking collect2: error: ld returned 1 exit status make: *** [Makefile:222: dropbearmulti] Error 1 * ERROR: Command 'nice -n10 make -j42 -l40 V=1 MULTI=1 PROGRAMS='dbclient dropbear dropbearkey dropbearconvert scp'' failed! I rebuilt `dev-libs/libxcrypt` enabling the `static-libs` USE flag, then reran `genkernel` and it worked. Reporting the bug since it seems to indicate that genkernel should have `dev-libs/libxcrypt[static-libs]` as a dependency.
This was addressed in https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=e43878aa62e563fcefa7c1da5c44017816ac65b4. Please re-open if you are still experiencing any issues with genkernel-4.2.6-r1.