sys-kernel/gentoo-kernel does not have direct or indirect depenency on dev-lang/perl. But it can run some perl scripts while building. If perl is not yet installed in the system, emerge gentoo-kernel will not install it before building of the gentoo-kernel package and it could fail. Reproducible: Always Steps to Reproduce: Example of emerge on system not having perl installed yet and emerge not installing it while emerging gentoo-kernel: 163dea883cd6 / # which perl which: no perl in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin) 163dea883cd6 / # emerge -vpk gentoo-kernel !!! /etc/portage/binrepos.conf is missing (or PORTAGE_BINHOST is unset), but use is requested. !!! /etc/portage/binrepos.conf is missing (or PORTAGE_BINHOST is unset), but use is requested. These are the packages that would be merged, in order: Calculating dependencies... done! Dependency resolution took 0.80 s (backtrack: 0/20). [binary N ] sys-devel/m4-1.4.19-r2-1::gentoo USE="-examples -nls -verify-sig" 0 KiB [binary N ] dev-libs/libxml2-2.12.5-1:2::gentoo USE="ftp python readline -debug -examples -icu -lzma -static-libs -test" PY THON_TARGETS="python3_11 -python3_10 -python3_12" 0 KiB [binary N ] dev-util/pkgconf-2.1.1-1:0/4::gentoo USE="(native-symlinks) -test" 0 KiB [binary N ] dev-libs/elfutils-0.190-1::gentoo USE="bzip2 utils -debuginfod -lzma -nls -static-libs -test -verify-sig -zstd" 0 KiB [binary N ] sys-devel/gettext-0.22.4-1::gentoo USE="acl cxx ncurses openmp (xattr) -doc -emacs -git -java -nls -static-libs -verify-sig" 0 KiB [binary N ] virtual/pkgconfig-3-1::gentoo USE="(native-symlinks)" 0 KiB [binary N ] virtual/libelf-3-r1-1:0/1::gentoo 0 KiB [binary N ] sys-devel/bison-3.8.2-r2-1::gentoo USE="-examples -nls -static -test -verify-sig" 0 KiB [binary N ] app-alternatives/yacc-1-r2-1::gentoo USE="bison -byacc -reference" 0 KiB [binary N ] sys-devel/flex-2.6.4-r6-1::gentoo USE="-nls -static -test" 0 KiB [binary N ] app-alternatives/lex-0-r1-1::gentoo USE="flex -reflex" 0 KiB [binary N ] sys-devel/bc-1.07.1-r6-1::gentoo USE="readline -libedit -static" 0 KiB [binary N ] app-alternatives/bc-0-1::gentoo USE="gnu -gh" 0 KiB [binary N ] app-arch/cpio-2.15-1::gentoo USE="-nls" 0 KiB [binary N ] app-alternatives/cpio-0-1::gentoo USE="gnu (split-usr) -libarchive" 0 KiB [binary N ] sys-kernel/dracut-060_pre20240104-r4-1::gentoo USE="(-selinux) (-test)" 0 KiB [binary N ] sys-kernel/installkernel-28-1::gentoo USE="dracut -grub -refind -systemd -systemd-boot -uki -ukify" 0 KiB [ebuild N ~] sys-kernel/gentoo-kernel-6.8.7:6.8.7::gentoo USE="hardened initramfs savedconfig strip -debug -generic-uki -mod ules-compress -modules-sign -secureboot -test" 0 KiB [ebuild N ~] virtual/dist-kernel-6.8.7:0/6.8.7::gentoo 0 KiB Total: 19 packages (19 new, 17 binaries), Size of downloads: 0 KiB Actual Results: Example of gentoo-kernel build failure: # PERLASM arch/x86/crypto/poly1305-x86_64-cryptogams.S perl /var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/linux-6.8/arch/x86/crypto/poly1305-x86_64-cryptogams.pl > arch/x86/crypto/poly1305-x86_64-cryptogams.S /bin/sh: line 1: perl: command not found make[5]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/linux-6.8/arch/x86/crypto/Makefile:115: arch/x86/crypto/poly1305-x86_64-cryptogams.S] Error 127 make[5]: *** Deleting file 'arch/x86/crypto/poly1305-x86_64-cryptogams.S' make[4]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/linux-6.8/scripts/Makefile.build:481: arch/x86/crypto] Error 2 make[3]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/linux-6.8/scripts/Makefile.build:481: arch/x86] Error 2 make[3]: *** Waiting for unfinished jobs.... ... make[3]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/linux-6.8/scripts/Makefile.build:481: kernel] Error 2 make[2]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/linux-6.8/Makefile:1921: .] Error 2 make[1]: *** [/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/linux-6.8/Makefile:240: __sub-make] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/build' make: *** [Makefile:240: __sub-make] Error 2 ERROR: sys-kernel/gentoo-kernel-6.8.7::gentoo failed (compile phase): emake failed If you need support, post the output of `emerge --info '=sys-kernel/gentoo-kernel-6.8.7::gentoo'`, the complete build log and the output of `emerge -pqv '=sys-kernel/gentoo-kernel-6.8.7::gentoo'`. The complete build log is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/temp/build.log'. The ebuild environment file is located at '/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/temp/environment'. Working directory: '/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/linux-6.8' S: '/var/tmp/portage/sys-kernel/gentoo-kernel-6.8.7/work/linux-6.8' 163dea883cd6 / # emerge --info Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-13, glibc-2.38-r12, 6.1.38 x86_64) ================================================================= System uname: Linux-6.1.38-x86_64-Intel-R-_Xeon-R-_CPU_E3-1246_v3_@_3.50GHz-with-glibc2.38 KiB Mem: 32742812 total, 5838488 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sun, 21 Apr 2024 00:45:00 +0000 Head commit of repository gentoo: 4ff104d2e627e119ef6d457ae6211b5f0b4671a8 sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.41 p5) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-build/make: 4.4.1-r1::gentoo dev-lang/python: 3.11.8_p1::gentoo sys-apps/baselayout: 2.14-r2::gentoo sys-apps/openrc: 0.54::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.41-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/gcc: 13.2.1_p20240210::gentoo sys-devel/gcc-config: 2.11::gentoo sys-kernel/linux-headers: 6.8-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r12::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-max-age: 3 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes build location: /opt/portage.overlay masters: gentoo volatile: True ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="-j4" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="https://ftp.fi.muni.cz/pub/linux/gentoo/" LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/var/cache/binpkgs" 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="acl amd64 bzip2 caps cet cli crypt dri fortran gdbm hardened iconv ipv6 libtirpc ncurses openmp pam pcre pic pie readline seccomp split-usr ssl ssp test-rust unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Please can you post a full build.log and the output of emerge --info
Created attachment 891309 [details] build log
"emerge --info" is there in the original message. Is there reason for the full kernel build log? I provided a part where it clearly failed while trying to use perl. But anyway, attached the log too.