Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580600 - x11-drivers/xf86-video-virtualbox: make[2]: *** No rule to make target '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/mp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm/vboxvideo.o'.
Summary: x11-drivers/xf86-video-virtualbox: make[2]: *** No rule to make target '/var/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
: 581230 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-04-20 08:30 UTC by Michal Jakubowski
Modified: 2016-05-07 01:24 UTC (History)
19 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Jakubowski 2016-04-20 08:30:03 UTC
* Preparing vboxvideo module
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_/modules/4.4.0-pf8/build all
grep: /lib/modules/4.4.0-pf8/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 -C /lib/modules/4.4.0-pf8/build SUBDIRS=/var/tmp/portage/x11-drivers/xf86ar/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm modules
make[1]: Entering directory '/usr/src/linux-4.4_p8-pf'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)
mkdir -p /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm/.tmp_versirtualbox-5.0.18/work/vboxvideo_drm/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/
make[2]: *** No rule to make target '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/mp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm/vboxvideo.o'.  Stop.
Makefile:1384: recipe for target '_module_/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.
make[1]: *** [_module_/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_
make[1]: Leaving directory '/usr/src/linux-4.4_p8-pf'
Makefile:225: recipe for target 'vboxvideo' failed
make: *** [vboxvideo] Error 2
 * ERROR: x11-drivers/xf86-video-virtualbox-5.0.18::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/xf86-video-virtualbox-5
 * the complete build log and the output of `emerge -pqv '=x11-drivers/xf86-video-virtualbox-5.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbo
 * Working directory: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo
 * S: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/VirtualBox-5.0.18'

>>> Failed to emerge x11-drivers/xf86-video-virtualbox-5.0.18, Log file:

>>>  '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/temp/build.log'

 * Messages for package x11-drivers/xf86-video-virtualbox-5.0.18:

 * ERROR: x11-drivers/xf86-video-virtualbox-5.0.18::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/xf86-video-virtualbox-5
 * the complete build log and the output of `emerge -pqv '=x11-drivers/xf86-video-virtualbox-5.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbo
 * Working directory: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo
 * S: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/VirtualBox-5.0.18'


GentooZFS src # eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.4_p8-pf *
GentooZFS src # find /usr/src/linux/include -type f -iname 'autoconf.h' -or -iname 'auto.conf'
/usr/src/linux/include/config/auto.conf
/usr/src/linux/include/generated/autoconf.h
GentooZFS src # emerge --info
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.22-r4, 4.4.0-pf8 x86_64)
=================================================================
System uname: Linux-4.4.0-pf8-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem:     4047612 total,   1717584 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Wed, 20 Apr 2016 00:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync7.pl.gentoo.org/gentoo-portage
    priority: -1000

bliss-overlay
    location: /var/lib/layman/bliss-overlay
    masters: gentoo
    priority: 0

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=sandybridge -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=sandybridge -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg 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 -pipe"
GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 libzfs mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr zfs 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" 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" 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="keyboard mouse evdev" 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-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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
Comment 1 Paolo Pedroni 2016-04-20 08:58:42 UTC
I can confirm that:
 * Preparing vboxvideo module
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERN_DIR=/lib/modules/4.1.15-gentoo-r1/build KERNOUT=/lib/modules/4.1.15-gentoo-r1/build all 
grep: /lib/modules/4.1.15-gentoo-r1/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 -C /lib/modules/4.1.15-gentoo-r1/build SUBDIRS=/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm SRCROOT=/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm modules
make[1]: Entering directory '/usr/src/linux-4.1.15-gentoo-r1'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;                                                      \
/bin/false)
mkdir -p /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm
make[2]: *** No rule to make target '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm/vboxvideo_drm.o', needed by '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm/vboxvideo.o'.  Stop.
Makefile:1384: recipe for target '_module_/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm' failed
make[1]: *** [_module_/var/tmp/portage/x11-drivers/xf86-video-virtualbox-5.0.18/work/vboxvideo_drm] Error 2
make[1]: Leaving directory '/usr/src/linux-4.1.15-gentoo-r1'
Makefile:225: recipe for target 'vboxvideo' failed
make: *** [vboxvideo] Error 2
Comment 2 Oleksii 2016-04-20 11:56:47 UTC
I can confirm also.

>> eselect kernel list
Available kernel symlink targets:
[1]   linux-4.5.1-gentoo *

root@gentoo linux # find /usr/src/linux/include -type f -iname 'autoconf.h' -or -iname 'auto.conf'
/usr/src/linux/include/generated/autoconf.h
/usr/src/linux/include/config/auto.conf
Comment 3 Frank Krömmelbein 2016-04-21 07:12:43 UTC
Same here.

