> * Preparing sum_bios module > make --jobs 9 --load-average 7.95 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' default > make -C /lib/modules/4.9.188-gentoo-x86_64/build M=/var/tmp/portage/sys-apps/smc-sum-driver-1.6.0.20151201-r2/work/sum_driver_V1.6.0/Linux modules > make[1]: Entering directory '/usr/src/linux-4.9.188-gentoo' > > ERROR: Kernel configuration is invalid. > include/generated/autoconf.h or include/config/auto.conf are missing. > Run 'make oldconfig && make prepare' on kernel src to fix it. > > WARNING: Symbol version dump ./Module.symvers > is missing; modules will have no dependencies and modversions. > CC [M] /var/tmp/portage/sys-apps/smc-sum-driver-1.6.0.20151201-r2/work/sum_driver_V1.6.0/Linux/sum_bios.o > In file included from <command-line>: > ././include/linux/kconfig.h:4:10: fatal error: generated/autoconf.h: No such file or directory > 4 | #include <generated/autoconf.h> > | ^~~~~~~~~~~~~~~~~~~~~~ > compilation terminated. > The package is determining kernel version used to determine kernel build dir using "uname". To reproduce the problem: 1) Install, compile and boot sys-kernel/gentoo-sources:4.19.68. 2) Now install different kernel sources, let's say sys-kernel/gentoo-sources:4.19.69. When you now switch sources (eselect kernel...) package will still use sources from gentoo-sources:4.19.68 which is the current running kernel.)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e918cf72c007c47bf37e222448aad3514891aecd commit e918cf72c007c47bf37e222448aad3514891aecd Author: Conrad Kostecki <conrad@kostecki.com> AuthorDate: 2019-09-06 21:20:45 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2019-09-08 20:38:48 +0000 sys-apps/smc-sum-driver: use correct kernel for compilation Pass correct options for compiling against the correct kernel version. Closes: https://bugs.gentoo.org/693528 Package-Manager: Portage-2.3.72, Repoman-2.3.17 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> .../smc-sum-driver-1.6.0.20151201-r3.ebuild | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+)