Public bug reported:
virtualbox-guest-dkms is failing to build on the latest unstable 5.10
kernel with the following error:
/var/lib/dkms/virtualbox-guest/6.1.16/build/vboxsf/regops.c: In function
‘vbsf_lock_user_pages_failed_check_kernel’:
/var/lib/dkms/virtualbox-guest/6.1.16/build/vboxsf/regops.c:1406:24: error:
‘USER_DS’ undeclared (first use in this function); did you mean ‘USER_HZ’?
1406 | && uPtrFrom >= USER_DS.seg)
| ^~~~~~~
| USER_HZ
This problem seems to be introduced by the removal of set_fs()
(https://lwn.net/Articles/832121/). Theoretically without set_fs() we could
simply avoid using USER_DS, but even after fixing that, we are hitting other
build errors:
/var/lib/dkms/virtualbox-guest/6.1.16/build/vboxvideo/vbox_ttm.c:125:16:
warning: ‘struct ttm_mem_type_manager’ declared inside parameter list will not
be visible outside of this definition or declaration
125 | struct ttm_mem_type_manager *man)
| ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/virtualbox-guest/6.1.16/build/vboxvideo/vbox_fb.c:293:24: error:
‘TTM_PL_FLAG_VRAM’ undeclared (first use in this function); did you mean
‘TTM_PL_FLAG_WC’?
293 | ret = vbox_bo_pin(bo, TTM_PL_FLAG_VRAM, NULL);
| ^~~~~~~~~~~~~~~~
| TTM_PL_FLAG_WC
/var/lib/dkms/virtualbox-guest/6.1.16/build/vboxvideo/vbox_ttm.c:263:3: error:
‘struct ttm_bo_driver’ has no member named ‘init_mem_type’
263 | .init_mem_type = vbox_bo_init_mem_type,
| ^~~~~~~~~~~~~
...etc...
So it looks like this module needs some significant changes in order to
be used with 5.10.
** Affects: ubuntu
Importance: Undecided
Status: New
** Affects: Ubuntu Hirsute
Importance: Undecided
Status: New
** Also affects: Ubuntu Hirsute
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1908734
Title:
virtualbox-guest-dkms: build errors with kernel 5.10
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1908734/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs