VBoxLinuxAdditions.runでエラーが発生しました:引数型が互換性がありません

VBoxLinuxAdditions.runでエラーが発生しました:引数型が互換性がありません

実行中にsudo sh VBoxLinuxAdditions.runDebian テストでカーネル 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

私が逃したものは何ですか?

よろしくお願いします。

ベストアンサー1

VirtualBox 5.2.12にアップグレードする必要があります。バージョン4.16カーネルのサポートが追加されました。

テストを実行しているのでインストールできます。virtualboxパッケージ代わりに、バージョン 5.2.12 はテスト用に 1 回以上移行されます。

おすすめ記事