Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Can't build virtualbox drivers [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
reub2000
Guru
Guru
Posts: 364
Joined: Sat Jan 31, 2004 5:41 am

Can't build virtualbox drivers [SOLVED]

  • Quote

Post by reub2000 » Mon Sep 01, 2014 4:20 pm

The emerge fails. I'm trying to build them against a a kernel built from genkernel.

Code: Select all

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) app-emulation/virtualbox-modules-4.3.14
 * vbox-kernel-module-src-4.3.14.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                 [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.14.14-gentoo/build
 * Found sources for kernel version:
 *     3.14.14-gentoo
>>> Unpacking source...
>>> Unpacking vbox-kernel-module-src-4.3.14.tar.xz to /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work
>>> Source unpacked in /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work
>>> Preparing source in /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work ...
ln: failed to create symbolic link 'Module.symvers': File exists
 * Preparing vboxdrv module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/3.14.14-gentoo/build all 
*** Building 'vboxdrv' module ***
make[1]: Entering directory `/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv'
make KBUILD_VERBOSE= SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv CONFIG_MODULE_SIG= -C /usr/src/linux modules
make[2]: Entering directory `/usr/src/linux-3.14.14-gentoo'

  WARNING: Symbol version dump /usr/src/linux-3.14.14-gentoo/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv/linux/SUPDrv-linux.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv/SUPDrv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv/SUPDrvSem.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv/SUPDrvTracer.o
/bin/sh: scripts/genksyms/genksyms: No such file or directory
make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv/r0drv/alloc-r0drv.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/bin/sh: scripts/genksyms/genksyms: No such file or directory
make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv/linux/SUPDrv-linux.o] Error 1
make[2]: *** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv] Error 2
make[2]: Leaving directory `/usr/src/linux-3.14.14-gentoo'
make[1]: *** [vboxdrv] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work/vboxdrv'
make: *** [all] Error 2
 * ERROR: app-emulation/virtualbox-modules-4.3.14::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-modules-4.3.14::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-4.3.14::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work'
 * S: '/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work'

>>> Failed to emerge app-emulation/virtualbox-modules-4.3.14, Log file:

>>>  '/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/temp/build.log'

 * Messages for package app-emulation/virtualbox-modules-4.3.14:

 * ERROR: app-emulation/virtualbox-modules-4.3.14::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-modules-4.3.14::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-modules-4.3.14::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work'
 * S: '/var/tmp/portage/app-emulation/virtualbox-modules-4.3.14/work'
And emerge --info

Code: Select all

Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-_i5-3330_CPU_@_3.00GHz-with-gentoo-2.2
KiB Mem:     8073632 total,   3213120 free
KiB Swap:    6143996 total,   6143996 free
Timestamp of tree: Mon, 01 Sep 2014 16:00:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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="-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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk iconv jpeg kde kipi lcms ldap libkms libnotify mad mmx mmx2 mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xml xscreensaver 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" 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="efi-64" 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="intel i965" 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, SYNC, USE_PYTHON
Last edited by reub2000 on Wed Sep 03, 2014 7:23 pm, edited 1 time in total.
Top
Princess Nell
l33t
l33t
User avatar
Posts: 947
Joined: Fri Apr 15, 2005 1:00 pm

  • Quote

Post by Princess Nell » Mon Sep 01, 2014 9:25 pm

The kernel source must be configured.
Top
reub2000
Guru
Guru
Posts: 364
Joined: Sat Jan 31, 2004 5:41 am

  • Quote

Post by reub2000 » Mon Sep 01, 2014 11:52 pm

Princess Nell wrote:The kernel source must be configured.
It has been configured. Is there a specific option that needs to be set?
Top
fernan82
n00b
n00b
Posts: 70
Joined: Thu Jul 24, 2014 9:37 pm

  • Quote

Post by fernan82 » Tue Sep 02, 2014 12:38 am

Is /usr/src/linux pointing to the right sources?
Top
reub2000
Guru
Guru
Posts: 364
Joined: Sat Jan 31, 2004 5:41 am

  • Quote

Post by reub2000 » Wed Sep 03, 2014 5:15 pm

fernan82 wrote:Is /usr/src/linux pointing to the right sources?
Yes, it points to the right place.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Sep 03, 2014 6:41 pm

reub2000,

/usr/src/linux/scripts/genksyms/genksyms is a piece of the kernel and should exist on your system ...
unless you have --depcleand your system recently and removed your kernel sources.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
reub2000
Guru
Guru
Posts: 364
Joined: Sat Jan 31, 2004 5:41 am

  • Quote

Post by reub2000 » Wed Sep 03, 2014 7:23 pm

NeddySeagoon wrote:reub2000,

/usr/src/linux/scripts/genksyms/genksyms is a piece of the kernel and should exist on your system ...
unless you have --depcleand your system recently and removed your kernel sources.
The source was there, but the executable wasn't there. genkernel must have run "make clean" when it was done. Running "make" in /usr/src/linux seems to have solved the problem.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic