On Sun, Aug 11, 2019 at 03:14:16PM +0200, Christian Marillat wrote:
Dear Maintainer,

/var/lib/dkms/virtualbox-guest/6.0.10/build/vboxvideo/vbox_ttm.c:31:10: fatal 
error: ttm/ttm_page_alloc.h: No such file or directory
#include <ttm/ttm_page_alloc.h>
         ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

But bevare fixind the include file path (drm/ttm/ttm_page_alloc.h) doesn't
work at all the virtualbox doesn't start.

Do all of these modules even need to be built using dkms anymore? It looks like some of them have been mainlined (though I haven't compared the code):

It looks like virtualbox-guest-dkms builds 3 modules:

   # cd /var/lib/dkms/virtualbox-guest
   # find . -name \*.ko
   ./6.0.10/5.0.0-trunk-amd64/x86_64/module/vboxguest.ko
   ./6.0.10/5.0.0-trunk-amd64/x86_64/module/vboxsf.ko
   ./6.0.10/5.0.0-trunk-amd64/x86_64/module/vboxvideo.ko

Out of those three modules, it seems like only vboxsf.ko still needs to be built on recent kernels:

   root@syra:/lib/modules# find . -name vboxguest.ko -o -name vboxsf.ko -o 
-name vboxvideo.ko
   ./5.0.0-trunk-amd64/kernel/drivers/staging/vboxvideo/vboxvideo.ko
   ./5.0.0-trunk-amd64/kernel/drivers/virt/vboxguest/vboxguest.ko

   ./5.0.0-trunk-amd64/updates/dkms/vboxguest.ko
   ./5.0.0-trunk-amd64/updates/dkms/vboxsf.ko
   ./5.0.0-trunk-amd64/updates/dkms/vboxvideo.ko

   ./4.19.0-5-amd64/kernel/drivers/staging/vboxvideo/vboxvideo.ko
   ./4.19.0-5-amd64/kernel/drivers/virt/vboxguest/vboxguest.ko

   ./5.2.0-2-amd64/kernel/drivers/gpu/drm/vboxvideo/vboxvideo.ko
   ./5.2.0-2-amd64/kernel/drivers/virt/vboxguest/vboxguest.ko

(split for readability)

I haven't gotten around to testing, but it looks like maybe all that needs to be done is to disable building some of these modules after a certain kernel version.

Reply via email to