Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2015 11:15:17 -0700
From:      Garrett Cooper <yaneurabeya@gmail.com>
To:        David Wolfskill <david@catwhisker.org>
Cc:        "current@freebsd.org" <current@freebsd.org>, "Simon J. Gerraty" <sjg@juniper.net>
Subject:   Re: Error building x11/nvidia-driver kernel module @r284408
Message-ID:  <9129CADF-2E5D-49EC-B9B2-3242B3B2017F@gmail.com>
In-Reply-To: <20150615133412.GJ1114@albert.catwhisker.org>
References:  <20150615133412.GJ1114@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Jun 15, 2015, at 06:34, David Wolfskill <david@catwhisker.org> wrote:
>=20
> Now that "vanilla" head @284408 builds (& boots):
>=20
> FreeBSD freebeast.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1751  r=
284408M/284408:1100077: Mon Jun 15 05:51:00 PDT 2015     root@freebeast.catw=
hisker.org:/common/S3/obj/usr/src/sys/GENERIC  amd64
>=20
> I find that for my laptop, I encounter an error while trying to build
> the x11/nvidia-driver kernel module (courtesy of /etc/src.conf:
>=20
> g1-254(11.0-C)[2] cat /etc/src.conf=20
> KERNCONF=3DCANARY
> PORTS_MODULES=3Dx11/nvidia-driver
> PORTS_MODULES+=3Dmultimedia/cuse4bsd-kmod
> PORTS_MODULES+=3Demulators/virtualbox-ose-kmod
> WITHOUT_DEBUG_FILES=3D1
> IWN_DEBUG=3D1
> IEEE80211_DEBUG=3D1
> g1-254(11.0-C)[3]=20
>=20
> -- which has heretofore been working for my daily refreshes for years):
>=20
> ...
> objcopy --strip-debug --add-gnu-debuglink=3Dkernel.symbols kernel.debug ke=
rnel
> --- all ---
> =3D=3D=3D> Ports module x11/nvidia-driver (all)
> cd ${PORTSDIR:-/usr/ports}/x11/nvidia-driver; PATH=3D/usr/obj/usr/src/tmp/=
legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/leg=
acy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bi=
n:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin  SRC_BASE=3D/usr/src  OS=
VERSION=3D1100077  WRKDIRPREFIX=3D/usr/obj/usr/src/sys/CANARY make -B clean a=
ll
> ...
> =3D=3D=3D>  Configuring for nvidia-driver-346.47
> =3D=3D=3D>  Building for nvidia-driver-346.47
> =3D=3D=3D> src (all)
> make[6]: don't know how to make /common/S3/obj/usr/src/sys/CANARY/common/p=
orts/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-346.47/src/machine. Stop
>=20
> make[6]: stopped in /common/S3/obj/usr/src/sys/CANARY/common/ports/x11/nvi=
dia-driver/work/NVIDIA-FreeBSD-x86_64-346.47/src
> .CURDIR=3D'/common/S3/obj/usr/src/sys/CANARY/common/ports/x11/nvidia-drive=
r/work/NVIDIA-FreeBSD-x86_64-346.47/src'
> .MAKE=3D'/usr/bin/make'
> .OBJDIR=3D'/common/S3/obj/usr/src/sys/CANARY/common/ports/x11/nvidia-drive=
r/work/NVIDIA-FreeBSD-x86_64-346.47/src'
> .TARGETS=3D'all'
> DESTDIR=3D''
> LD_LIBRARY_PATH=3D''
> MACHINE=3D'amd64'
> MACHINE_ARCH=3D'amd64'
> MAKEOBJDIRPREFIX=3D'/usr/obj'
> MAKESYSPATH=3D''
> MAKE_VERSION=3D'20150606'
> SRCTOP=3D'/usr/src'
> OBJTOP=3D''
> .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk /usr/src/share/mk/bsd.mkopt.mk=
 /etc/make.conf /usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk /=
etc/src.conf /usr/src/share/mk/bsd.cpu.mk Makefile /usr/src/share/mk/bsd.kmo=
d.mk /usr/src/sys/conf/kmod.mk /usr/src/share/mk/bsd.init.mk /usr/src/share/=
mk/bsd.opts.mk /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.opts.mk=
 /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk /usr/src/sys=
/conf/kern.opts.mk /usr/src/sys/conf/config.mk /usr/src/share/mk/bsd.links.m=
k /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.obj.mk /usr/src/share/m=
k/bsd.subdir.mk /usr/src/sys/conf/kern.mk'
> .PATH=3D'. /common/S3/obj/usr/src/sys/CANARY/common/ports/x11/nvidia-drive=
r/work/NVIDIA-FreeBSD-x86_64-346.47/src'
> *** Error code 2
>=20
> Stop.
> ....
>=20
>=20
> A full typescript of the svn update and build may be found at
> <http://www.catwhisker.org/~david/FreeBSD/head/build_r284408.txt>; it's
> about 51MB.
>=20
> Please note that the (similar) refreshes for stable/10 (@r284404)
> had no problems; I have typescripts of them accessible (but I haven't
> put'them up on the Web server, as they're pretty boring).
>=20
> Perhaps some changes need to be made for (some?) ports to adjust for
> recent make & mk changes in head?
>=20
> I note that in the stable/10 case, the .../obj/usr/src/sys/CANARY/common/p=
orts/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-346.47/src/machine "file"
> is a symlink to /usr/src/sys/amd64/include -- and that it doesn't
> exist in the i386 case (and that doesn't appear to be a problem).

Looks like fallout from projects/bmake. Please file a bug and CC sjg.

Thanks!=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9129CADF-2E5D-49EC-B9B2-3242B3B2017F>