Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554952 - app-emulation/virtualbox-guest-additions-5.0.0 fails to build
Summary: app-emulation/virtualbox-guest-additions-5.0.0 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal with 9 votes (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-15 11:59 UTC by Helmut Jarausch
Modified: 2015-09-02 14:35 UTC (History)
20 users (show)

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


Attachments
build log xz-compressed (virtualbox-guest-additions-5.0.0.build.xz,46.69 KB, application/octet-stream)
2015-07-15 12:01 UTC, Helmut Jarausch
Details
Config.kmk patch (hacky) (Config.kmk.diff,896 bytes, patch)
2015-07-16 22:49 UTC, Erik Fjeldstrom
Details | Diff
version.h patch (hacky) (version.h.diff,541 bytes, patch)
2015-07-16 22:50 UTC, Erik Fjeldstrom
Details | Diff
ellison_marks.patch (guest.patch,1.50 KB, patch)
2015-07-30 05:13 UTC, Alex Barker
Details | Diff
patched virtualbox ebuild (gotyaoi_ebuild.patch,4.14 KB, patch)
2015-08-10 18:36 UTC, Ellison Marks
Details | Diff
patched c99 patch (gotyaoi_c99.patch,536 bytes, patch)
2015-08-10 18:36 UTC, Ellison Marks
Details | Diff
patched virtualbox ebuild (gotyaoi_ebuild.patch,4.07 KB, patch)
2015-08-10 18:38 UTC, Ellison Marks
Details | Diff
patched virtualbox ebuild (file_554952.txt,4.08 KB, patch)
2015-08-11 23:30 UTC, Ellison Marks
Details | Diff
build log for unpatched package failing because of gcc-5.2.0 (virtualbox-guest-additions-5.0.0-gcc5.2.build,2.73 KB, text/plain)
2015-08-12 15:55 UTC, Helmut Jarausch
Details
xf86-video-virtualbox-5.0.0.ebuild (xf86-video-virtualbox-5.0.0.ebuild,4.60 KB, text/plain)
2015-08-13 20:39 UTC, Randy Andy
Details
virtualbox-guest-additions-5.0.0.ebuild (virtualbox-guest-additions-5.0.0.ebuild,5.85 KB, text/plain)
2015-08-13 20:40 UTC, Randy Andy
Details
Patch for virtualbox-guest-additions-5.0.0.ebuild (patch,969 bytes, patch)
2015-08-16 11:29 UTC, Alex Buell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2015-07-15 11:59:39 UTC
emerging virtualbox-guest-additions-5.0.0 fails with

kmk: *** No rule to make target `/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/VirtualBox-5.0.0/out/linux.amd64/release/lib/additions/VBoxDnDGuestR3Lib.a', needed by `/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/VirtualBox-5.0.0/out/linux.amd64/release/obj/VBoxControl/VBoxControl'.  Stop.


emerge --info app-emulation/virtualbox-guest-additions
gives

Portage 2.2.20 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop, gcc-5.1.0, glibc-2.20-r2, 4.2.0-rc2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.0-rc2-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.2
KiB Mem:     7906160 total,   1220336 free
KiB Swap:    2097148 total,   2047348 free
Timestamp of repository gentoo: Wed, 15 Jul 2015 06:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
ccache version 3.2.2 [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.2::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.2::gentoo, 5.1.0::local, 5.2.0_alpha20150630::local, 6.0.0_alpha20150628::local
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

java
    location: /usr/local/portage/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

lisp
    location: /usr/local/portage/layman/lisp
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/lisp.git
    masters: gentoo
    priority: 50

qt
    location: /usr/local/portage/layman/qt
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

science
    location: /usr/local/portage/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

sunrise
    location: /usr/local/portage/layman/sunrise
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/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="-mtune=native -O2 -msse3 -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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp glamor gpm gtk gtk3 iconv ipv6 jpeg lapack lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds python qt qt3support qt4 qt5 readline sdl session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg systemd tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xulrunner 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow mmx 3dnowext mmxext popcnt sse sse2 sse3 sse4a" 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" GRUB_PLATFORMS="pc multiboot" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-emulation/virtualbox-guest-additions-4.3.26::gentoo was built with the following:
USE="X" ABI_X86="64"
Comment 1 Helmut Jarausch 2015-07-15 12:01:12 UTC
Created attachment 406848 [details]
build log  xz-compressed
Comment 2 Jean-Claude Repetto 2015-07-15 13:00:53 UTC
Same problem here.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-07-15 16:35:12 UTC
I still haven't figured out how to fix this properly. Patches are highly welcome!
Comment 4 Randy Andy 2015-07-16 16:55:34 UTC
Same here,

on x86 and x86_64 (amd64) arch.
Comment 5 Erik Fjeldstrom 2015-07-16 22:49:55 UTC
Created attachment 406944 [details, diff]
Config.kmk patch (hacky)

Removes Drag and drop functionality from the guest additions.
Comment 6 Erik Fjeldstrom 2015-07-16 22:50:47 UTC
Created attachment 406946 [details, diff]
version.h patch (hacky)

Removes an #error define in the version string definition.
Comment 7 Erik Fjeldstrom 2015-07-16 22:53:20 UTC
I was able to get the additions to build and install by removing the drag and drop settings and a version define. It's very hacky but it is working on a test server with the "-X" USE flag; I tried mounting a host folder and enumerating the guest properties and everything seems to work fine for me.

emerge --info:
Portage 2.2.20 (python 3.3.5-final-0, hardened/linux/amd64/no-multilib, gcc-5.1.0, glibc-2.20-r2, 4.1.2-gentoo x86_64)
=================================================================
System uname: Linux-4.1.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-3612QM_CPU_@_2.10GHz-with-gentoo-2.2
KiB Mem:     2056016 total,   1883692 free
KiB Swap:     851964 total,    851964 free
Timestamp of repository gentoo: Thu, 16 Jul 2015 20:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            5.1.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

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

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://gentoo-asus/gentoo-portage
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -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 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.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 bzip2 cli cracklib crypt cxx dri gdbm hardened iconv iproute2 ipv6 justify mmx mmxext modules ncurses nls nptl openmp pam pax_kernel pcre pie readline session sse sse2 ssl ssp ssse3 systemd tcpd unicode urandom xattr xtpax 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="mmx mmxext sse sse2 sse3 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_3" RUBY_TARGETS="ruby19 ruby20" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 8 email200202 2015-07-17 01:49:05 UTC
Same here, on ~x86 and ~x86_64 (amd64) arch.
Comment 9 Alex Barker 2015-07-26 16:30:38 UTC
I believe this ebuild also requires libXmu with USE="-X"
Comment 10 Ellison Marks 2015-07-30 00:28:41 UTC
I managed to get things to compile, though I'm not sure if all of my changes were necessary or if so, why they were necessary. The main changes were unsetting VBOX_WITH_X11_ADDITIONS in the LocalConfig file and just compiling from the root, not the individual folders. I just modified LocalConfig and put it in a local overlay, but it needs to be contingent on the X flag, I think.

diff /usr/portage/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5-localconfig files/virtualbox-guest-additions-5-localconfig
27a28
> VBOX_WITH_X11_ADDITIONS    :=

# diff /usr/portage/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.0.0.ebuild virtualbox-guest-additions-5.0.0.ebuild
83c83
<       for vboxheader in {product,revision}-generated.h ; do
---
>       # needed the version-generated file as well. Not sure why
>       for vboxheader in {version,product,revision}-generated.h ; do
113,126c113,116
<       for each in /src/VBox/{Runtime,Additions/common} \
<               /src/VBox/Additions/linux/sharedfolders ; do
<                       cd "${S}"${each} || die
<                       MAKE="kmk" \
<                       emake TOOL_YASM_AS=yasm \
<                       KBUILD_VERBOSE=2
<       done
<
<       if use X; then
<               cd "${S}"/src/VBox/Additions/x11/VBoxClient || die
<               MAKE="kmk" \
<               emake TOOL_YASM_AS=yasm \
<               KBUILD_PATH="${S}/kBuild"
<       fi
---
>       #just let kbuild take care of what to include, right?
>       cd "${S}" || die
>       MAKE="kmk" \
>       emake TOOL_YASM_AS=yasm \
>       KBUILD_VERBOSE=2
Comment 11 Alex Barker 2015-07-30 04:55:25 UTC
(In reply to Ellison Marks from comment #10)
> I managed to get things to compile, though I'm not sure if all of my changes
> were necessary or if so, why they were necessary. The main changes were
> unsetting VBOX_WITH_X11_ADDITIONS in the LocalConfig file and just compiling
> from the root, not the individual folders. I just modified LocalConfig and
> put it in a local overlay, but it needs to be contingent on the X flag, I
> think.
> 

Could not duplicate on USE="-X" headless amd64 box.
Comment 12 Alex Barker 2015-07-30 05:13:37 UTC
Created attachment 407970 [details, diff]
ellison_marks.patch

Sorry, typo in applying the diff.  I have attached a diff if anyone wants to patch.
Comment 13 Josh Holmer 2015-07-30 15:45:15 UTC
(In reply to Alex Barker from comment #12)
> Created attachment 407970 [details, diff] [details, diff]
> ellison_marks.patch
> 
> Sorry, typo in applying the diff.  I have attached a diff if anyone wants to
> patch.

I was unable to build with this patch (with USE="X"):

>>> Install virtualbox-guest-additions-5.0.0 into /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/image/ category app-emulation
 * Installing vboxguest module
 * Installing vboxsf module
install: cannot stat ‘VBoxClient’: No such file or directory
!!! doins: VBoxClient does not exist
 * ERROR: app-emulation/virtualbox-guest-additions-5.0.0::FixVirtualbox failed (install phase):
 *   doins failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-guest-additions-5.0.0::FixVirtualbox'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-guest-additions-5.0.0::FixVirtualbox'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/VirtualBox-5.0.0/out/linux.amd64/release/bin/additions'
 * S: '/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/VirtualBox-5.0.0'
 * QA Notice: file does not exist:
 * 
 * 	doins: VBoxClient does not exist

>>> Failed to emerge app-emulation/virtualbox-guest-additions-5.0.0
Comment 14 Ellison Marks 2015-07-30 17:12:28 UTC
Yes, sorry, the patch only works for USE="-X". My ebuild skills are rudimentary, and the

VBOX_WITH_X11_ADDITIONS    :=

Line needs to be included conditional to the X use flag being off. There may also be other things that don't work, which I was unable to test.
Comment 15 naed 2015-08-01 04:44:40 UTC
Im having the same issue as the others in this thread. 

Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 3.18.7-gentoo x86_64)
=================================================================
System uname: Linux-3.18.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-3720QM_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:    32558536 total,  12139604 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 31 Jul 2015 18:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::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: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Comment 16 Ellison Marks 2015-08-10 18:36:00 UTC
Created attachment 408746 [details, diff]
patched virtualbox ebuild

Ok, I ended up doing a bit more work on this, and changed it so that it should work for both X and -X. I stripped out a lot of stuff that seemed like it was no longer necessary as well.
Comment 17 Ellison Marks 2015-08-10 18:36:49 UTC
Created attachment 408748 [details, diff]
patched c99 patch

Needed to change the path to apply the c99 patch to.
Comment 18 Ellison Marks 2015-08-10 18:38:13 UTC
Created attachment 408750 [details, diff]
patched virtualbox ebuild

Sorry, little typo.
Comment 19 Helmut Jarausch 2015-08-11 15:05:46 UTC
(In reply to Ellison Marks from comment #18)
> Created attachment 408750 [details, diff] [details, diff]
> patched virtualbox ebuild
> 

Unfortunately, I cannot build this package even with this patched ebuild file.
There are several problems:

1) The package checks for gcc version < 5.2.0 but this can be lifted by patching
   configure

2) The upcoming kernel 4.2.0 (currently rc6) has dropped the definitions of
   nd_set_link and nd_get_link which are used in 
   src/VBox/Additions/linux/sharedfolders/lnkops.c

   The definitions could be added but probably the module won't load
   later on.

3) With 1) and 2) fixed it still fails with
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/temp/environment: line 2583: cd: /var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/virtualbox-guest-additions-5.0.0/out/linux.x86/release/bin/additions/src/vboxguest: No such file or directory

