Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
app-emulation/virtualbox-modules-5.1.26 fails to emerge
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
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 208
Location: Warsaw, Poland

PostPosted: Thu Sep 14, 2017 2:58 pm    Post subject: app-emulation/virtualbox-modules-5.1.26 fails to emerge Reply with quote

Hello,

I've been trying to emerge virtualbox-modules in all versions available in portage, but ebuilds always fail like this:

Code:
 * Package:    app-emulation/virtualbox-modules-5.1.26
 * Repository: gentoo
 * Maintainer: polynomial-c@gentoo.org masterzorag@gmail.com
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux pax_kernel userland_GNU
 * FEATURES:   ccache preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.12.5-gentoo/build
 * Found sources for kernel version:
 *     4.12.5-gentoo
 * Checking for suitable kernel configuration options...
 [ ok ]
>>> Unpacking source...
>>> Unpacking vbox-kernel-module-src-5.1.26.tar.xz to /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work
>>> Source unpacked in /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work
>>> Preparing source in /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work ...
 * Applying virtualbox-modules-4.1.4-pax-const.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work ...
>>> Source configured.
>>> Compiling source in /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work ...
ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing vboxdrv module
make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERN_DIR=/usr/src/linux O=/lib/modules/4.12.5-gentoo/build V=1 KBUILD_VERBOSE=1 all
=== Building 'vboxdrv' module ===
make[1]: Entering directory '/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv'
make KBUILD_VERBOSE=1 SUBDIRS=/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv SRCROOT=/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv CONFIG_MODULE_SIG= -C /usr/src/linux -j2 modules
make[2]: Entering directory '/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
make -C /usr/src/linux-4.12.5-gentoo KBUILD_SRC=/usr/src/linux-4.12.5-gentoo \
-f /usr/src/linux-4.12.5-gentoo/Makefile modules
make[3]: Entering directory '/usr/src/linux-4.12.5-gentoo'
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 /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/.tmp_versions ; rm -f /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/.tmp_versions/*
make -f /usr/src/linux-4.12.5-gentoo/scripts/Makefile.build obj=/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include -I/usr/src/linux-4.12.5-gentoo/arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I/usr/src/linux-4.12.5-gentoo/include -I./include -I/usr/src/linux-4.12.5-gentoo/arch/x86/include/uapi -I/usr/src/linux-4.12.5-gentoo/include/uapi -I./include/generated/uapi -include /usr/src/linux-4.12.5-gentoo/include/linux/kconfig.h  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -fplugin=./scripts/gcc-plugins/structleak_plugin.so -DSTRUCTLEAK_PLUGIN -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -include /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/include/VBox/SUPDrvMangling.h  -I/usr/src/linux/include  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/include  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/r0drv/linux  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/vboxdrv/  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/vboxdrv/include  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -fno-omit-frame-pointer -fno-pie  -DMODULE  -DKBUILD_BASENAME='"SUPDrv_linux"'  -DKBUILD_MODNAME='"vboxdrv"' -c -o /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/linux/.tmp_SUPDrv-linux.o /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/linux/SUPDrv-linux.c
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/.SUPDrv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include -I/usr/src/linux-4.12.5-gentoo/arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I/usr/src/linux-4.12.5-gentoo/include -I./include -I/usr/src/linux-4.12.5-gentoo/arch/x86/include/uapi -I/usr/src/linux-4.12.5-gentoo/include/uapi -I./include/generated/uapi -include /usr/src/linux-4.12.5-gentoo/include/linux/kconfig.h  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -fplugin=./scripts/gcc-plugins/structleak_plugin.so -DSTRUCTLEAK_PLUGIN -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -include /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/include/VBox/SUPDrvMangling.h  -I/usr/src/linux/include  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/include  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/r0drv/linux  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/vboxdrv/  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/vboxdrv/include  -I/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -fno-omit-frame-pointer -fno-pie  -DMODULE  -DKBUILD_BASENAME='"SUPDrv"'  -DKBUILD_MODNAME='"vboxdrv"' -c -o /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/.tmp_SUPDrv.o /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/SUPDrv.c
In file included from /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/SUPDrvInternal.h:119:0,
                 from /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/SUPDrv.c:33:
/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/SUPDrvIDC.h:163:22: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘Out’
         } __no_const Out;
                      ^
/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/SUPDrv.c: In function ‘supdrvIDC_LdrGetSymbol’:
/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/SUPDrv.c:5470:24: error: ‘union <anonymous>’ has no member named ‘Out’
                 pReq->u.Out.pfnSymbol = (PFNRT)(uintptr_t)g_aFunctions[i].pfn;
                        ^
/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/SUPDrv.c:5501:28: error: ‘union <anonymous>’ has no member named ‘Out’
                     pReq->u.Out.pfnSymbol = (PFNRT)((uintptr_t)pImage->pvImage + (int32_t)paSyms[i].offSymbol);
                            ^
make[4]: *** [/usr/src/linux-4.12.5-gentoo/scripts/Makefile.build:302: /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/SUPDrv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/linux/../SUPDrvInternal.h:119:0,
                 from /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/linux/SUPDrv-linux.c:32:
/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/linux/../SUPDrvIDC.h:163:22: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘Out’
         } __no_const Out;
                      ^
make[4]: *** [/usr/src/linux-4.12.5-gentoo/scripts/Makefile.build:302: /mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv/linux/SUPDrv-linux.o] Error 1
make[3]: *** [/usr/src/linux-4.12.5-gentoo/Makefile:1515: _module_/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv] Error 2
make[3]: Leaving directory '/usr/src/linux-4.12.5-gentoo'
make[2]: *** [Makefile:152: sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-4.12.5-gentoo'
make[1]: *** [Makefile:305: vboxdrv] Error 2
make[1]: Leaving directory '/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work/vboxdrv'
make: *** [Makefile:41: all] Error 2
 * ERROR: app-emulation/virtualbox-modules-5.1.26::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-modules-5.1.26::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-5.1.26::gentoo'`.
 * The complete build log is located at '/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/temp/build.log'.
 * The ebuild environment file is located at '/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/temp/environment'.
 * Working directory: '/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work'
 * S: '/mnt/var-tmp-portage/portage/app-emulation/virtualbox-modules-5.1.26/work'


My emerge --info:

Code:
Portage 2.3.6 (python 2.7.12-final-0, hardened/linux/amd64/no-multilib, gcc-5.4.0, glibc-2.23-r4, 4.12.5-gentoo x86_64)
=================================================================
System uname: Linux-4.12.5-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6420_@_2.13GHz-with-gentoo-2.3
KiB Mem:     2042428 total,     89440 free
KiB Swap:    1984508 total,   1347752 free
Timestamp of repository gentoo: Wed, 13 Sep 2017 14:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

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

JPrepo
    location: /var/lib/JPrepo
    masters: gentoo
    priority: 0

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

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA RAR"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
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 -pipe -march=native"
DISTDIR="/mnt/j/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache 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 -march=native"
GENTOO_MIRRORS="http://104.25.5.23/gentoo/ http://104.25.4.23/gentoo/ http://gentoo.prz.rzeszow.pl http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.leaseweb.com/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://mirror.netcologne.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
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="/mnt/var-tmp-portage"
USE="acl amd64 avahi berkdb bzip2 cgroups cjk cli cracklib crypt cups cxx dbus dri dri3 fam fontconfig gdbm geoip glib hardened harfbuzz http2 iconv icu iproute2 ipv6 jit jpeg justify logrotate memcached mmx modules ncurses nls nptl openmp opus pam pax_kernel pcre pdf pie png postproc readline samba scanner seccomp session smp sse sse2 ssl ssp tcpd threads tiff udev unicode urandom xattr xfs xtpax zeroconf 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 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="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="php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i915" 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_RSYNC_EXTRA_OPTS


Both include/generated/autoconf.h and include/config/auto.conf exist. Does anyone else have a similar problem? I checked the forum and bugzilla, but most of the errors reported there seem to stem from some problems with kernel sources, symlinks to kernel sources or incompatibility between earlier versions of virtualbox-modules and current (4.12.5) stable sources.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16272
Location: here

PostPosted: Thu Sep 14, 2017 3:21 pm    Post subject: Reply with quote

The problem is pax_kernel use flag, see the related bug
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Dragonlord
Guru
Guru


Joined: 22 Aug 2004
Posts: 382
Location: Switzerland

PostPosted: Wed Oct 11, 2017 4:36 pm    Post subject: Reply with quote

I see the same problem and I'm not using a pax kernel (vanilla kernel).
_________________
Leader and Head Programmer: Epsylon, Drag[en]gine and others
Back to top
View user's profile Send private message
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 208
Location: Warsaw, Poland

PostPosted: Wed Oct 11, 2017 4:41 pm    Post subject: Reply with quote

Please try this:
Code:
USE=-pax_kernel emerge -1 virtualbox-modules
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16272
Location: here

PostPosted: Wed Oct 11, 2017 5:25 pm    Post subject: Reply with quote

Dragonlord wrote:
I see the same problem and I'm not using a pax kernel (vanilla kernel).

It's not a problem of kernel you use, but relative at use flag of package. Try command that paluszak suggests
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Oniryczny
Guru
Guru


Joined: 01 Dec 2011
Posts: 345
Location: Poznań, PL

PostPosted: Thu Oct 12, 2017 2:28 pm    Post subject: Reply with quote

on my 4.1.15-x86_64
Code:

$ eix -I virtualbox-modules
[?] app-emulation/virtualbox-modules
     Available versions:  [M]~5.0.16 [m]5.0.40 [m]~5.1.24 [m]~5.1.26 {pax_kernel KERNEL="linux"}
     Installed versions:  5.1.26(10:29:32 19.09.2017)(-pax_kernel KERNEL="linux")
     Homepage:            http://www.virtualbox.org/
     Description:         Kernel Modules for Virtualbox

$

Works properly
_________________
cogito ergo sum
Back to top
View user's profile Send private message
C5ace
Apprentice
Apprentice


Joined: 23 Dec 2013
Posts: 178
Location: Brisbane, Australia

PostPosted: Fri Oct 13, 2017 11:10 am    Post subject: Reply with quote

I use VirtualBox on 4 diferent PC's.

Kernel: 4.12.12 Genkernel
Desktop: Xfce 4.12
VirtualBox: 5.1.26
/etc/portage/make.conf:
Code:

...
ACCEPT_LICENSE="*"
USE="-kde -gnome -qt -ipv6 -bluetooth -systemd gtk"
XFCE_PLUGINS="brightness clock trash"
...


VirtualBox:
Code:
eix -I virtualbox
[?] app-emulation/virtualbox
     Available versions:  [M]4.3.28 [M]4.3.32 [M]~4.3.34 [M]~5.0.12 [M]~5.0.14 {+additions alsa doc extensions headless java libressl +opengl pam pulseaudio python +qt4 +sdk +udev vboxwebsrv vnc ELIBC="FreeBSD" PYTHON_TARGETS="python2_7"}
     Installed versions:  5.1.26(18:48:27 03/09/17)(alsa opengl pam qt5 sdk udev -debug -doc -headless -java -libressl -lvm -pax_kernel -pulseaudio -python -vboxwebsrv -vnc ELIBC="-FreeBSD" PYTHON_TARGETS="python2_7")
     Homepage:            http://www.virtualbox.org/
     Description:         Family of powerful x86 virtualization products for enterprise as well as home use

[?] app-emulation/virtualbox-additions
     Available versions:  [M]4.3.28^m [M]4.3.32^m [M]~4.3.34^m [M]~5.0.12^m [M]~5.0.14^m
     Installed versions:  5.1.26^m(16:48:47 03/09/17)
     Homepage:            http://www.virtualbox.org/
     Description:         CD image containing guest additions for VirtualBox

[?] app-emulation/virtualbox-extpack-oracle
     Available versions:  [M]4.3.28.100309^ms [M]4.3.32.103443^ms [M]~4.3.34.104062^ms [M]~5.0.12.104815^ms [M]~5.0.14.105127^ms
     Installed versions:  5.1.26.117224^ms(18:49:05 03/09/17)
     Homepage:            http://www.virtualbox.org/
     Description:         PUEL extensions for VirtualBox

[?] app-emulation/virtualbox-modules
     Available versions:  [M]4.3.28 [M]4.3.32 [M]~4.3.34 [M]~5.0.12 [M]~5.0.14 {pax_kernel KERNEL="linux"}
     Installed versions:  5.1.26(22:21:22 15/09/17)(-pax_kernel KERNEL="linux")
     Homepage:            http://www.virtualbox.org/
     Description:         Kernel Modules for Virtualbox

Found 4 matches


/etc/conf.d/modules:
Code:

...
modules="vboxdrv vboxnetadp vboxnetflt"


Procedure:
Code:
 unmerge VirtualBox and all VirtualBox modules and extras.

delete all VirtualBox and related flags, keywords.etc. from /etc/portage/

emerge --sync
emerge --update --deep --with-bdeps=y --newuse --backtrack=300 --changed-deps=y --keep-going=y @world -va

emerge --depclean
revdep-rebuild

delete /usr/src/*
delete /etc/kernels/*
delete /lib64/modules/*

emerge -av =gentoo-sources-4.12.12
genkernel all

Fix boot loader to match kernel-4.12.12

reboot


Check that all is working fine.

Now install VirtualBox:
Code:

emerge -av app-emulation/virtualbox app-emulation/virtualbox-additions app-emulation/virtualbox-extpack-oracle app-emulation/virtualbox-modules

add this line to /etc/conf.d/modules:
modules="vboxdrv vboxnetadp vboxnetflt"

useradd -m -G vboxusers -s /bin/bash "your user name"


reboot, login as user and start the VirtualBox GUI.
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