1 |
On Sunday, December 21, 2014 01:13:01 PM Gevisz wrote: |
2 |
> On Sun, 21 Dec 2014 11:47:10 +0100 "J. Roeleveld" <joost@××××××××.org> |
3 |
wrote: |
4 |
> > On Sunday, December 21, 2014 10:16:50 AM Gevisz wrote: |
5 |
> > > Tonight I have compiled a new sys-kernel/gentoo-sources |
6 |
> > > version 3.17.7 (the previous version was 3.16.5). |
7 |
> > > Everything as usual: |
8 |
> > > 1) copy .config from /usr/src/linux-3.16.5-gentoo to /usr/src/linux |
9 |
> > > |
10 |
> > > that points to the /usr/src/linux-3.17.7-gentoo, |
11 |
> > > |
12 |
> > > 2) `cd /usr/src/linux` |
13 |
> > > 3) `make oldconfig`, |
14 |
> > > 4) `make && make modules_install`, |
15 |
> > > 5) copy bzImage, .config and System.map to /boot, |
16 |
> > > |
17 |
> > > and, finally, |
18 |
> > > |
19 |
> > > 6) `emerge @module-rebuild`. |
20 |
> > > |
21 |
> > > Unfortunately, the last operation, that in my case usually |
22 |
> > > recompiles kernel modules needed for VirtualBox, failed with |
23 |
> > > the message I provide below. It is very strange for me |
24 |
> > > because I do not think that those (sometimes unconscious :) |
25 |
> > > choices I made during `make oldconfig` can influence building |
26 |
> > > VirtualBox kernel modules. |
27 |
> > > |
28 |
> > > >>> Install virtualbox-modules-4.2.24 into |
29 |
> > > >>> /var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/image/ |
30 |
> > > >>> category app-emulation |
31 |
> > > |
32 |
> > > * Installing vboxdrv module |
33 |
> > > * Installing vboxnetflt module |
34 |
> > > * Installing vboxnetadp module |
35 |
> > > |
36 |
> > > install: cannot stat ‘vboxnetadp.ko’: No such file or directory |
37 |
> > > !!! doins: vboxnetadp.ko does not exist |
38 |
> > > |
39 |
> > > * ERROR: app-emulation/virtualbox-modules-4.2.24::gentoo failed |
40 |
> > > (install |
41 |
> > > |
42 |
> > > phase): * doins failed |
43 |
> > > |
44 |
> > > * |
45 |
> > > * If you need support, post the output of `emerge --info |
46 |
> > > |
47 |
> > > '=app-emulation/virtualbox-modules-4.2.24::gentoo'`, * the complete |
48 |
> > > build |
49 |
> > > log and the output of `emerge -pqv |
50 |
> > > '=app-emulation/virtualbox-modules-4.2.24::gentoo'`. * The complete |
51 |
> > > build |
52 |
> > > log is located at |
53 |
> > > '/var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/temp/build.log |
54 |
> > > '. |
55 |
> > > * The ebuild environment file is located at |
56 |
> > > '/var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/temp/environme |
57 |
> > > nt' |
58 |
> > > . * Working directory: |
59 |
> > > '/var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/work' * S: |
60 |
> > > '/var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/work' * QA |
61 |
> > > |
62 |
> > > Notice: file does not exist: |
63 |
> > > * |
64 |
> > > * doins: vboxnetadp.ko does not exist |
65 |
> > > |
66 |
> > > And this is the output from `emerge --info |
67 |
> > > '=app-emulation/virtualbox-modules-4.2.24::gentoo'`: |
68 |
> > > |
69 |
> > > |
70 |
> > > Any thought? |
71 |
> > |
72 |
> > Can you provide the complete build log as well? |
73 |
> |
74 |
> Yes. |
75 |
> |
76 |
> The contents of the file |
77 |
> /var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/temp/build.log |
78 |
> is provided below. |
79 |
> |
80 |
|
81 |
<SNIP - only interested in vboxnetadp build> |
82 |
|
83 |
> *** Building 'vboxnetadp' module *** |
84 |
> make[1]: Entering directory |
85 |
> '/var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/work/vboxnetadp' |
86 |
> make KBUILD_VERBOSE= |
87 |
> SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/work/vboxn |
88 |
> etadp |
89 |
> SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/work/vboxn |
90 |
> etadp CONFIG_MODULE_SIG= -C /usr/src/linux modules make[2]: Entering |
91 |
> directory '/usr/src/linux-3.17.7-gentoo' |
92 |
> CC [M] |
93 |
> /var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/work/vboxnetadp/li |
94 |
> nux/VBoxNetAdp-linux.o CC [M] |
95 |
> /var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/work/vboxnetadp/VB |
96 |
> oxNetAdp.o |
97 |
> /var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/work/vboxnetadp/li |
98 |
> nux/VBoxNetAdp-linux.c: In function ‘vboxNetAdpOsCreate’: |
99 |
> /var/tmp/portage/app-emulation/virtualbox-modules-4.2.24/work/vboxnetadp/li |
100 |
> nux/VBoxNetAdp-linux.c:186:48: error: macro "alloc_netdev" requires 4 |
101 |
> arguments, but only 3 given vboxNetAdpNetDevInit); |
102 |
> ^ |
103 |
|
104 |
Here is the first error, ignoring the rest. |
105 |
|
106 |
Googling the error brings us to: |
107 |
http://pietrushnic.github.io/blog/2014/09/20/virtualbox-dkms-fix-alloc-netdev-problems-when-compiling-with-3-dot-17-dot-0-rcx-headers/ |
108 |
|
109 |
In short, Kernel 3.7.x has issues with Virtualbox. |
110 |
|
111 |
Checking the change-log for virtualbox-modules, I find: |
112 |
******virtualbox-modules-4.3.14-r1 (03 Sep 2014) |
113 |
|
114 |
03 Sep 2014; Matthew Thode <prometheanfire@g.o> |
115 |
+files/virtualbox-modules-3.17.patch, +virtualbox-modules-4.3.14-r1.ebuild, |
116 |
-virtualbox-modules-4.3.14.ebuild: |
117 |
bumping for 3.17 support |
118 |
|
119 |
***** |
120 |
|
121 |
Try a newer version of virtualbox, 4.3.14 or higher would be a good start. |
122 |
|
123 |
-- |
124 |
Joost |