which is strange since the package is unpacked into 
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/VirtualBox-5.0.0

I cannot fix this one,
Helmut
Comment 20 Ellison Marks 2015-08-11 17:38:38 UTC
Given that 5.2.0 is hard masked at the moment, I'm not sure what the official policy is towards ebuild failures related to it.

The kernel thing is still in rc, So I guess we wait and see what Oracle will do about that?

Can you please attach your build.log from the failed build?
Comment 21 Ellison Marks 2015-08-11 23:30:41 UTC
Created attachment 408828 [details, diff]
patched virtualbox ebuild

Wait...
*facepalm*
You're on x64, right? I accidentally hardcoded the architecture into a path. Try this updated patch.
Comment 22 b9AcE 2015-08-12 14:32:33 UTC
I have not checked what is different between the two, but in the layman overlay "stefantalpalaru" (https://github.com/stefantalpalaru/gentoo-overlay) there is a app-emulation/virtualbox-guest-additions-5.0.0-r1 which compiled fine on my Funtoo VirtualBox machine.
It also pulled in x11-drivers/xf86-video-virtualbox-5.0.0-r1 from the same overlay.
Maybe those changes can be pulled into the official gentoo package?
Comment 23 Helmut Jarausch 2015-08-12 15:55:58 UTC
Created attachment 408884 [details]
build log for unpatched package failing because of gcc-5.2.0

After applying the patch
--- configure.ORIG	2015-07-15 09:29:05.961783438 +0200
+++ configure	2015-07-15 09:34:28.824786598 +0200
@@ -422,7 +422,7 @@
              -o \( $cc_maj -eq 3 -a $cc_min -lt 2 \) \
              -o \( $cc_maj -eq 4 -a $cc_min -lt 1 -a "$OS" != "darwin" \) \
              -o \( $cc_maj -eq 4 -a $cc_min -gt 9 \) \
-             -o \( $cc_maj -eq 5 -a $cc_min -gt 1 \) \
+             -o \( $cc_maj -eq 5 -a $cc_min -gt 2 \) \
              -o $cc_maj -gt 5 ]; then
         log_failure "gcc version $cc_maj.$cc_min found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<10 or gcc 5.1"
         fail really