Portage 2.2.26 (python 2.7.10-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.22-r4, 4.4.2-hardened x86_64)
=================================================================
System uname: Linux-4.4.2-hardened-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2
KiB Mem:    20537296 total,  16713912 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 21 Apr 2016 06:58:20 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Comment 4 Michal Jakubowski 2016-04-21 09:31:25 UTC
Any update ?
Comment 5 Konstantin (elxa) 2016-04-22 12:10:03 UTC
upstream bug report here https://www.virtualbox.org/ticket/15329
Comment 6 Michal Jakubowski 2016-04-22 13:20:31 UTC
(In reply to Konstantin (elxa) from comment #5)
> upstream bug report here https://www.virtualbox.org/ticket/15329

Yeap this is my ticket, because I can't see any other action.
Comment 7 Konstantin (elxa) 2016-04-22 17:51:01 UTC
"This is a Gentoo bug! The Makefile of the 5.0.18 Guest Additions is quite different from the 5.0.16 Makefile. No vboxvideo_drm.o is built anymore."

https://www.virtualbox.org/ticket/15329#comment:2
Comment 8 Michal Jakubowski 2016-04-22 22:29:51 UTC
Lars, Could you respond ?
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-04-22 22:40:50 UTC
I've tried to work on a new Makefile but with no success yet. Unfortunately I became qite sick three days ago and I'm not in a condition to continue working on this issue yet.
But any patches are highly welcome.
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-04-26 09:02:07 UTC
*** Bug 581230 has been marked as a duplicate of this bug. ***
Comment 11 Frank Krömmelbein 2016-04-28 20:48:41 UTC
Upstream has released a new version today with many fixes:
VirtualBox 5.0.20 (released 2016-04-28)
https://www.virtualbox.org/wiki/Changelog

This is a maintenance release. The following items were fixed and/or added:

Storage: fixed a regression causing write requests from the BIOS to cause a Guru Meditation with the LsiLogic SCSI controller (5.0.18 regression; bug #15317)
Storage: several emulation fixes in the BusLogic SCSI controller emulation
NAT Network: support TCP in DNS proxy (same problem as in bug #14736 for NAT)
NAT: rework handling of port-forwarding rules (bug #13570)
NAT: rewrite host resolver to handle more query types and make it asynchronous so that a stalled lookup doesn't block all NAT traffic
Snapshots: don't crash when restoring a snapshot which has more network adapters than the current state (ie when the snapshot uses ICH9 and the current state uses PIIX3)
Guest Control: various bugfixes for the copyfrom and copyto commands / API (bug #14336)
VBoxManage: list processor features on list hostinfo (bug #15334)
Linux hosts: fix for Linux 4.5 if CONFIG_NET_CLS_ACT is enabled (bug #15327)
Windows hosts: another fix for recent Windows 10 insider builds (bug #15337)
Windows hosts: make it work on Windows XP again (5.0.18 regression)
Windows Additions: fixed performance issues with PowerPoint 2010 and the WDDM graphics drivers if Aero is disabled


With x11-drivers/xf86-video-virtualbox-5.0.16 we did not had this problem here...
Perhaps the update solves this problem here too...
Comment 12 Michal Jakubowski 2016-05-02 06:28:06 UTC
Any news on the battlefield ?
Comment 13 Jean-Claude Repetto 2016-05-03 10:02:20 UTC
xf86-video-virtualbox-5.0.18 has been removed from the tree.
Comment 14 Paolo Pedroni 2016-05-03 10:59:19 UTC
xf86-video-virtualbox-5.0.20 still fails, but with a different error.
Comment 15 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-05-04 04:48:40 UTC
Should be fixed in xf86-video-virtualbox-5.0.20
Please test.
Comment 16 Martin Wohlert 2016-05-04 06:18:45 UTC
Works for me totally fine. Thanks!
Comment 17 robert walter 2016-05-04 06:32:02 UTC
Same here, thanks!
Comment 18 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-05-04 07:04:15 UTC
Kudos to _AxS_ who did the real fixing here.
Comment 19 Michal Jakubowski 2016-05-04 09:00:26 UTC
Looks fine to me.

GentooZFS ~ # rc-status default | grep -i virtualbox-guest-additions
 virtualbox-guest-additions                                        [  started  ]
Comment 20 Oleksii 2016-05-07 01:24:18 UTC
Hello there! Really no, issue with version 20 exists.
I checked with 4.5.3-gentoo #1 SMP PREEMPT
When drm and ttm not enabled in kernel - alot of messages "undefined symbol"
whet drm and ttm enabled in kernel - another error:

vboxvideo: Unknown symbol __stack_chk_fail (err 0)

After compile x11-drivers/xf86-video-virtualbox  with CFLAGS="-fno-stack-protector -O2"  - next error: module: vboxvideo: Unknown rela relocation: 4

Control case: I restoren clean test os and installed "additions" from ISO guest CD. Working! 

[ 2657.402480] [drm] VRAM 02e00000
[ 2657.405478] [TTM] Zone  kernel: Available graphics memory: 4003012 kiB
[ 2657.406508] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[ 2657.407089] [TTM] Initializing pool allocator
[ 2657.407700] [TTM] Initializing DMA pool allocator
[ 2657.409317] fbcon: vboxdrmfb (fb0) is primary device
[ 2657.539395] Console: switching to colour frame buffer device 100x37
[ 2657.540421] vboxvideo 0000:00:02.0: fb0: vboxdrmfb frame buffer device
[ 2657.549449] [drm] Initialized vboxvideo 1.0.0 20130823 for 0000:00:02.0 on minor 1

Please, inform me what I need provide in order to get issue fixed?
I want install additions only from Portage in order to keep system.

Thanks!