Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657380 - 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]
Summary: app-emulation/virtualbox-guest-additions-5.2.12 - .../work/vboxvideo/vbox_ttm...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-05 08:50 UTC by email200202
Modified: 2022-07-06 02:23 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=app-emulation/virtualbox-guest-additions-5.2.12::gentoo' (file_657380.txt,6.39 KB, text/plain)
2018-06-05 08:50 UTC, email200202
Details
emerge -pqv '=app-emulation/virtualbox-guest-additions-5.2.12::gentoo' (file_657380.txt,72 bytes, text/plain)
2018-06-05 08:52 UTC, email200202
Details
build.log (build.log,185.18 KB, text/plain)
2018-06-05 08:56 UTC, email200202
Details
environment (environment,140.97 KB, text/plain)
2018-06-05 08:56 UTC, email200202
Details

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2018-06-05 08:50:56 UTC
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,
                   ^~~~~~~~~~~~~~~~~~
Comment 1 email200202 2018-06-05 08:52:37 UTC
Created attachment 534880 [details]
emerge -pqv '=app-emulation/virtualbox-guest-additions-5.2.12::gentoo'
Comment 2 email200202 2018-06-05 08:56:03 UTC
Created attachment 534882 [details]
build.log
Comment 3 email200202 2018-06-05 08:56:36 UTC
Created attachment 534884 [details]
environment
Comment 4 email200202 2018-06-05 09:23:57 UTC
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