'MAKEOPTS=-j1 emerge -v1 xf86-video-virtualbox' fails with: ... i686-pc-linux-gnu-gcc -c -O2 -nostdinc -iwithprefix include -include /lib/modules/4.7.0-gentoo/build/include/linux/kconfig.h -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wstrict-prototypes -Wno-pointer-sign -Wno-sign-compare -fdiagnostics-show-option -fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -include /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/include/VBox/VBoxGuestMangling.h -fshort-wchar -mpreferred-stack-boundary=2 -msoft-float -I../../../Runtime/include -I../../../Runtime/r0drv/linux -I/lib/modules/4.7.0-gentoo/build/include -I/lib/modules/4.7.0-gentoo/build/include/asm-i386/mach-default -I/lib/modules/4.7.0-gentoo/build/include/asm-x86/mach-default -I/lib/modules/4.7.0-gentoo/build/include/drm -I/lib/modules/4.7.0-gentoo/build/arch/x86/include -I/lib/modules/4.7.0-gentoo/build/arch/x86/include/asm/mach-default -I/lib/modules/4.7.0-gentoo/build/arch/x86/include/uapi -I/lib/modules/4.7.0-gentoo/build/arch/x86/include/generated -I/lib/modules/4.7.0-gentoo/build/arch/x86/include/generated/uapi -I/lib/modules/4.7.0-gentoo/build/include/uapi -I/lib/modules/4.7.0-gentoo/build/include/generated/uapi -I/lib/modules/4.7.0-gentoo/build/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/out/linux.x86/release/obj/vboxvideo_drm/dtrace -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/out/linux.x86/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_X86 -D__X86__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/opt/VirtualBox\" -DRTPATH_APP_PRIVATE_ARCH=\"/opt/VirtualBox\" -DRTPATH_SHARED_LIBS=\"/opt/VirtualBox\" -DRTPATH_APP_DOCS=\"/opt/VirtualBox\" -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -D__KERNEL__ -DMODULE -DIN_GUEST -DIN_GUEST_R0 -DMODULE -DIN_RT_R0 -DVBOXGUEST -DVBOX_WITH_HGCM -DKBUILD_MODNAME=KBUILD_STR\(vboxvideo\) -DKBUILD_BASENAME=KBUILD_STR\(vboxvideo\) -DDEBUG_HASH=2 -DDEBUG_HASH2=3 -DRT_NO_EXPORT_SYMBOL -Wp,-MD,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/out/linux.x86/release/obj/vboxvideo_drm/vbox_drv.o.dep -Wp,-MT,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/out/linux.x86/release/obj/vboxvideo_drm/vbox_drv.o -Wp,-MP -o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/out/linux.x86/release/obj/vboxvideo_drm/vbox_drv.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/src/VBox/Additions/linux/drm/vbox_drv.c In file included from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/src/VBox/Additions/linux/drm/vbox_drv.c:48:0: /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/src/VBox/Additions/linux/drm/vbox_drv.h: In function ‘vbox_bo_reserve’: /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/src/VBox/Additions/linux/drm/vbox_drv.h:288:11: error: too many arguments to function ‘ttm_bo_reserve’ ret = ttm_bo_reserve(&bo->bo, true, no_wait, false, 0); ^ In file included from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/src/VBox/Additions/linux/drm/vbox_drv.h:62:0, from /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/src/VBox/Additions/linux/drm/vbox_drv.c:48: /lib/modules/4.7.0-gentoo/build/include/drm/ttm/ttm_bo_driver.h:858:19: note: declared here static inline int ttm_bo_reserve(struct ttm_buffer_object *bo, ^ kmk: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/out/linux.x86/release/obj/vboxvideo_drm/vbox_drv.o] Error 1 root@lynxvirt:/root(17)# emerge --info '=x11-drivers/xf86-video-virtualbox-5.0.20-r1::gentoo' Portage 2.3.0 (python 2.7.12-final-0, default/linux/x86/13.0, gcc-4.9.3, glibc-2.23-r2, 4.7.0-gentoo i686) ================================================================= System Settings ================================================================= System uname: Linux-4.7.0-gentoo-i686-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.2 KiB Mem: 1921940 total, 685360 free KiB Swap: 4194300 total, 4194300 free Timestamp of repository gentoo: Fri, 05 Aug 2016 07:00:01 +0000 sh bash 4.3_p46 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p46::gentoo dev-lang/perl: 5.24.0-r1::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/cmake: 3.6.1::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2-r1::gentoo sys-apps/openrc: 0.21.3::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo, 2.26.1::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.3.0::gentoo, 5.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r2::gentoo Repositories: gentoo location: /usr/portage_lynxvirt sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA PUEL" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" 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="R X acl admin alsa apng automount bash-completion berkdb boost bzip2 cairo cdda cli cmake cracklib crypt cups curl cxx dbus djvu doc dot dri eds egl emacs evdev exif extra extras fftw fontconfig fortran fpx fuse gd gdbm gif gimp git gmp gnome gnome-keyring gnuplot gnutls gpm graphics graphtft graphviz gstreamer gtk gudev hdf hdf5 hdri hwdb iconv icu imagemagick introspection ipv6 ithreads jadetex jbig jpeg jpeg2k kerberos latex lcms ldap lensfun libkms lzma lzo mercurial modules motif mp3 mp4 ncurses netpbm nls nptl ntp ogg opencv openexr opengl openmp pam pango pcre pdf pdl pdl2 perl plotutils plplot png policykit postscript preview-latex pulseaudio python q32 qemu qt5 raw readline samba seccomp session sockets sound sqlite ssl subversion svg systemd tcl tcpd tex theora threads tiff tk truetype udev udisks unicode usb vala valgrind webkit wmf x86 xa xattr xemacs xml xpm yaml zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de en fr ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en fr ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= x11-drivers/xf86-video-virtualbox-5.0.20-r1::gentoo was built with the following: USE="dri" PYTHON_TARGETS="python2_7" root@lynxvirt:/root(18)# emerge -pqv '=x11-drivers/xf86-video-virtualbox-5.0.20-r1::gentoo' [ebuild R ] x11-drivers/xf86-video-virtualbox-5.0.20-r1 USE="dri" PYTHON_TARGETS="python2_7" * IMPORTANT: 9 news items need reading for repository 'gentoo'. * Use eselect news read to view new items.
*** Bug 590574 has been marked as a duplicate of this bug. ***
according to the linked ticket https://www.virtualbox.org/ticket/15444 this one is reported fixed by Additions.iso version 5.0.22 could you try app-emulation/virtualbox-guest-additions-ng from my overlay? https://github.com/masterzorag/gentoo-overlay Available versions: (5.0) 5.0.16_alpha_pre^m ~5.0.26_alpha_pre^m (5.1) ~5.1.2_alpha_pre^m in your gentoo guest you should remove every virtualbox guest package, then use only this (virtualbox-guest-additions-ng) one remember that Oracle's devs marks last stable Additions.iso for linux guests as 5.0.16 in terms of accelerated video driver, opengl support etc. they tag those features as: user supported, check https://www.virtualbox.org/wiki/Downloads at "Guest Additions update for Linux guests"
(In reply to masterzorag from comment #2) > according to the linked ticket https://www.virtualbox.org/ticket/15444 this > one is reported fixed by Additions.iso version 5.0.22 > > could you try app-emulation/virtualbox-guest-additions-ng from my overlay? > https://github.com/masterzorag/gentoo-overlay > > Available versions: > (5.0) 5.0.16_alpha_pre^m ~5.0.26_alpha_pre^m > (5.1) ~5.1.2_alpha_pre^m > > in your gentoo guest you should remove every virtualbox guest package, then > use only this (virtualbox-guest-additions-ng) one Should I remove only app-emulation/virtualbox-guest-additions, or should I also remove x11-drivers/xf86-video-virtualbox-5.0.20-r1?
Even if I remove app-emulation/virtualbox-guest-additions and x11-drivers/xf86-video-virtualbox-5.0.20-r1 I get kernel NULL pointer dereferences: ... [ 13.387399] [TTM] Initializing DMA pool allocator [ 13.388334] BUG: unable to handle kernel NULL pointer dereference at (null) [ 13.389019] IP: [< (null)>] (null) [ 13.389677] *pde = 00000000 [ 13.390414] Oops: 0000 [#1] [ 13.391050] Modules linked in: vboxvideo(O+) vboxguest(O) input_leds snd_intel8x0 snd_ac97_codec ac97_bus ttm vboxpci(O) vboxnetadp(O) vboxnetflt(O) nfsd vboxdrv(O) virtio_pci virtio_balloon virtio_ring virtio fuse hid_sony led_class [ 13.395766] CPU: 0 PID: 1537 Comm: systemd-udevd Tainted: G O 4.7.0-gentoo #1 [ 13.397153] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [ 13.398568] task: f63b1280 ti: f426c000 task.ti: f426c000 [ 13.399387] EIP: 0060:[<00000000>] EFLAGS: 00010246 CPU: 0 [ 13.400218] EIP is at 0x0 [ 13.400945] EAX: f3cf0c00 EBX: f3cf0c00 ECX: f6dade20 EDX: f8654000 [ 13.401803] ESI: f3fd811c EDI: f3cf0c68 EBP: f426db6c ESP: f426db5c [ 13.402666] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 [ 13.403482] CR0: 80050033 CR2: 00000000 CR3: 34268000 CR4: 000406d0 [ 13.404313] Stack: [ 13.404993] f8463b05 f3cf0c00 00000000 00000000 f426db94 f846561f 00002240 00000000 [ 13.407549] f3f97240 00000000 f3fd811c f3cf0c00 001d5000 f3fd811c f426dbd4 f8652e78 [ 13.409954] 00000000 f3cf0d08 00000000 00000000 00000000 00002240 00000000 00000000 [ 13.412290] Call Trace: [ 13.412960] [<f8463b05>] ? ttm_bo_add_to_lru+0x25/0xe0 [ttm] [ 13.413762] [<f846561f>] ttm_bo_init+0x29f/0x320 [ttm] [ 13.414496] [<f8652e78>] vbox_bo_create+0x98/0xd0 [vboxvideo] [ 13.415276] [<f8652900>] ? vbox_bo_move+0x20/0x20 [vboxvideo] [ 13.416087] [<f865177c>] vbox_gem_create+0x2c/0x80 [vboxvideo] ...
(In reply to masterzorag from comment #2) > according to the linked ticket https://www.virtualbox.org/ticket/15444 this > one is reported fixed by Additions.iso version 5.0.22 > > could you try app-emulation/virtualbox-guest-additions-ng from my overlay? > https://github.com/masterzorag/gentoo-overlay > > Available versions: > (5.0) 5.0.16_alpha_pre^m ~5.0.26_alpha_pre^m > (5.1) ~5.1.2_alpha_pre^m > > in your gentoo guest you should remove every virtualbox guest package, then > use only this (virtualbox-guest-additions-ng) one I tried to follow the instruction from https://github.com/masterzorag/gentoo-overlay , i.e. I added a file vbox.conf to the directory /etc/portage/repos.conf/ with the following contents: rose@lynxvirt:/home/rose(23)$ cat /etc/portage/repos.conf/vbox.conf [masterzorag] location = /usr/local/portage sync-uri = https://github.com/masterzorag/gentoo-overlay.git sync-type = git auto-sync = yes The subsequent 'emerge --sync' fails with: ... === Sync completed for gentoo q: Updating ebuild cache in /usr/portage_lynxvirt ... q: Finished 38033 entries in 0.027060 seconds >>> Syncing repository 'masterzorag' into '/usr/local/portage'... /usr/bin/git clone --depth 1 https://github.com/masterzorag/gentoo-overlay.git . fatal: Zielpfad '.' existiert bereits und ist kein leeres Verzeichnis. !!! git clone error in /usr/local/portage q: Updating ebuild cache in /usr/local/portage ... q: Finished 10 entries in 6.292965 seconds ... The directory /usr/local/portage exists already and is not empty. If I modify the location in /etc/portage/repos.conf/vbox.conf to /usr/local/portage2, 'emerge --sync' works. But the attempt to emerge virtualbox-guest-additions-ng and xf86-video-virtualbox complains about blocking packages: root@lynxvirt:/root(5)# emerge -pv1 virtualbox-guest-additions-ng xf86-video-virtualbox These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] x11-drivers/xf86-video-virtualbox-5.1.0-r1::masterzorag USE="dri" PYTHON_TARGETS="python2_7" 111,392 KiB [ebuild N ] app-emulation/virtualbox-guest-additions-ng-5.1.2_alpha_pre::masterzorag 57,132 KiB [blocks B ] app-emulation/virtualbox-modules ("app-emulation/virtualbox-modules" is blocking app-emulation/virtualbox-guest-additions-ng-5.1.2_alpha_pre) [blocks B ] app-emulation/virtualbox ("app-emulation/virtualbox" is hard blocking app-emulation/virtualbox-guest-additions-ng-5.1.2_alpha_pre) [blocks B ] x11-drivers/xf86-video-virtualbox ("x11-drivers/xf86-video-virtualbox" is blocking app-emulation/virtualbox-guest-additions-ng-5.1.2_alpha_pre) [blocks B ] app-emulation/virtualbox-extpack-oracle ("app-emulation/virtualbox-extpack-oracle" is blocking app-emulation/virtualbox-guest-additions-ng-5.1.2_alpha_pre) Total: 2 packages (2 new), Size of downloads: 168,524 KiB Conflict: 4 blocks (4 unsatisfied) * Error: The above package list contains packages which cannot be * installed at the same time on the same system. (app-emulation/virtualbox-extpack-oracle-5.1.2.108956:0/0::gentoo, installed) pulled in by app-emulation/virtualbox-extpack-oracle required by @selected (x11-drivers/xf86-video-virtualbox-5.1.0-r1:0/0::masterzorag, ebuild scheduled for merge) pulled in by xf86-video-virtualbox (app-emulation/virtualbox-guest-additions-ng-5.1.2_alpha_pre:0/0::masterzorag, ebuild scheduled for merge) pulled in by virtualbox-guest-additions-ng For more information about Blocked Packages, please refer to the following section of the Gentoo Linux x86 Handbook (architecture is irrelevant): https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages
If I try only to update world, I see: root@lynxvirt:/root(7)# emerge -vuND world * IMPORTANT: 9 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] x11-drivers/xf86-video-virtualbox-5.1.0-r1::masterzorag USE="dri" PYTHON_TARGETS="python2_7" 111,392 KiB [ebuild U ] sys-apps/diffutils-3.4::gentoo [3.3::gentoo] USE="nls -static" 1,327 KiB [ebuild R ] dev-perl/PDL-2.4.11::gentoo USE="badval doc fftw fortran gd hdf netpbm pdl2 pgplot plplot* threads -gsl" 0 KiB Total: 3 packages (1 upgrade, 1 new, 1 reinstall), Size of downloads: 112,719 KiB >>> Verifying ebuild manifests >>> Emerging (1 of 3) x11-drivers/xf86-video-virtualbox-5.1.0-r1::masterzorag ... xf86-video-virtualbox-5.1.0-r1 is installed, in spite of file collision: >>> Installing (1 of 3) x11-drivers/xf86-video-virtualbox-5.1.0-r1::masterzorag * checking 10 files for package collisions * This package will overwrite one or more files that may belong to other * packages (see list below). You can use a command such as `portageq * owners / <filename>` to identify the installed package that owns a * file. If portageq reports that only one package owns a file then do * NOT file a bug report. A bug report is only useful if it identifies at * least two or more packages that are known to install the same file(s). * If a collision occurs and you can not explain where the file came from * then you should simply ignore the collision since there is not enough * information to determine if a real problem exists. Please do NOT file * a bug report at http://bugs.gentoo.org unless you report exactly which * two packages install the same file(s). See * http://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how to * solve the problem. And once again, please do NOT file a bug report * unless you have completely understood the above message. * * Detected file collision(s): * * /usr/lib/VBoxOGL.so * /usr/lib/VBoxOGLcrutil.so * /usr/lib/VBoxOGLpassthroughspu.so * /usr/lib/VBoxOGLerrorspu.so * /usr/lib/VBoxOGLarrayspu.so * /usr/lib/VBoxOGLfeedbackspu.so * /usr/lib/VBoxOGLpackspu.so * /usr/lib/xorg/modules/drivers/vboxvideo_drv.so * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * None of the installed packages claim the file(s). * * Package 'x11-drivers/xf86-video-virtualbox-5.1.0-r1' merged despite * file collisions. If necessary, refer to your elog messages for the * whole content of the above message. After rebooting I get again kernel NULL pointer dereference: ... [ 6.132094] vboxdrv: Found 1 processor cores [ 6.148631] vboxdrv: TSC mode is Invariant, tentative frequency 2394560039 Hz [ 6.149154] vboxdrv: Successfully loaded version 5.1.2 (interface 0x00260000) [ 6.159445] EXT4-fs (sda2): re-mounted. Opts: (null) [ 6.212944] VBoxNetFlt: Successfully started. [ 6.221399] VBoxNetAdp: Successfully started. [ 6.232220] VBoxPciLinuxInit [ 6.232226] vboxpci: pci-stub module not available, cannot detach PCI devices [ 6.232227] vboxpci: IOMMU not found (not registered) [ 6.388361] systemd-journald[1503]: Received request to flush runtime journal from PID 1 [ 8.988060] e1000 0000:00:03.0 enp0s3: renamed from eth0 [ 9.022128] vgdrvHeartbeatInit: Setting up heartbeat to trigger every 2000 milliseconds [ 9.023013] input: Unspecified device as /devices/pci0000:00/0000:00:04.0/input/input7 [ 9.024950] vboxguest: misc device minor 54, IRQ 20, I/O port d020, MMIO at 00000000f0400000 (size 0x400000) [ 9.025119] vboxguest: Successfully loaded version 5.1.2 (interface 0x00010004) [ 9.096306] [drm] VRAM 01800000 [ 9.097496] [TTM] Zone kernel: Available graphics memory: 440806 kiB [ 9.098037] [TTM] Zone highmem: Available graphics memory: 960970 kiB [ 9.098621] [TTM] Initializing pool allocator [ 9.099132] [TTM] Initializing DMA pool allocator [ 9.102116] BUG: unable to handle kernel NULL pointer dereference at (null) [ 9.102793] IP: [< (null)>] (null) [ 9.103100] *pde = 00000000 [ 9.103626] Oops: 0000 [#1] [ 9.104053] Modules linked in: vboxvideo(O+) vboxguest(O) ac97_bus ttm vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) nfsd virtio_pci virtio_balloon virtio_ring virtio fuse hid_sony led_class [ 9.106784] CPU: 0 PID: 1540 Comm: systemd-udevd Tainted: G O 4.7.0-gentoo #1 [ 9.107595] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 [ 9.108406] task: f3c8ef00 ti: f43a0000 task.ti: f43a0000 [ 9.108873] EIP: 0060:[<00000000>] EFLAGS: 00010246 CPU: 0 And I can't start X11.
You are mixing things: host and guest drivers I see you are in a virtualized system by this kernel messages: [ 9.025119] vboxguest: Successfully loaded version 5.1.2 (interface 0x00010004) [ 9.107595] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006 Remove all virtualbox packages, then reboot Make sure you have purged all previous vbox* kernel modules, then emerge -av1 =app-emulation/virtualbox-guest-additions-ng-5.0.16_alpha_pre Your guest needs only vboxguest, vboxsf and vboxvideo kernel modules. After booting you should check if those three modules are succesfully loaded; three related services should be installed in /etc/init.d/ to manage them.
Created attachment 443570 [details] emerge-info.txt same at the tinderbox
Created attachment 443572 [details] emerge-history.txt
Created attachment 443574 [details] environment
Created attachment 443576 [details] x11-drivers:xf86-video-virtualbox-5.0.20-r1:20160817-065141.log.bz2
There is another error message when compiling x11-drivers/xf86-video-virtualbox-5.0.20-r1 with kernel 4.7.1. error: too many arguments to function ‘drm_gem_object_lookup’
Have had the same trouble for a long time... So exceptionally I tried to use all 5.1.4 virtualbox versions from the sabayon overlay, which seems to work fine for me. Is there a good reason I'm not aware of, to not overtake it to our tree?
Same here x11-drivers/xf86-video-virtualbox--5.0.20-r1 failed with kernel 4.7.2.
The problem is still there in kernel 4.7.3.
I tried to compile it against kernel 4.7.4 and 4.7.5 and the faults are exactly the same as before. Then I tried to compile it against my already in usage kernel 4.8.0. Now most of these errors gone, but different once came up, like e.g.: /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c: In function 'rtTimerLnxStartSubTimer': /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.20-r1/work/VirtualBox-5.0.20/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c:364:13: error: implicit declaration of function 'mod_timer_pinned' [-Werror=implicit-function-declaration] mod_timer_pinned(&pSubTimer->u.Std.LnxTimer, pSubTimer→u.Std.ulNextJiffies); After that error, I tried a different kernel.config setting with: CONFIG_NO_HZ_FULL=y My actual settings now, regarding tickless settings: zcat /proc/config.gz | grep CONFIG_NO_HZ_FULL CONFIG_NO_HZ_FULL=y # CONFIG_NO_HZ_FULL_ALL is not set # CONFIG_NO_HZ_FULL_SYSIDLE is not set But the fault is still the same: fore more, please look into attached build log against 4.8.0 kernel.
Created attachment 449482 [details] xf86-video-virtualbox-5.0.20-r1 build.log against 4.8.0 kernel
According this diff http://lxr.free-electrons.com/diff/include/drm/ttm/ttm_bo_driver.h?v=4.7;diffval=4.6;diffvar=v we see the cause of bug title around line 850 5.0.x guest addition should stick with kernel-4.6 5.1.x guest addition can go with kernel-4.7 Not a bug, here...
commit 513442f7a7c0593bbffe5075731ca43925d35f0e Author: Lars Wendler <polynomial-c@gentoo.org> Date: Tue Nov 1 16:34:36 2016 virtualbox guest packages: Bump to versions 5.1.6 and 5.1.8 Package-Manager: portage-2.3.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>