Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 653858 - app-emulation/virtualbox-guest-additions-5.2.10 fails to build: vboxvideo/vbox_ttm.c:207:29: error: incompatible type for argument 2 of ‘ttm_bo_move_memcpy’
Summary: app-emulation/virtualbox-guest-additions-5.2.10 fails to build: vboxvideo/vbo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-23 04:18 UTC by Leonid Kopylov
Modified: 2019-04-20 21:46 UTC (History)
4 users (show)

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


Attachments
build.log.xz (build.log.xz,103.38 KB, text/plain)
2018-04-23 04:20 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2018-04-23 04:18:21 UTC
# emerge -pqv '=app-emulation/virtualbox-guest-additions-5.2.10::gentoo'
[ebuild     U ] app-emulation/virtualbox-guest-additions-5.2.10 [5.2.8] USE="X"

# emerge --info '=app-emulation/virtualbox-guest-additions-5.2.10::gentoo'
Portage 2.3.31 (python 3.5.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-7.3.0, glibc-2.26-r6, 4.16.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.16.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.4.1
KiB Mem:     4044224 total,   1469144 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Mon, 23 Apr 2018 03:00:01 +0000
Head commit of repository gentoo: b6cdc7998803cdeeb69e0b6e025b5e511ebcdc09
sh bash 4.4_p19
ld GNU ld (Gentoo 2.30 p1) 2.30.0
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p19::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.1-r2::gentoo
dev-lang/python:          2.7.14-r2::gentoo, 3.5.5-r1::gentoo, 3.6.5-r1::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.11.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r1::gentoo
sys-devel/gcc:            7.3.0-r1::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: no

4nykey
    location: /var/lib/layman/4nykey
    sync-type: laymansync
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo
    priority: 50

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    sync-type: laymansync
    sync-uri: git://github.com/microcai/gentoo-zh.git
    masters: gentoo
    priority: 50

Installed sets: @my-archives, @my-browsers, @my-cloud, @my-disk-utils, @my-docker, @my-editors, @my-hardware-utils, @my-im-voip, @my-kernel-tools, @my-log-monitor, @my-mail-clients, @my-media, @my-media-players, @my-media-tools, @my-net-analyzers, @my-net-tools, @my-portage-tools, @my-remote, @my-security, @my-servers, @my-system-tools, @my-text-browsers, @my-virt-utils, @my-virtualization
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA FraunhoferFDK google-chrome PUEL RAR Nero-EULA-US OPERA-2014 skype-4.0.0.7-copyright TeamViewer"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en he ru en_US he_IL ru_RU"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac accessibility acl acpi activities alsa amd64 anacron audit berkdb bluetooth branding bzip2 cairo cdda cdio cdr cli crypt cryptsetup cups curl cxx dbus declarative device-mapper dolphin dos dri dts dvd dvdr emboss encode examples exif experimental fam fdk flac fortran gd gdbm geoip gif glamor gles gles2 go googledrive gpg gpm grub gssapi gtk gui html http iconv icu id3tag idn introspection ipv6 iscsi itunes java jpeg kde kerberos kipi kwallet lastfm lcms ldap legacy-systray libnotify libssh logrotate mad math mbox mdadm mng modules mount mp3 mp4 mpd mpeg mpx multilib ncurses networkmanager nls nptl nscd offensive ogg openexr opengl openmp openntpd pam pango pcap pcre pdf pdfimport perl phonon pim plasma png policykit ppds printsupport pulseaudio python qml qrcode qt3support qt5 readline sasl sdl seccomp semantic-desktop slp smi spell sqlite sshdump ssl startup-notification svg symlink sync-plugin-portage systemd tcpd tfshark theora threads tiff tk tools truetype udev udisks unicode upower usb usbredir user-session v4l vlc vorbis wayland webkit widgets wininst wxwidgets x264 xattr xcb xcomposite xinerama xkb xml xv xvid zenmap zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell wiki-publisher scripting-javascript" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, ENV_UNSET, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Leonid Kopylov 2018-04-23 04:20:00 UTC
Created attachment 528248 [details]
build.log.xz
Comment 2 Tomáš Mózes 2018-04-23 10:43:38 UTC
Maybe caused by newer kernel, works for me on 4.14.
Comment 3 Arnim Eijkhoudt 2018-05-10 09:37:54 UTC
Can we get a fix for this? Emerging kernel 4.14 and trying to compile against is not working as a workaround for me, unfortunately. The rest of the VirtualBox 5.2.10 packages compile just fine against the newer kernels etc.
Comment 4 email200202 2018-06-05 08:28:48 UTC
app-emulation/virtualbox-guest-additions-5.2.12 fails to build under kernel 4.17.0 with similar error in the same file vboxvideo/vbox_ttm.c:

/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 5 email200202 2018-06-05 08:32:53 UTC
Should I submit another bug report?
Comment 6 email200202 2018-06-05 08:59:11 UTC
Submitted new bug report (https://bugs.gentoo.org/657380) for app-emulation/virtualbox-guest-additions-5.2.12 under kernel 4.17.0
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-04-20 21:46:14 UTC
Should be fixed in newer releases.