virtualbox-ose-kmod fails to build in kernel epilogue

Scott Bennett bennett at
Sun Jul 12 11:07:04 UTC 2015

     In /etc/src.conf, I have

PORTS_MODULES=x11/nvidia-driver-340  emulators/virtualbox-ose-kmod

but when I build my kernel, x11/nvidia-driver-340 gets built with no trouble,
yet emulators/virtualbox-ose-kmod fails to build.

===>  Staging for nvidia-driver-340-340.76
===>   nvidia-driver-340-340.76 depends on file: /compat/linux/etc/redhat-release - found
===>   nvidia-driver-340-340.76 depends on package: libGL>0 - found
===>   nvidia-driver-340-340.76 depends on file: /usr/local/libdata/pkgconfig/xorg-server.pc - found
===>   Generating temporary packing list
===> src (install)
sh /usr/src/tools/ -o root -g wheel -m 555   nvidia.ko /buildwork/ports/usr/ports/x11/nvidia-driver-340/work/stage/boot/modules
===> lib (install)
===> lib/libGL (install)
===> lib/libnvidia-tls (install)
===> lib/libnvidia-cfg (install)
===> lib/libnvidia-glcore (install)
===> lib/libvdpau_nvidia (install)
===> lib/libnvidia-eglcore (install)
===> lib/libnvidia-glsi (install)
===> lib/libEGL (install)
===> lib/libGLESv2 (install)
===> lib/libGLESv1_CM (install)
===> lib/compat (install)
===> lib/compat/libGL (install)
===> lib/compat/libnvidia-tls (install)
===> lib/compat/libnvidia-glcore (install)
===> lib/compat/libvdpau (install)
===> lib/compat/libvdpau_trace (install)
===> lib/compat/libvdpau_nvidia (install)
===> lib/compat/libcuda (install)
===> lib/compat/libnvidia-eglcore (install)
===> lib/compat/libnvidia-glsi (install)
===> lib/compat/libEGL (install)
===> lib/compat/libGLESv2 (install)
===> lib/compat/libGLESv1_CM (install)
===> x11 (install)
===> x11/driver (install)
===> x11/extension (install)
===> doc (install)
====> Compressing man pages (compress-man)
===> Ports module emulators/virtualbox-ose-kmod (all)
cd ${PORTSDIR:-/usr/ports}/emulators/virtualbox-ose-kmod; PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin  SRC_BASE=/usr/src  OSVERSION=1001519  WRKDIRPREFIX=/buildwork/ports make -B clean all
===>  Cleaning for virtualbox-ose-kmod-4.3.30
===>  License GPLv2 accepted by the user
===>  Found saved configuration for virtualbox-ose-kmod-4.3.20
===>   virtualbox-ose-kmod-4.3.30 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by virtualbox-ose-kmod-4.3.30 for building
===>  Extracting for virtualbox-ose-kmod-4.3.30
=> SHA256 Checksum OK for VirtualBox-4.3.30.tar.bz2.
===>  Patching for virtualbox-ose-kmod-4.3.30
===>  Applying FreeBSD patches for virtualbox-ose-kmod-4.3.30
===>   virtualbox-ose-kmod-4.3.30 depends on executable: kmk - found
===>  Configuring for virtualbox-ose-kmod-4.3.30
===>   FreeBSD 10 autotools fix applied to /buildwork/ports/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.30/src/libs/libxml2-2.6.31/configure
===>   FreeBSD 10 autotools fix applied to /buildwork/ports/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.30/src/libs/libxml2-2.6.31/aclocal.m4

Unrecognized option "--sysroot=/usr/obj/usr/src/tmp"

Usage: ./configure [OPTIONS]...

  -h, --help               display this help and exit
  --nofatal                don't abort on errors
  --disable-java           disable java bindings
  --disable-vmmraw         disable VMM raw mode (VT-x/AMD-V mandatory!)
  --disable-kmods          don't build Linux kernel modules (host and guest)
  --enable-webservice      enable the webservice stuff
  --enable-vnc             enable the VNC server
  --enable-vde             enable VDE networking
  --disable-udptunnel      disable UDP tunnel networking
  --disable-devmapper      disable device mapper library access
  --disable-hardening      don't be strict about /dev/vboxdrv access
  --build-libxml2          build libxml2 from sources
  --setup-wine             setup a Wine directory and register the hhc hack

  --with-gcc=PATH          location of the gcc compiler [/usr/local/libexec/ccache/world/cc]
  --with-g++=PATH          location of the g++ compiler [g++]
  --with-kbuild=DIR        kbuild directory [/buildwork/ports/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.30/kBuild]
  --with-iasl=PATH         location of the iasl compiler [iasl]
  --with-mkisofs=PATH      location of mkisofs [mkisofs]
  --with-makeself=PATH     location of makeself [makeself]
  --with-openssl-dir=DIR   directory for OpenSSL headers/libraries
  --with-ow-dir=DIR        directory where Open Watcom can be found []
  --out-path=PATH          the folder to which configuration and build output
                           should go

Build type:
  -d, --build-debug        build with debugging symbols and assertions
  --build-profile          build with profiling support
  --build-headless         build headless (without any GUI frontend)
===>  Building for virtualbox-ose-kmod-4.3.30
sed: /buildwork/ports/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.30/ No such file or directory
*** Error code 1

make[3]: stopped in /usr/ports/emulators/virtualbox-ose-kmod
*** [all] Error code 1

make[2]: stopped in /usr/obj/usr/src/sys/hellas
1 error

make[2]: stopped in /usr/obj/usr/src/sys/hellas
*** [buildkernel] Error code 2

make[1]: stopped in /usr/src
1 error

make[1]: stopped in /usr/src
*** [buildkernel] Error code 2

make: stopped in /usr/src
1 error

make: stopped in /usr/src
985.370u 544.037s 44:04.23 57.8%	12343+340k 50557+45033io 7373pf+0w
hellas#	exit

Script done on Sun Jul 12 00:30:37 2015

Is there any chance of getting the port fixed before 10.2-RELEASE?

                                  Scott Bennett, Comm. ASMELG, CFIAG
* Internet:   bennett at   *xor*   bennett at  *
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *

More information about the freebsd-ports mailing list