在运行时,sudo sh VBoxLinuxAdditions.run
我在 debian 测试中遇到了内核 4.16 的以下错误:
tmp/vbox.0/vbox_ttm.c: In function ‘vbox_bo_move’:
/tmp/vbox.0/vbox_ttm.c:208:29: error: incompatible type for argument 2 of ‘ttm_bo_move_memcpy’
r = ttm_bo_move_memcpy(bo, interruptible, no_wait_gpu, new_mem);
^~~~~~~~~~~~~
In file included from /tmp/vbox.0/vbox_drv.h:66:0,
from /tmp/vbox.0/vbox_ttm.c:31:
/usr/src/linux-headers-4.16.0-1-common/include/drm/ttm/ttm_bo_driver.h:1001:5: note: expected ‘struct ttm_operation_ctx *’ but argument is of type ‘bool {aka _Bool}’
int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
^~~~~~~~~~~~~~~~~~
/tmp/vbox.0/vbox_ttm.c:208:44: error: incompatible type for argument 3 of ‘ttm_bo_move_memcpy’
r = ttm_bo_move_memcpy(bo, interruptible, no_wait_gpu, new_mem);
^~~~~~~~~~~
In file included from /tmp/vbox.0/vbox_drv.h:66:0,
from /tmp/vbox.0/vbox_ttm.c:31:
/usr/src/linux-headers-4.16.0-1-common/include/drm/ttm/ttm_bo_driver.h:1001:5: note: expected ‘struct ttm_mem_reg *’ but argument is of type ‘bool {aka _Bool}’
int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
^~~~~~~~~~~~~~~~~~
/tmp/vbox.0/vbox_ttm.c:208:6: error: too many arguments to function ‘ttm_bo_move_memcpy’
r = ttm_bo_move_memcpy(bo, interruptible, no_wait_gpu, new_mem);
^~~~~~~~~~~~~~~~~~
In file included from /tmp/vbox.0/vbox_drv.h:66:0,
from /tmp/vbox.0/vbox_ttm.c:31:
/usr/src/linux-headers-4.16.0-1-common/include/drm/ttm/ttm_bo_driver.h:1001:5: note: declared here
我错过了什么?
先感谢您。
您应该升级到 VirtualBox 5.2.12,它增加了对 4.16 版内核的支持。
由于您正在运行测试,您可以安装该
virtualbox
软件包,至少在版本 5.2.12 迁移到测试时。