From owner-freebsd-ports@freebsd.org Mon Jul 20 05:18:51 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 539509A6B2C for ; Mon, 20 Jul 2015 05:18:51 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from sdf.lonestar.org (mx.sdf.org [192.94.73.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.sdf.org", Issuer "SDF.ORG" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2211518C4 for ; Mon, 20 Jul 2015 05:18:50 +0000 (UTC) (envelope-from bennett@sdf.org) Received: from sdf.org (IDENT:bennett@otaku.freeshell.org [192.94.73.9]) by sdf.lonestar.org (8.14.8/8.14.5) with ESMTP id t6K5IYsq010448 (using TLSv1/SSLv3 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO); Mon, 20 Jul 2015 05:18:34 GMT Received: (from bennett@localhost) by sdf.org (8.14.8/8.12.8/Submit) id t6K5IYhb002520; Mon, 20 Jul 2015 00:18:34 -0500 (CDT) From: Scott Bennett Message-Id: <201507200518.t6K5IYhb002520@sdf.org> Date: Mon, 20 Jul 2015 00:18:34 -0500 To: rkoberman@gmail.com, david@catwhisker.org Subject: Re: virtualbox-ose-kmod fails to build in kernel epilogue Cc: freebsd-ports@freebsd.org References: <201507121106.t6CB6ubK003995@sdf.org> <20150712140914.GF1155@albert.catwhisker.org> In-Reply-To: User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2015 05:18:51 -0000 My thanks to David Wolfskill and Kevin Ober= man , whose reponses prompted a closer look that revea= led a nastier can of worms than I had hoped for. Sigh. Kevin Oberman wrote: > On Sun, Jul 12, 2015 at 7:09 AM, David Wolfskill > wrote: > > > I also specify emulators/virtualbox-ose-kmod as one of the PORTS_MO= DULES > > 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=3Dcontent > > > PORTS_MODULES=3Dx11/nvidia-driver-340 emulators/virtualbox-ose-k= mod > > > WITH_LLDB=3D > > > > > > but when I build my kernel, x11/nvidia-driver-340 gets built with= no > > trouble, > > > yet emulators/virtualbox-ose-kmod fails to build. > > > > > > =3D=3D=3D> Staging for nvidia-driver-340-340.76 > > > ... > > > =3D=3D=3D> x11 (install) > > > =3D=3D=3D> x11/driver (install) > > > =3D=3D=3D> x11/extension (install) > > > =3D=3D=3D> doc (install) > > > =3D=3D=3D=3D> Compressing man pages (compress-man) > > > =3D=3D=3D> Ports module emulators/virtualbox-ose-kmod (all) > > > cd ${PORTSDIR:-/usr/ports}/emulators/virtualbox-ose-kmod; > > PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/le= gacy/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=3D/usr/src OSVERSION=3D1001519 WRKDIRPREFIX=3D/buildwork= /ports make -B > > clean all > > > =3D=3D=3D> Cleaning for virtualbox-ose-kmod-4.3.30 > > > =3D=3D=3D> License GPLv2 accepted by the user > > > =3D=3D=3D> Found saved configuration for virtualbox-ose-kmod-4.3= .20 > > > =3D=3D=3D> virtualbox-ose-kmod-4.3.30 depends on file: /usr/loc= al/sbin/pkg - > > found > > > =3D=3D=3D> Fetching all distfiles required by virtualbox-ose-kmod= -4.3.30 for > > building > > > =3D=3D=3D> Extracting for virtualbox-ose-kmod-4.3.30 > > > =3D> SHA256 Checksum OK for VirtualBox-4.3.30.tar.bz2. > > > =3D=3D=3D> Patching for virtualbox-ose-kmod-4.3.30 > > > =3D=3D=3D> Applying FreeBSD patches for virtualbox-ose-kmod-4.3.= 30 > > > =3D=3D=3D> virtualbox-ose-kmod-4.3.30 depends on executable: km= k - found > > > =3D=3D=3D> Configuring for virtualbox-ose-kmod-4.3.30 > > > =3D=3D=3D> FreeBSD 10 autotools fix applied to > > /buildwork/ports/usr/ports/emulators/virtualbox-ose-kmod/work/Virtu= alBox-4.3.30/src/libs/libxml2-2.6.31/configure > > > =3D=3D=3D> FreeBSD 10 autotools fix applied to > > /buildwork/ports/usr/ports/emulators/virtualbox-ose-kmod/work/Virtu= alBox-4.3.30/src/libs/libxml2-2.6.31/aclocal.m4 > > > > > > Unrecognized option "--sysroot=3D/usr/obj/usr/src/tmp" > > > .... > > > > The corresponding part of my most recent stable/10 (amd64) build sh= ows: > > > > ... > > =3D=3D=3D=3D> Compressing man pages (compress-man) > > =3D=3D=3D> Ports module emulators/virtualbox-ose-kmod (all) > > cd ${PORTSDIR:-/usr/ports}/emulators/virtualbox-ose-kmod; > > PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/le= gacy/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=3D/usr/src OSVERSION=3D1001519 > > WRKDIRPREFIX=3D/usr/obj/usr/src/sys/CANARY make -B clean all > > =3D=3D=3D> Cleaning for virtualbox-ose-kmod-4.3.30 > > =3D=3D=3D> License GPLv2 accepted by the user > > =3D=3D=3D> Found saved configuration for virtualbox-ose-kmod-4.3.2= 0 > > =3D=3D=3D> virtualbox-ose-kmod-4.3.30 depends on file: /usr/local= /sbin/pkg - > > found > > =3D=3D=3D> Fetching all distfiles required by virtualbox-ose-kmod-4= .3.30 for > > building > > =3D=3D=3D> Extracting for virtualbox-ose-kmod-4.3.30 > > =3D> SHA256 Checksum OK for VirtualBox-4.3.30.tar.bz2. > > =3D=3D=3D> Patching for virtualbox-ose-kmod-4.3.30 > > =3D=3D=3D> Applying FreeBSD patches for virtualbox-ose-kmod-4.3.30 > > =3D=3D=3D> virtualbox-ose-kmod-4.3.30 depends on executable: kmk = - found > > =3D=3D=3D> Configuring for virtualbox-ose-kmod-4.3.30 > > =3D=3D=3D> FreeBSD 10 autotools fix applied to > > /usr/obj/usr/src/sys/CANARY/common/ports/emulators/virtualbox-ose-k= mod/work/VirtualBox-4.3.30/src/libs/libxml2-2.6.31/configure > > =3D=3D=3D> FreeBSD 10 autotools fix applied to > > /usr/obj/usr/src/sys/CANARY/common/ports/emulators/virtualbox-ose-k= mod/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@g1-254.catwhisker.org:/common/S2/obj/usr/src/sys/CANARY amd6= 4 > > > > 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@g1-254.catwhisker.org:/common/S2/obj/usr/src/sys/CANARY amd6= 4 > > > > > > I note that each of us shows that the configuration retrieved is > > that for virtualbox-ose-kmod-4.3.20; perhaps you have a configurati= on > > option selected that is no longer supported? In any case, reviewin= g > > your selected options would seem reasonable; possibly just re-runni= ng > > the port configuration and re-trying? > > > > Peace, > > david > > -- > > David H. Wolfskill david@catwhisker.or= g > > Those who murder in the name of God or prophet are blasphemous cowa= rds. > > > > See http://www.catwhisker.org/~david/publickey.gpg for my public ke= y. > > > Probably not relevant, but your kernel build is attempting to build t= he > 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 firs= t > version 4 release: > =3D=3D=3D> The following configuration options are available for > virtualbox-ose-kmod-4.3.30: > DEBUG=3Doff: Debug symbols, additional logs and assertions > VIMAGE=3Doff: VIMAGE virtual networking support Mine has DEBUG=3Doff, but VIMAGE=3Don. Thinking, however, that pe= rhaps 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 tha= t also failed because it depended (with my choice of options) upon print/tex-formats, which builds but fails to install on my system, whic= h currently is FreeBSD hellas 10.2-PRERELEASE FreeBSD 10.2-PRERELEASE #77 r284725: Tue= Jun 23 09:36:25 CDT 2015 bennett@hellas:/usr/obj/usr/src/sys/hella= s amd64 print/tex-formats has no configurable options. Trying to install it en= ds like this. =3D=3D=3D=3D> Compressing man pages (compress-man) =3D=3D=3D> Installing for tex-formats-20150521 =3D=3D=3D> Checking if tex-formats already installed =3D=3D=3D> 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 =3D=3D=3D>>> Installation of tex-formats-20150521 (print/tex-formats) f= ailed =3D=3D=3D>>> Aborting update =3D=3D=3D>>> You can restart from the point of failure with this comman= d line: portmaster print/tex-formats=20 17.073u 24.098s 1:32.99 44.2%=091769+837k 4524+413io 142pf+0w Sun Jul 19 23:24:26 CDT 2015 hellas#=09exit 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 failur= es to build/install ports. But I thought I had gotten virtualbox-ose buil= t 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 the= n 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/Virt= ualBox-4.3.30/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-al= l.o] Error 1 The failing command: @gcc48 -c -O2 -g -pipe -Wall -Wextra -Wno-missing-field-initializers -W= no-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-paramete= r -Wno-long-long -Wno-long-long -Werror-implicit-function-declaration -= Wno-variadic-macros -O2 -mtune=3Dgeneric -fno-omit-frame-pointer -fno-s= trict-aliasing -fvisibility=3Dhidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT= _USE_VISIBILITY_DEFAULT -fPIC -Wno-sign-compare -Werror-implicit-functi= on-declaration -m64 -I/buildwork/ports/usr/ports/emulators/virtualbox-o= se/work/VirtualBox-4.3.30/src/recompiler/Sun/crt -I/buildwork/ports/usr= /ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler/S= un -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBo= x-4.3.30/src/recompiler/target-i386 -I/buildwork/ports/usr/ports/emulat= ors/virtualbox-ose/work/VirtualBox-4.3.30/src/recompiler/tcg -I/buildwo= rk/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/= recompiler/fpu -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/wo= rk/VirtualBox-4.3.30/out/freebsd.amd64/release/obj/VBoxRemPrimary -I/bu= ildwork/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/recompile= r -I/usr/local/include -I/buildwork/ports/usr/ports/emulators/virtualbo= x-ose/work/VirtualBox-4.3.30/out/freebsd.amd64/release/obj/VBoxRemPrima= ry/dtrace -I/buildwork/ports/usr/ports/emulators/virtualbox-ose/work/Vi= rtualBox-4.3.30/include -I/buildwork/ports/usr/ports/emulators/virtualb= ox-ose/work/VirtualBox-4.3.30/out/freebsd.amd64/release -DVBOX -DVBOX_O= SE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_FREEBSD -D__= FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_AP= P_PRIVATE=3D\"/usr/local/share/virtualbox-ose\" -DRTPATH_APP_PRIVATE_AR= CH=3D\"/usr/local/lib/virtualbox\" -DRTPATH_SHARED_LIBS=3D\"/usr/local/= lib/virtualbox\" -DRTPATH_APP_DOCS=3D\"/usr/local/share/doc/virtualbox-= ose\" -DIN_RING3 -DHC_ARCH_BITS=3D64 -DGC_ARCH_BITS=3D64 -DPIC -DIN_REM= _R3 -DREM_INCLUDE_CPU_H -DNEED_CPU_H -DVBOX_WITH_RAW_MODE -DVBOX_WITH_R= AW_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.amd6= 4/release/obj/VBoxRemPrimary/translate-all.o.dep -Wp,-MT,/buildwork/por= ts/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/out/freebs= d.amd64/release/obj/VBoxRemPrimary/translate-all.o -Wp,-MP -o /buildwor= k/ports/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/out/f= reebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o /buildwork/port= s/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.30/src/recompi= ler/translate-all.c kmk: *** Exiting with status 2 *** Error code 2 Stop. make: stopped in /usr/ports/emulators/virtualbox-ose =3D=3D=3D>>> make build failed for emulators/virtualbox-ose =3D=3D=3D>>> Aborting update =3D=3D=3D>>> You can restart from the point of failure with this comman= d line: portmaster emulators/virtualbox-ose emulators/virtualbox= -ose-kmod=20 792.738u 343.730s 17:30.80 108.1%=0921404+383k 8060+8627io 1047pf+0w Wed Jul 15 02:49:43 CDT 2015 hellas#=09exit > > FWIW, I had no issues with the kmod building today. My config is much > older, 4.2.16. > > =3D=3D=3D> 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 > =3D=3D=3D> Found saved configuration for virtualbox-ose-kmod-4.1.16 > =3D=3D=3D> virtualbox-ose-kmod-4.3.30 depends on file: /usr/local/s= bin/pkg - > found > =3D=3D=3D> Fetching all distfiles required by virtualbox-ose-kmod-4.3= .30 for > building > =3D=3D=3D> Extracting for virtualbox-ose-kmod-4.3.30 > =3D> SHA256 Checksum OK for VirtualBox-4.3.30.tar.bz2. > =3D=3D=3D> Patching for virtualbox-ose-kmod-4.3.30 > =3D=3D=3D> Applying FreeBSD patches for virtualbox-ose-kmod-4.3.30 > =3D=3D=3D> virtualbox-ose-kmod-4.3.30 depends on executable: kmk - = found > =3D=3D=3D> Configuring for virtualbox-ose-kmod-4.3.30 > =3D=3D=3D> FreeBSD 10 autotools fix applied to > /usr/obj/usr/src/sys//usr/ports/emulators/virtualbox-ose-kmod/work/Vi= rtualBox-4.3.30/src/libs/libxml2-2.6.31/configure > =3D=3D=3D> FreeBSD 10 autotools fix applied to > /usr/obj/usr/src/sys//usr/ports/emulators/virtualbox-ose-kmod/work/Vi= rtualBox-4.3.30/src/libs/libxml2-2.6.31/aclocal.m4 > Checking for environment: Determined build machine: freebsd.amd64, ta= rget > 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 portma= ster. I just can't get it to work as part of a kernel build. However, I gues= s 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 * **********************************************************************