Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579572 - app-emulation/virtualbox-modules-5.0.16 fails to build with kernel 4.6-rc3
Summary: app-emulation/virtualbox-modules-5.0.16 fails to build with kernel 4.6-rc3
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-11 07:36 UTC by Helmut Jarausch
Modified: 2017-08-31 18:23 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Temporary user patch (virtualbox-modules-5.0.16-page_cache_release.patch,903 bytes, patch)
2016-04-14 21:57 UTC, Herb Miller Jr.
Details | Diff
patch to update memobj-r0drv-linux.c in app-emulation/virtualbox-modules-5.0.16 to latest svn trunk (putpage.patch,4.87 KB, patch)
2016-04-14 23:29 UTC, jospezial
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2016-04-11 07:36:37 UTC
virtualbox-modules-5.0.16 fails to build with :

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing

Yes, there is no include/config/auto.conf in the 4.6.0-rc3 kernel anymore

and

there is no 'page_cache_release' anymore

/var/tmp/portage/app-emulation/virtualbox-modules-5.0.16/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:581:21: error: implicit declaration of function 'page_cache_release' [-Werror=implicit-function-declaration]
Comment 1 jospezial 2016-04-12 22:47:56 UTC
Upstream ticket:
https://www.virtualbox.org/ticket/15298

There you see the links to the fixes for the next vbox release.
Comment 2 Herb Miller Jr. 2016-04-14 21:57:15 UTC
Created attachment 430516 [details, diff]
Temporary user patch

This is the user patch I'm using in the meantime until the next maintenance release.
Comment 3 jospezial 2016-04-14 23:25:52 UTC
(In reply to Herb Miller Jr. from comment #2)
> Created attachment 430516 [details, diff] [details, diff]
> Temporary user patch
> 
> This is the user patch I'm using in the meantime until the next maintenance
> release.

I tried the same. virtualbox-modules-5.0.16 build and load.
But Virtualbox shows a heavy error when I try to start my windows guest.
I even tried patched memobj-r0drv-linux.c to the latest svn trunk version but no luck.
Could be related to vbox-additions.

Is VBox/Additions/linux/sharedfolders/regops.c used on the host for windows guests too or for linux guests only?
See https://www.virtualbox.org/changeset/60453/vbox/trunk/src/VBox/Additions/linux/sharedfolders/regops.c
Comment 4 jospezial 2016-04-14 23:29:01 UTC
Created attachment 430534 [details, diff]
patch to update memobj-r0drv-linux.c in app-emulation/virtualbox-modules-5.0.16 to latest svn trunk
Comment 5 Herb Miller Jr. 2016-04-15 11:28:21 UTC
Running both Window 7 and Window 10 guests here with no problems. I'm pretty sure VBox/Additions/linux/sharedfolders/regops.c is only used for building the Guest Additions, so only used in the guest.
Comment 6 jospezial 2016-04-19 16:23:05 UTC
Compilation fixed in app-emulation/virtualbox-modules-5.0.18. Compiled against linux-4.6.0-rc4


I still have that other error with my windows-VMs.
After playing with the virtualbox system settings of the VMs (mem,PAE,cores,3D) it crashed not on boot but after about 10 minutes with:

Guru Meditation -2708 (VERR_VMM_SET_JMP_ABORTED_RESUME)

Can't find it on the vbox bugtracker and google doesn't say anything about it.

Linux guests seem to run stable.
Comment 7 Jesse Adelman 2016-07-20 05:34:28 UTC
Still exists with gentoo-sources-aufs-4.6.3 and Virtualbox packages versions 4.3.32 and 5.1.0, currently in Portage.
Comment 8 Mike H. 2016-07-27 04:43:26 UTC
virtualbox-modules 4.3.32 on kernel 4.6.4. Same old bug existing.

/var/tmp/portage/app-emulation/virtualbox-modules-4.3.32/work/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:581:21: error: implicit declaration of function ‘page_cache_release’ [-Werror=implicit-function-declaration]
                     page_cache_release(pMemLnx->apPages[iPage]);

Among the many other warnings. Does ~arch fix this?
Comment 9 Ben Kohler gentoo-dev 2017-08-31 18:23:57 UTC
Please reopen if this is still a problem on current versions