Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790734 - Can't build kernel because of compile_external_modules()
Summary: Can't build kernel because of compile_external_modules()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-18 05:24 UTC by Daniel Persson
Modified: 2021-05-18 10:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Genkernel log file (genkernel.log,570.11 KB, text/plain)
2021-05-18 05:24 UTC, Daniel Persson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Persson 2021-05-18 05:24:10 UTC
Created attachment 709506 [details]
Genkernel log file

Hi. 

Long time user, first time bug submitter. Thanks for a great system.

I run genkernel to build the new kernel 5.12.2 and gets blocked with rebuilding the old kernel that seems to be missing in the system.


Command:
--------------------------------
genkernel --kernel-config=/usr/src/linux-5.11.11-gentoo/.config --bootloader=grub2 --install all
--------------------------------

Output:
--------------------------------
* kernel: >> Initializing ...
*         >> Previous config backed up to .config--2021-05-18--05-51-22.bak
*         >> Running 'make mrproper' ...
*         >> Running 'make oldconfig' ...
*         >> Compiling 5.12.2-gentoo-x86_64 bzImage ...
*         >> Compiling 5.12.2-gentoo-x86_64 modules ...
*         >> Installing 5.12.2-gentoo-x86_64 modules (and stripping) ...
*         >> Generating module dependency data ...
*         >> Compiling out-of-tree module(s) ...

emerge: there are no ebuilds to satisfy "sys-kernel/gentoo-kernel:5.11.11".
(dependency required by "@module-rebuild" [argument])
* ERROR: compile_external_modules() failed to compile out-of-tree-modules!
* 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!
* 
---------------------------------------


emerge --info sys-kernel/gentoo-kernel:5.11.11 output:
---------------------------------------
Portage 3.0.18 (python 3.8.10-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.2.0, glibc-2.33, 5.11.11-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.11.11-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-7500U_CPU_@_2.70GHz-with-glibc2.2.5
KiB Mem:    16253528 total,   4358368 free
KiB Swap:   15859708 total,   7513960 free
Timestamp of repository gentoo: Tue, 18 May 2021 03:30:01 +0000
Head commit of repository gentoo: aa503bca6d18623dd3a5c15170df76feefa9be39
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.7.10_p1::gentoo, 3.8.10_p1::gentoo, 3.9.5_p1::gentoo
dev-lang/rust:            1.52.1::gentoo
dev-util/cmake:           3.20.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r2::gentoo
sys-apps/openrc:          0.43.3::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo, 2.36.1-r1::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo, 11.1.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

gentoo
    location: /home/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/home/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.c3sl.ufpr.br/ rsync://gentoo.c3sl.ufpr.br/gentoo/ ftp://gentoo.c3sl.ufpr.br/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/home/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="/home/portage/tmp"
USE="3des 64bit X aacplus accessibility account acl aes aio alsa alsa-plugin amd64 android ant apache apache2 apng archive async asyncns auth avcodec avformat bash-completion bcmath berkdb big-tables binary-drivers bittorrent blowfish bluetooth boost bullet bzip2 cairo cal3d caps capstone cg cgi cgroups checksum chrome chromium clang cli client cmake compat container crypt cups curl cycles dbus dds derby device-mapper dhcpcd dhcpd dist-kernel dri dri3 driver eclipse egl elbeem elogind equalizer evdev extra-webapps extras fdt ffmpeg flash fontconfig fortran fortran2003 fortune fpm ftp g3dvl game-engine gd gdbm gentoo-vm glamor gles gles2 glib glusterfs gmail gnome gnome-keyring gnutls gold google googledrive groovy gstreamer gtalk gtk gui gzip handbook iconv icu imagemagick ipv6 irc jack java javafx jce jpeg jpeg2k json kde kms lapack less libglvnd libkms libsamplerate libtirpc libv4l libwww libxml2 log4j logrotate lvm lzma lzo madwifi man manpages md5 md5sum minizip mouse mousewheel mozilla mplayer mysql mysqli ncurses network nfs nls nptl objc objc++ objc-gc object ogg openal openexr opengl openmp opennl openpgp openssl opus orc oss pam pci pcre pcre16 pcre32 pdo pgp php player pm-utils png policykit postgres postproc proxy pulseaudio pypy python qt5 readline redcode sdk seccomp secure-delete server sha512 shadow skype sna snappy soap sockets sodium sox speex spice split-usr sqlite sqlite3 ssh ssl static-libs superserver svc systemtap tci tcpd tests text tiff tinfo tk tools tor tor-hardening tordns truetype twitter udev unicode uvm uxa v4l vde vhost-net vhosts vim vim-syntax virtualbox vnc vorbis vpx vte warmstarts wav web webm webp widgets wifi wma wma-fixed wxwidgets xattr xfs xkb xmlwriter xorg xslt xterm youtube zip zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2 mmxext" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="dav auth_pam fancyindex geoip fastcgi uwsgi gzip rewrite addition" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

sys-kernel/gentoo-kernel-5.11.11::gentoo was built with the following:
USE="initramfs -debug -savedconfig -test"
FEATURES="ebuild-locks binpkg-logs protect-owned userpriv sfperms unmerge-logs binpkg-dostrip userfetch binpkg-docompress unknown-features-warn merge-sync multilib-strict news distlocks assume-digests usersandbox ipc-sandbox qa-unresolved-soname-deps unmerge-orphans network-sandbox fixlafiles xattr strict pid-sandbox sandbox parallel-fetch preserve-libs usersync config-protect-if-modified"
--------------------------------------------------

Thank you in advance for looking into this issue.

Best regards
Daniel
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-18 05:34:31 UTC
1) Could you try doing a full world update and dep cleaning first?

emerge —-sync ; emerge -a -uvDU @world ; emerge -ac

2) Normally, genkernel isn’t used with gentoo-kernel (which auto builds for you) but instead gentoo-sources. You seem to have the former installed though. It’s ok to have them both installed but generally you only need to use one.
Comment 2 Daniel Persson 2021-05-18 10:58:07 UTC
Hi Sam

Thank you for the quick answer. I've never added gentoo-kernel to my world list and it was not in the file /var/lib/portage/world so I never thought it could be an issue.

I unmerged that package and the build went through. I'm in the process of upgrading/rebuilding all packages but this was blocking my progress in order to build with the right kernel headers. 

Best regards
Daniel