Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] app-emulation/virtualbox-modules and kernel sources

317 views
Skip to first unread message

Jonas de Buhr

unread,
Nov 10, 2011, 12:20:01 PM11/10/11
to
Hello everyone!

virtualbox modules fails with the following

* Messages for package app-emulation/virtualbox-modules-4.1.4:

* Could not find a Makefile in the kernel source directory.
* Please ensure that /usr/src/linux points to a complete set of Linux
sources
* Unable to calculate Linux Kernel version for build, attempting to
use running version
* Could not find a usable .config in the kernel source directory.
* Please ensure that /usr/src/linux points to a configured set of
Linux sources.
* If you are using KBUILD_OUTPUT, please set the environment var so
that
* it points to the necessary object directory so that it might
find .config.
* ERROR: app-emulation/virtualbox-modules-4.1.4 failed (setup phase):
* Kernel not configured; no .config found in


# ls -l /usr/src/linux/.config
-rw-r--r-- 1 root root 77090 9. Okt 19:25 /usr/src/linux/.config

# ls -l /usr/src/
lrwxrwxrwx 1 root root 22 10. Nov 17:55 linux ->
linux-2.6.39-gentoo-r3
drwxr-xr-x 20 root root 4096 27. Okt 13:31 linux-2.6.39-gentoo-r3
drwxr-xr-x 23 root root 4096 20. Okt 15:14 linux-3.0.6-gentoo

# uname -a
Linux <hostname> 2.6.39-gentoo-r3 #5 SMP Sun Oct 9 19:25:51 CEST 2011
x86_64 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz GenuineIntel
GNU/Linux

i don't get it. does anybody know whats wrong?

thanks,
jonas

Grant Edwards

unread,
Nov 10, 2011, 1:20:02 PM11/10/11
to
On 2011-11-10, Jonas de Buhr <jonas....@gmx.net> wrote:
> Hello everyone!
>
> virtualbox modules fails with the following
>
> * Messages for package app-emulation/virtualbox-modules-4.1.4:
>
> * Could not find a Makefile in the kernel source directory.
[...]

> # uname -a
> Linux <hostname> 2.6.39-gentoo-r3 #5 SMP Sun Oct 9 19:25:51 CEST 2011
> x86_64 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz GenuineIntel
> GNU/Linux
>
> i don't get it. does anybody know whats wrong?

Presumably there isn't a Makefile in /usr/src/Linux?

If you've done a "make clean" or something similar in the linux source
directory (or if you've never built a kernel), you'll have to
re-generate at least the files required to build modules. Try doing
"make modules_prepare" in your linux source directory.

The full story is in

/usr/src/linux/Documentation/kbuild/modules.txt sectio 2.

--
Grant Edwards grant.b.edwards Yow! My Aunt MAUREEN was a
at military advisor to IKE &
gmail.com TINA TURNER!!

Jonas de Buhr

unread,
Nov 12, 2011, 6:40:02 PM11/12/11
to
Am Thu, 10 Nov 2011 18:13:04 +0000 (UTC)
schrieb Grant Edwards <grant.b...@gmail.com>:

> On 2011-11-10, Jonas de Buhr <jonas....@gmx.net> wrote:
> > Hello everyone!
> >
> > virtualbox modules fails with the following
> >
> > * Messages for package app-emulation/virtualbox-modules-4.1.4:
> >
> > * Could not find a Makefile in the kernel source directory.
> [...]
>
> > # uname -a
> > Linux <hostname> 2.6.39-gentoo-r3 #5 SMP Sun Oct 9 19:25:51 CEST
> > 2011 x86_64 Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz GenuineIntel
> > GNU/Linux
> >
> > i don't get it. does anybody know whats wrong?
>
> Presumably there isn't a Makefile in /usr/src/Linux?

sorry, i was in a hurry, i really should have asked more specific
questions. yes, there is no makefile in the kernel sources and that
causes all make commands in the kernel source dir to fail (of course).

i have the sources for 3.0.6 installed and configured emerge to change
the symlinks on install of kernel sources.
but... does emerge delete the older makefiles? why would it?

i hope there is a reasonable explanation for the makefiles
disappearing, i really can't use a failing HD at the moment.

>
> If you've done a "make clean" or something similar in the linux source
> directory (or if you've never built a kernel), you'll have to

well, i built the kernel i am running, is there a different way? :P

> re-generate at least the files required to build modules. Try doing
> "make modules_prepare" in your linux source directory.
>
> The full story is in
>
> /usr/src/linux/Documentation/kbuild/modules.txt sectio 2.
>

thanks!

Neil Bothwick

unread,
Nov 13, 2011, 7:10:02 AM11/13/11
to
On Sun, 13 Nov 2011 00:32:31 +0100, Jonas de Buhr wrote:

> > Presumably there isn't a Makefile in /usr/src/Linux?
>
> sorry, i was in a hurry, i really should have asked more specific
> questions. yes, there is no makefile in the kernel sources and that
> causes all make commands in the kernel source dir to fail (of course).
>
> i have the sources for 3.0.6 installed and configured emerge to change
> the symlinks on install of kernel sources.
> but... does emerge delete the older makefiles? why would it?

No it doesn't, but the /usr/src/linux symlink no longer points to a
directory containing a makefile.

/usr/src/linux
make oldconfig

will fix it.


--
Neil Bothwick

I'm in shape ... Rounds a shape isn't it?
signature.asc
0 new messages