the package compiles until it fails because of the errors reported earlier, e.g.
the missing kernel functions (in kernel 4.2.0-rc?)
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/VirtualBox-5.0.0/src/VBox/Additions/linux/sharedfolders/lnkops.c: In function 'sf_follow_link':
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/VirtualBox-5.0.0/src/VBox/Additions/linux/sharedfolders/lnkops.c:43:5: error: implicit declaration of function 'nd_set_link' [-Werror=implicit-function-declaration]
     nd_set_link(nd, error ? ERR_PTR(error) : path);
     ^
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/VirtualBox-5.0.0/src/VBox/Additions/linux/sharedfolders/lnkops.c: In function 'sf_put_link':
/var/tmp/portage/app-emulation/virtualbox-guest-additions-5.0.0/work/VirtualBox-5.0.0/src/VBox/Additions/linux/sharedfolders/lnkops.c:49:18: error: implicit declaration of function 'nd_get_link' [-Werror=implicit-function-declaration]

The packages
app-emulation/virtualbox
app-emulation/virtualbox-additions
app-emulation/virtualbox-extpack-oracle
app-emulation/virtualbox-modules

build just fine with the patched configure under kernel 4.2-rc? and with gcc-5.2.0. And running virtualbox does work just fine.
Comment 24 Randy Andy 2015-08-12 16:04:23 UTC
I've checked the ebuild for differences, hole crap, never seen that before.
I'm not a web programmer, so I'm not sure if the code does nasty things, but if you take a look into the ebuild code, you'll find three times more html code than into the belonging ebuild!
The tricky thing, its hidden when you open it with a browser, instead of an editor!
Lots of references there to google analytics, flash containers, etc. etc.


