when updating gentoo-kernel with USE=savedconfig the build fails on attempting to build drivers for hardware i do not own or have enabled in my kernel configuration at /etc/portage/savedconfig/sys-kernel/gentoo-kernel. specifically disabling the affected hardware in my config, caused yet another seemingly random device to get set as =m and fail to build. next, i copy my kernel config into the temporary build dir for the kernel and ran make oldconfig ...i was presented with numerous options for y/n/m including the affected hardware and of note, they were default =n. not sure why they were getting enabled but after running make oldconfig and copy the temporary config back to my savedconfig dir, everything did build as expected. Reproducible: Always Steps to Reproduce: 1.sync and update from gentoo-kernel 6.13.x to 6.14.x 2.observe build failure due to attempted building of un-needed module 3.find a way to run make oldconfig against your kernel config and substitute the resultant config Actual Results: build fails on seemingly random hardware modules that are not configured Expected Results: build should succeed emerge --info Portage 3.0.67 (python 3.13.2-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-14, glibc-2.40-r8, 6.13.10-x86_64 x86_64) ================================================================= System uname: Linux-6.13.10-x86_64-x86_64-Intel-R-_Core-TM-_i5-4690K_CPU_@_3.50GHz-with-glibc2.40 KiB Mem: 16329260 total, 9350240 free KiB Swap: 16777212 total, 16777212 free Timestamp of repository gentoo: Tue, 08 Apr 2025 14:20:19 +0000 Head commit of repository gentoo: 70be400266fedd55ccf255582f02c79e714d6e25 sh bash 5.2_p37 ld GNU ld (Gentoo 2.44 p1) 2.44.0 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.72-r1::gentoo dev-build/automake: 1.17-r1::gentoo dev-build/cmake: 3.31.5::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.7.0::gentoo dev-lang/perl: 5.40.0-r1::gentoo dev-lang/python: 3.12.9::gentoo, 3.13.2::gentoo dev-lang/rust-bin: 1.84.1-r2::gentoo llvm-core/clang: 19.1.7::gentoo llvm-core/lld: 19.1.7::gentoo llvm-core/llvm: 19.1.7::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/openrc: 0.56::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.44::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 14.2.1_p20241221::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r8::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False sync-git-verify-commit-signature: yes local location: /var/db/repos/local masters: gentoo volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=haswell -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mpd.conf /etc/security/limits.d/25-pw-rlimits.conf /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" CXXFLAGS="-march=haswell -O2 -pipe" DISTDIR="/var/cache/distfiles" 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 clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/etc/xdg/autostart/pipewire.desktop /etc/wireplumber/wireplumber.conf.d/gentoo-sound-server-enable-audio-bluetooth.conf" LANG="en_CA.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="en en_CA" MAKEOPTS="-j5 -l5" 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" RUSTFLAGS="-C opt-level=3" SHELL="/bin/bash" USE="64bit a52 aac ac3 acl acpi activities aiglx amd64 aoss ap-fonts archive ardour2 asf audiofile babl bitm-bonobo boost brotli bzip2 cairo caps cdda cdr cgroups clang classic cli compositor cryptsetup cuda cups daemon dav1d dbus declarative dga dhcp directfb dist-kernel dlloader dri drm dssi dts dvd dvdr dvdread egl elogind emboss enca encode escreen evdev exif exscalibar faac faad fam fdk ffmpeg ffmpegthumbnailer fftw firefox firewall firewalld flac flatpak frei0r fuse gbm gif gimp gles1 gles2 gles3 glitz glut gmic gmp gpm graphite grimshot grub gui gzip hardened harfbuzz heif hpcups http2 iconv icu imagemagick iso ivorbis jack jpeg jpeg2k jpegxl kde kf6compat ladish lcms lensfun libaom libdrm libg++ libinput libkms libmpv libnotify librtmp libsamplerate libsoxr libtirpc lm-sensors lv2 lz4 lzma mad matroska mime mng moznoxft mp3 mp4 mpd mpeg mplayer nautilus ncurses networkmanager nftables nls nptl nptlonly nsplugin ntfs ntp numpy nvenc nvidia ofx ogg oil openexr opengl openh264 openmp openssl opus pam pcre pdf pdfimport perl pipewire plasma png policykit ppds pppd qml qt6 quotes raw readline reflection rsync-verify rtc rtmp rubberband sasl savedconfig scanner seccomp secure-delete shaderc smp sna sndfile spl ssl startup-notification svg swaybar taglib tcltk test-rust theora threads thunar thunderbird tiff tracepath tray trayicon truetype truetype-fonts type1-fonts udev unicode upower usb userland_GNU uuidd v4l vaapi vala vcd vdpau vector-icons verify-sig videoeffects vidstab vorbis vpx vulkan wallpapers wavpack wayland wayland-compositor webp widgets win32codecs wma wxwidgets x264 x265 xanim xattr xcb xft xinerama xml xvid xvmc xwayland yuv4mpeg zimg zip zlib zstd" ABI_X86="64" ADA_TARGET="gcc_14" ALSA_CARDS="ice1712" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby32" SANE_BACKENDS="hp" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, 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, SIZE, STRINGS, STRIP, YACC, YFLAGS
build log in url, sorry... i had already lost it since it was able to complete the build after running make oldconfig in the temporarily build directory
Please provide your saved config for 6.13.
Created attachment 924108 [details] saved-config for 6.13.10 attached
Created attachment 924109 [details] build log with failure the build log from failed upgrade
I think this is the intended behaviour, config options not set in the savedconfig take their default from the Gentoo/Fedora config (not the upstream default). Hence whatever is not explicitly disabled, might end up being enabled.
I wouldn't expect that to lead to a build failure though, just extra modules being built (successfully).
of course the build failures are what brought it to my attention, but i would rather not have any modules built "behind my back"..i try to keep a tight .config, very few modules. can we not just assume "no" to any new drivers? if i added any hardware..i'd seek out the driver.
I think you really need to just regenerate the savedconfig on new major versions then. oldnoconfig or whatever the equivalent is these days would cause other problems. We can't read your mind in the ebuild.