Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
virtualbox-guest-additions-5.1.32 ebuild fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ibazulic
n00b
n00b


Joined: 27 Feb 2018
Posts: 3

PostPosted: Tue Feb 27, 2018 2:18 am    Post subject: virtualbox-guest-additions-5.1.32 ebuild fails Reply with quote

Hey guys,

I found this, I presume this is a bug:

Code:

In file included from ./include/linux/module.h:18:0,
                 from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/r0drv/linux/the-linux-kernel.h:8 ,
                 from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:27:
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:1065:35: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
 module_param_call(log,            vgdrvLinuxParamLogGrpSet,   vgdrvLinuxParamLogGrpGet,   NULL, 0664);
                                   ^


The same error is repeated on more lines in the same file, namely:

Code:

/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:1065:63: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:1065:63: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:1066:35: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:1067:35: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:1067:63: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:1073:35: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:1073:66: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]


There are also warnings for the definition of macro module_param_call in the same file, such as:

Code:

./include/linux/moduleparam.h:233:37: note: in definition of macro ‘module_param_call’
   { .flags = 0, .set = _set, .get = _get };  \
                                     ^~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work/vboxguest/VBoxGuest-linux.c:1073:66: note: (near initialization for ‘__param_ops_r3_log_to_host.get’)


This is my info:

Code:

Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r10, 4.16.0-rc1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.16.0-rc1-x86_64-AMD_FX-tm-8300_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:    16421892 total,  11276372 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Tue, 27 Feb 2018 00:00:01 +0000
Head commit of repository gentoo: 5f87d0a2fc4c3702dcbbf7365b3afc600642fe89
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=bdver1  -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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="-O2 -pipe"
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://gd.tuwien.ac.at/opsys/linux/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.heanet.ie/pub/gentoo/"
LANG="en_GB.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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 acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt5 readline sdl seccomp spell ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


And this is the output of emerge -pqv command:

Code:

gentoo ~ # emerge -pqv '=app-emulation/virtualbox-guest-additions-5.1.32::gentoo'
[ebuild  N    ] app-emulation/virtualbox-guest-additions-5.1.32  USE="X"
gentoo ~ #


Any ideas from you guys? I'm running Gentoo inside VirtualBox, the host computer has Windows 10 on it. This is why I need the guest addition tools, to get the virtualbox graphic driver to work correctly.

Thanks!
_________________
I'm the Doctor, by the way. What's your name?
Rose.
Nice to meet you, Rose. Run for your life!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 18758
Location: here

PostPosted: Tue Feb 27, 2018 6:42 am    Post subject: Reply with quote

Try to add patch proposed in this bug is for kernel 4.15 but error is the same
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
ibazulic
n00b
n00b


Joined: 27 Feb 2018
Posts: 3

PostPosted: Thu Mar 01, 2018 9:04 pm    Post subject: Reply with quote

Hey, I wasn't able to try this before today. It doesn't work, patch won't update the files:

Code:

gentoo /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.1.32/work # patch -Np1 -i /root/vbox-guest-additions-kernel-4.15.patch
patching file vboxguest/VBoxGuest-linux.c
Hunk #1 succeeded at 958 (offset -100 lines).
Hunk #2 succeeded at 973 (offset -100 lines).
Hunk #3 succeeded at 984 (offset -100 lines).
Hunk #4 succeeded at 998 (offset -100 lines).
Hunk #5 succeeded at 1009 (offset -100 lines).
Hunk #6 succeeded at 1023 (offset -100 lines).
Hunk #7 succeeded at 1034 (offset -100 lines).
Hunk #8 succeeded at 1052 (offset -100 lines).
patching file vboxvideo/vbox_mode.c
Hunk #1 FAILED at 396.
1 out of 1 hunk FAILED -- saving rejects to file vboxvideo/vbox_mode.c.rej


Will try with the 5.2.x version.
_________________
I'm the Doctor, by the way. What's your name?
Rose.
Nice to meet you, Rose. Run for your life!
Back to top
View user's profile Send private message
ibazulic
n00b
n00b


Joined: 27 Feb 2018
Posts: 3

PostPosted: Thu Mar 01, 2018 9:41 pm    Post subject: Reply with quote

Tried 5.2.8 but that version doesn't compile either, same error. Patching it also fails. Then I tried the 5.2.6 version and it fails also, even after patching. The new list of errors is here:

Code:

ox_ttm.c
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c: In function ‘vbox_bo_move’:
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:207: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 /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_drv.h:65:0,
                 from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:30:
./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,
     ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:207: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 /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_drv.h:65:0,
                 from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:30:
./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,
     ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:207: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 /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_drv.h:65:0,
                 from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:30:
./include/drm/ttm/ttm_bo_driver.h:1001:5: note: declared here
 int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
     ^~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c: In function ‘vbox_ttm_tt_populate’:
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:244:9: error: too few arguments to function  ttm_pool_populate’
  return ttm_pool_populate(ttm);
         ^~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:31:0:
include/drm/ttm/ttm_page_alloc.h:50:5: note: declared here
 int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx);
     ^~~~~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c: At top level:
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:254:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .ttm_tt_populate = vbox_ttm_tt_populate,
                     ^~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:254:21: note: (near initialization for ‘vbox_bo_driver.ttm_tt_populate’)
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:261:10: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .move = vbox_bo_move,
          ^~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:261:10: note: (near initialization for ‘vbox_bo_driver.move’)
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:266:16: error: ‘ttm_bo_default_io_mem_pfn’ undeclared here (not in a function)
  .io_mem_pfn = ttm_bo_default_io_mem_pfn,
                ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c: In function ‘vbox_bo_pin’:
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:435:8: error: too many arguments to function ‘ttm_bo_validate’
  ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
        ^~~~~~~~~~~~~~~
In file included from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_drv.h:64:0,
                 from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:30:
./include/drm/ttm/ttm_bo_api.h:338:5: note: declared here
 int ttm_bo_validate(struct ttm_buffer_object *bo,
     ^~~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c: In function ‘vbox_bo_unpin’:
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:462:8: error: too many arguments to function ‘ttm_bo_validate’
  ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
        ^~~~~~~~~~~~~~~
In file included from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_drv.h:64:0,
                 from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:30:
./include/drm/ttm/ttm_bo_api.h:338:5: note: declared here
 int ttm_bo_validate(struct ttm_buffer_object *bo,
     ^~~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c: In function ‘vbox_bo_push_sysram’:
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:494:8: error: too many arguments to function ‘ttm_bo_validate’
  ret = ttm_bo_validate(&bo->bo, &bo->placement, false, false);
        ^~~~~~~~~~~~~~~
In file included from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_drv.h:64:0,
                 from /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/vbox_ttm.c:30:
./include/drm/ttm/ttm_bo_api.h:338:5: note: declared here
 int ttm_bo_validate(struct ttm_buffer_object *bo,
     ^~~~~~~~~~~~~~~
   ./tools/objtool/objtool orc generate --no-fp  "/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.2.6/work/vboxvideo/modesetting.o";


So this is something completely different. I know that debugging these is a pain, it seems that this is an upstream error that won't be resolved until Oracle fixes it.
_________________
I'm the Doctor, by the way. What's your name?
Rose.
Nice to meet you, Rose. Run for your life!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 18758
Location: here

PostPosted: Fri Mar 02, 2018 6:49 am    Post subject: Reply with quote

Unmask version 5.2.8 that resolve problem for kernel 4.15 (and maybe 4.16)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum