virtualbox-ose-kmod fails to build in kernel epilogue

Scott Bennett bennett at sdf.org
Mon Jul 20 05:18:51 UTC 2015


     My thanks to David Wolfskill <david at catwhisker.org> and Kevin Oberman
<rkoberman at gmail.com>, whose reponses prompted a closer look that revealed
a nastier can of worms than I had hoped for.  Sigh.

Kevin Oberman <rkoberman at gmail.com> wrote:
> On Sun, Jul 12, 2015 at 7:09 AM, David Wolfskill <david at catwhisker.org>
> wrote:
>
> > I also specify emulators/virtualbox-ose-kmod as one of the PORTS_MODULES
> > via src.conf, but I don't encounter the problem you report.  More
> > inline:
> >
> > On Sun, Jul 12, 2015 at 06:06:56AM -0500, Scott Bennett wrote:
> > >      In /etc/src.conf, I have
> > >
> > > CCACHE_COMPILERCHECK=content
> > > PORTS_MODULES=x11/nvidia-driver-340  emulators/virtualbox-ose-kmod
> > > WITH_LLDB=
> > >
> > > 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
> > > ...
> > > ===> 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"
> > > ....
> >
> > The corresponding part of my most recent stable/10 (amd64) build shows:
> >
> > ...
> > ====> 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=/usr/obj/usr/src/sys/CANARY 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
> > /usr/obj/usr/src/sys/CANARY/common/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.30/src/libs/libxml2-2.6.31/configure
> > ===>   FreeBSD 10 autotools fix applied to
> > /usr/obj/usr/src/sys/CANARY/common/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.30/src/libs/libxml2-2.6.31/aclocal.m4
> > Checking for environment: Determined build machine: freebsd.amd64, target
> > machine: freebsd.amd64, OK.
> > Checking for kBuild: found, OK.
> > Checking for gcc: found version 4.2.1, OK.
> > ....
> >
> > Above was from a build where I was running:
> >
> > FreeBSD g1-254.catwhisker.org 10.2-BETA1 FreeBSD 10.2-BETA1 #90
> > r285346M/285355:1001519: Fri Jul 10 04:07:45 PDT 2015
> >  root at g1-254.catwhisker.org:/common/S2/obj/usr/src/sys/CANARY  amd64
> >
> > and built:
> >
> > FreeBSD g1-245.catwhisker.org 10.2-BETA1 FreeBSD 10.2-BETA1 #91
> > r285410M/285418:1001519: Sun Jul 12 04:20:57 PDT 2015
> >  root at g1-254.catwhisker.org:/common/S2/obj/usr/src/sys/CANARY  amd64
> >
> >
> > I note that each of us shows that the configuration retrieved is
> > that for virtualbox-ose-kmod-4.3.20; perhaps you have a configuration
> > option selected that is no longer supported?  In any case, reviewing
> > your selected options would seem reasonable; possibly just re-running
> > the port configuration and re-trying?
> >
> > Peace,
> > david
> > --
> > David H. Wolfskill                              david at catwhisker.org
> > Those who murder in the name of God or prophet are blasphemous cowards.
> >
> > See http://www.catwhisker.org/~david/publickey.gpg for my public key.
> >
> Probably not relevant, but your kernel build is attempting to build the
> just released virtualbox-ose-kmod-4.3.30. have you updated to
> virtualbox-ose-4.3.30?
>
> Since the kmod is a dependency of virtualbox-ose-4.3.30, I suspect it is
> not an issue, but it is something to confirm. Not a lot of options
> available and I don't think they have changed since at least the first
> version 4 release:
> ===> The following configuration options are available for
> virtualbox-ose-kmod-4.3.30:
>      DEBUG=off: Debug symbols, additional logs and assertions
>      VIMAGE=off: VIMAGE virtual networking support

     Mine has DEBUG=off, but VIMAGE=on.  Thinking, however, that perhaps
some option in emulators/virtualbox-ose might influence what happened, I
(tried to) look at its options, whereupon I discovered that it was no
longer installed. :-(  I didn't recall it being dropped from my list of
installed ports, much less why, so I tried installing it again, but that
also failed because it depended (with my choice of options) upon
print/tex-formats, which builds but fails to install on my system, which
currently is

FreeBSD hellas 10.2-PRERELEASE FreeBSD 10.2-PRERELEASE #77 r284725: Tue Jun 23 09:36:25 CDT 2015     bennett at hellas:/usr/obj/usr/src/sys/hellas  amd64

print/tex-formats has no configurable options.  Trying to install it ends
like this.


====> Compressing man pages (compress-man)
===>  Installing for tex-formats-20150521
===>  Checking if tex-formats already installed
===>   Registering installation for tex-formats-20150521
pkg-static: Unable to access file /buildwork/ports/usr/ports/print/tex-formats/work/stage/usr/local/share/texmf-var/web2c/pdftex/mptopdf.fmt: No such file or directory
pkg-static: Unable to access file /buildwork/ports/usr/ports/print/tex-formats/work/stage/usr/local/share/texmf-var/web2c/pdftex/mptopdf.log: No such file or directory
*** Error code 74

Stop.
make: stopped in /usr/ports/print/tex-formats

===>>> Installation of tex-formats-20150521 (print/tex-formats) failed
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> print/tex-formats 

17.073u 24.098s 1:32.99 44.2%	1769+837k 4524+413io 142pf+0w
Sun Jul 19 23:24:26 CDT 2015
hellas#	exit

I do recall that, when I was reinstalling all my ports after upgrading
from 9.2-STABLE i386 to 10.1-STABLE amd64, print/tex-formats was a real
problem because its failure resulted in nearly half of the other failures
to build/install ports.  But I thought I had gotten virtualbox-ose built
and installed again, so either it failed and I forgot about it, or I
added the "Install Manual" option later and caused it to fail.  I guess.
     Unselecting the "Install Manual" option for virtualbox-ose and then
attempting to install that port still fails.

cc1: error: to generate dependencies you must specify either -M or -MM
kmk: *** [/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o] Error 1
The failing command:
@gcc48 -c -O2 -g -pipe -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wno-long-long -Wno-long-long -Werror-implicit-function-declaration -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC -Wno-sign-compare -Werror-implicit-function-declaration -m64 -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler/Sun/crt -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler/Sun -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler/target-i386 -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler/tcg -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler/fpu -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/out/freebsd.amd64/release/obj/VBoxRemPrimary -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/VBox/VMM/include -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler/tcg/i386 -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler -I/usr/local/include -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/out/freebsd.amd64/release/obj/VBoxRemPrimary/dtrace -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/include -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/out/freebsd.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox-ose\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox-ose\" -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DPIC -DIN_REM_R3 -DREM_INCLUDE_CPU_H -DNEED_CPU_H -DVBOX_WITH_RAW_MODE -DVBOX_WITH_RAW_RING1 -DLOG_USE_C99 -D_BSD -D__x86_64__ -Wp,-MD,/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o.dep -Wp,-MT,/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o -Wp,-MP -o /buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o /buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler/translate-all.c
kmk: *** Exiting with status 2
*** Error code 2

Stop.
make: stopped in /usr/ports/emulators/virtualbox-ose

===>>> make build failed for emulators/virtualbox-ose
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> emulators/virtualbox-ose emulators/virtualbox-ose-kmod 

792.738u 343.730s 17:30.80 108.1%	21404+383k 8060+8627io 1047pf+0w
Wed Jul 15 02:49:43 CDT 2015
hellas#	exit
>
> FWIW, I had no issues with the kmod building today. My config is much
> older, 4.2.16.
>
> ===>  Cleaning for virtualbox-ose-kmod-4.3.30
> load: 1.82  cmd: make 69575 [select] 110.88r 0.01u 0.07s 0% 1032k
> make: Working in: /usr/obj/usr/src
> ===>  Found saved configuration for virtualbox-ose-kmod-4.1.16
> ===>   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
> /usr/obj/usr/src/sys//usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.30/src/libs/libxml2-2.6.31/configure
> ===>   FreeBSD 10 autotools fix applied to
> /usr/obj/usr/src/sys//usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.30/src/libs/libxml2-2.6.31/aclocal.m4
> Checking for environment: Determined build machine: freebsd.amd64, target
> machine: freebsd.amd64, OK.
> Checking for kBuild: found, OK.
> Checking for gcc: found version 4.2.1, OK.
> --

     emulators/virtualbox-ose-kmod builds and installs fine with portmaster.
I just can't get it to work as part of a kernel build.  However, I guess the
matter is moot if emulators/virtualbox-ose can't be built.  :-(


                                  Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet:   bennett at sdf.org   *xor*   bennett at freeshell.org  *
*--------------------------------------------------------------------*
* "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