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

Bug 486698

Summary: app-emulation/virtualbox-modules.4.2.18 ERROR: Kernel configuration is invalid.
Product: Gentoo Linux Reporter: andros
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bkohler
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
make.conf
emerge --info

Description andros 2013-10-01 19:03:42 UTC
I have recently updated my Kernel to unstable gentoo-sources
I seem to be that since than I couldn't install virtualbox, it crashes with:

"  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.
"
I have tried to fix this as suggested, but both files are in are there anyways.



Reproducible: Always

Steps to Reproduce:
1. Install gentoo kernel 3.11
2. try to emerge virtualbox modules

Actual Results:  
Stops on build process.

Expected Results:  
Build the modules
Comment 1 andros 2013-10-01 19:08:22 UTC
Created attachment 359928 [details]
Build log
Comment 2 andros 2013-10-01 19:11:09 UTC
Created attachment 359930 [details]
make.conf
Comment 3 andros 2013-10-01 19:11:45 UTC
Created attachment 359932 [details]
emerge --info
Comment 4 Ben Kohler gentoo-dev 2013-10-01 19:17:04 UTC
Looks like you have permission problems on /usr/src/linux-3.11.2, new stable portage enables 'userpriv' by default so the sources need to be readable by the portage user.  Either fix the permissions, or disable userpriv.
Comment 5 andros 2013-10-03 08:31:06 UTC
I have set owner root:portage to the entire /usr/src directory.
Now virtualbox-modules merges. But is this the right way to do that?

Also another error emerges if I try to build the rest of my modules zsf-kmod and spl:
"Cannot find UTS_RELEASE definition."
Comment 6 Ben Kohler gentoo-dev 2013-10-03 13:48:08 UTC
The easiest way to keep things working is to keep default permissions on kernel sources-- they should be world readable (root:root 644 on files, root:root 755 on dirs).  If you need to restrict permissions on them (I'm not sure why users READING them would be a problem) then you should adjust permissions to be readable by portage or disable userpriv on all kernel module packages.

If you're still having trouble on those other modules, please open a new bug.

Thanks!