Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 552668

Summary: sys-power/bbswitch-0.8 /lib/modules/4.0.5-gentoo/build No such file or directory
Product: Gentoo Linux Reporter: Stefano <raistlin>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefano 2015-06-20 19:04:25 UTC
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
Comment 1 Mike Gilbert gentoo-dev 2015-06-20 23:07:01 UTC
Did you build/install the kernel modules for that version?

It can't seem to find the kernel build directory. Did you remove it?
Comment 2 Stefano 2015-06-21 19:24:49 UTC
Umpf. You are correct. I evidently botched make modules_install in my sequence of commands. Twice. Resolve invalid pls.