So I took over only the raw code, compared it with the native ebuild, then the remaining differences seems to be small and not critical. It reflects some EAPI5 changes in the ebuild syntax to me.

Creating my own ebuilds with this and for x11-drivers/xf86-video-virtualbox too, compiles fine here too and seems to work also.

Eventually someone could check this html code inside and could give all-clear.
Comment 25 Ellison Marks 2015-08-12 17:42:35 UTC
@B9Ace Offhand, that ebuild looks like it would fail for USE="-X".

@Helmut Sorry, I'm a little bit confused. Are you saying that you can get the ebuild in the tree to build for you only by patching the configure, as long as the kernel version is right? In other words, I'm not clear on exactly which patches you are applying.
Comment 26 b9AcE 2015-08-13 18:23:00 UTC
(In reply to Ellison Marks from comment #25)
> @B9Ace Offhand, that ebuild looks like it would fail for USE="-X".

I did this and it worked just fine:
USE="-X" \/usr/bin/emerge -v1a x11-drivers/xf86-video-virtualbox::stefantalpalaru app-emulation/virtualbox-guest-additions::stefantalpalaru

Still on Funtoo, freshly installed. Using the dist's current default kernel "sys-kernel/debian-sources-3.19.3" and "sys-devel/gcc-4.9.2-r2".
Comment 27 Randy Andy 2015-08-13 20:39:38 UTC
Created attachment 408956 [details]
xf86-video-virtualbox-5.0.0.ebuild
Comment 28 Randy Andy 2015-08-13 20:40:38 UTC
Created attachment 408958 [details]
virtualbox-guest-additions-5.0.0.ebuild
Comment 29 Randy Andy 2015-08-13 20:43:15 UTC
Both attached ebuilds compiles here fine with gcc-4.9.3 and gentoo-sources-4.1.5
I overwrote my existing ones and created a new manifest to use it.
Comment 30 Ellison Marks 2015-08-14 18:12:38 UTC
(In reply to b9AcE from comment #26)
> (In reply to Ellison Marks from comment #25)
> > @B9Ace Offhand, that ebuild looks like it would fail for USE="-X".
> 
> I did this and it worked just fine:
> USE="-X" \/usr/bin/emerge -v1a
> x11-drivers/xf86-video-virtualbox::stefantalpalaru
> app-emulation/virtualbox-guest-additions::stefantalpalaru
> 
> Still on Funtoo, freshly installed. Using the dist's current default kernel
> "sys-kernel/debian-sources-3.19.3" and "sys-devel/gcc-4.9.2-r2".

Ah, but you have X on normally, right? So I think you already have the necessary dependencies installed to build with X. In my case it fails to compile due to missing X related dependencies. That's why my ebuild disables VBOX_WITH_X11_ADDITIONS in the case of -X.
Comment 31 Alex Buell 2015-08-16 11:13:53 UTC
This seems to be an issue with building on Gentoo

From:
https://forums.virtualbox.org/viewtopic.php?f=15&t=68066&start=15

Re: kmk: *** No rule to make target ... VBoxDnDGuestR3Lib.a

Postby Frank Mehnert » 5. Jun 2015, 11:25
Thanks. Actually the build script is wrong:

Code: Select all   Expand view
    src_compile() {
            for each in /src/VBox/{Runtime,Additions/common} \
                    /src/VBox/Additions/linux/sharedfolders ; do
                            cd "${S}"${each} || die
                            MAKE="kmk" \
                            emake TOOL_YASM_AS=yasm \
                            KBUILD_VERBOSE=2
            ....


The correct way to build the Guest Additions is to call

Code: Select all   Expand view
    kmk VBOX_ONLY_ADDITIONS=1


from the root of the source tree.

To say it explicitly: This is a bug in the Gentoo script, not a bug in the VirtualBox tarball.
Comment 32 Alex Buell 2015-08-16 11:29:29 UTC
Created attachment 409138 [details, diff]
Patch for virtualbox-guest-additions-5.0.0.ebuild
Comment 33 Alex Buell 2015-08-16 11:31:35 UTC
There is also a new release of VirtualBox - 5.0.2, maybe the fix can be added when it is imported into the tree.
Comment 34 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-08-17 09:31:57 UTC
Should be fixed with =app-emulation/virtualbox-guest-additions-5.0.2

Sorry for the long delay and thanks for all the suggestions how this can be fixed.
Comment 35 abandoned account disabled email 2015-09-02 09:56:45 UTC
Lars, would you please consider adding the 'epatch_user' call for all virtualbox packages ? (eg. xf86-video-virtualbox, virtualbox-guest-additions)  
I'm currently adding it(at end of src_prepare) via an /etc/portage/postsync.d/ hook after each emerge-webrsync
Thanks.

PS: the virtualbox-5.0.2 package seems to have it already though.