eix r8168 [I] net-misc/r8168 Installed versions: 8.050.03(05:57:12 08/01/2023)(-dist-kernel -use-firmware) Upgrading to net-misc/r8168-8.051.02 against gentoo-sources-5.15.86 fails as: * Package: net-misc/r8168-8.051.02:0 * Repository: gentoo * Maintainer: pacho@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.15.86-gentoo-r8168 * Checking for suitable kernel configuration options ... [ ok ] >>> Unpacking source... >>> Unpacking r8168-8.051.02.tar.bz2 to /var/tmp/portage/net-misc/r8168-8.051.02/work >>> Source unpacked in /var/tmp/portage/net-misc/r8168-8.051.02/work >>> Preparing source in /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02 ... * Applying r8168-8.051.02-6.1-fix.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02 ... * Preparing r8168 module make -j3 -l3 HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' KERNELDIR=/usr/src/linux ENABLE_USE_FIRMWARE_FILE=n modules make -C /usr/src/linux M=/var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src modules make[1]: Entering directory '/usr/src/linux-5.15.86-gentoo' warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121 You are using: x86_64-pc-linux-gnu-gcc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121 CC [M] /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/r8168_asf.o CC [M] /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/r8168_n.o CC [M] /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/rtl_eeprom.o CC [M] /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/rtltool.o LD [M] /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/r8168.o MODPOST /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/Module.symvers ERROR: modpost: "pci_disable_msix" [/var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/r8168.ko] undefined! ERROR: modpost: "pci_enable_msix_range" [/var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/r8168.ko] undefined! make[2]: *** [scripts/Makefile.modpost:133: /var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/Module.symvers] Error 1 make[2]: *** Deleting file '/var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src/Module.symvers' make[1]: *** [Makefile:1817: modules] Error 2 make[1]: Leaving directory '/usr/src/linux-5.15.86-gentoo' make: *** [Makefile:154: modules] Error 2 * ERROR: net-misc/r8168-8.051.02::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/r8168-8.051.02::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/r8168-8.051.02::gentoo'`. * The complete build log is located at '/var/log/portage/net-misc:r8168-8.051.02:20230125-105957.log.gz'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-misc/r8168-8.051.02/temp/build.log.gz'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/r8168-8.051.02/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02/src' * S: '/var/tmp/portage/net-misc/r8168-8.051.02/work/r8168-8.051.02' May be missing something, can't figure out what...
Issue from unupdated CONFIG_UNUSED_KSYMS_WHITELIST pointed resource. My apologizes for the noise.