Created attachment 534878 [details] emerge --info '=app-emulation/virtualbox-guest-additions-5.2.12::gentoo' app-emulation/virtualbox-guest-additions-5.2.12 fails to build under kernel 4.17.0: /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.12/work/vboxvideo/vbox_ttm.c: In function ‘vbox_ttm_tt_create’: /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.12/work/vboxvideo/vbox_ttm.c:218:22: error: passing argument 2 of ‘ttm_tt_init’ from incompatible pointer type [-Werror=incompatible-pointer-types] if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { ^~~~ In file included from ./include/drm/ttm/ttm_bo_driver.h:45:0, from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.12/work/vboxvideo/vbox_drv.h:68, from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.12/work/vboxvideo/vbox_ttm.c:30: ./include/drm/ttm/ttm_tt.h:161:5: note: expected ‘struct ttm_buffer_object *’ but argument is of type ‘struct ttm_bo_device *’ int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, ^~~~~~~~~~~ /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.12/work/vboxvideo/vbox_ttm.c:218:6: error: too many arguments to function ‘ttm_tt_init’ if (ttm_tt_init(tt, bdev, size, page_flags, dummy_read_page)) { ^~~~~~~~~~~ In file included from ./include/drm/ttm/ttm_bo_driver.h:45:0, from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.12/work/vboxvideo/vbox_drv.h:68, from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.12/work/vboxvideo/vbox_ttm.c:30: ./include/drm/ttm/ttm_tt.h:161:5: note: declared here int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo, ^~~~~~~~~~~ /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.12/work/vboxvideo/vbox_ttm.c: At top level: /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.12/work/vboxvideo/vbox_ttm.c:247:19: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .ttm_tt_create = vbox_ttm_tt_create, ^~~~~~~~~~~~~~~~~~
Created attachment 534880 [details] emerge -pqv '=app-emulation/virtualbox-guest-additions-5.2.12::gentoo'
Created attachment 534882 [details] build.log
Created attachment 534884 [details] environment
It was discussed on the forums: https://forums.gentoo.org/viewtopic-p-8226284.html?sid=ecaf88eb7220387fe7bab5ce6fd0cab7 There a bug report on virtualbox bug tracker: https://www.virtualbox.org/ticket/17801