Compilation of the module fails: >> Emerging (3 of 3) sys-power/bbswitch-0.8::gentoo * bbswitch-0.8.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 4.0.5-gentoo >>> Unpacking source... >>> Unpacking bbswitch-0.8.tar.gz to /var/tmp/portage/sys-power/bbswitch-0.8/work >>> Source unpacked in /var/tmp/portage/sys-power/bbswitch-0.8/work >>> Preparing source in /var/tmp/portage/sys-power/bbswitch-0.8/work/bbswitch-0.8 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/sys-power/bbswitch-0.8/work/bbswitch-0.8 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sys-power/bbswitch-0.8/work/bbswitch-0.8 ... ln: failed to create symbolic link ‘Module.symvers’: File exists * Preparing bbswitch module make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KVERSION=4.0.5-gentoo default make -C /lib/modules/4.0.5-gentoo/build M="$(pwd)" modules make[1]: *** /lib/modules/4.0.5-gentoo/build: No such file or directory. Stop. Makefile:13: recipe for target 'default' failed make: *** [default] Error 2 * ERROR: sys-power/bbswitch-0.8::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-power/bbswitch-0.8::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-power/bbswitch-0.8::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-power/bbswitch-0.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-power/bbswitch-0.8/temp/environment'. * Working directory: '/var/tmp/portage/sys-power/bbswitch-0.8/work/bbswitch-0.8' * S: '/var/tmp/portage/sys-power/bbswitch-0.8/work/bbswitch-0.8' Reproducible: Always
Did you build/install the kernel modules for that version? It can't seem to find the kernel build directory. Did you remove it?
Umpf. You are correct. I evidently botched make modules_install in my sequence of commands. Twice. Resolve invalid pls.