Date: Wed, 7 Aug 2013 06:44:59 -0700 From: David Wolfskill <david@catwhisker.org> To: Alexey Dokuchaev <danfe@FreeBSD.org> Cc: Jeff Roberson <jeff@FreeBSD.org>, freebsd-ports@freebsd.org Subject: Re: x11/nvidia-driver build failure in head/i386 @r253985 with clang Message-ID: <20130807134459.GE1746@albert.catwhisker.org> In-Reply-To: <20130807132034.GA10293@FreeBSD.org> References: <20130807130241.GC1746@albert.catwhisker.org> <20130807132034.GA10293@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--GVmdUcABewnKtUm9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 07, 2013 at 01:20:34PM +0000, Alexey Dokuchaev wrote: > On Wed, Aug 07, 2013 at 06:02:41AM -0700, David Wolfskill wrote: > > [...] > > nvidia_subr.c:997:19: error: incompatible pointer types passing 'vm_map= _t' > > (aka 'struct vm_map *') to parameter of type 'struct vmem *' [-Werror, > > -Wincompatible-pointer-types] > > kmem_free(kernel_map, > > ^~~~~~~~~~ > > @/vm/vm_extern.h:58:29: note: passing argument to parameter here > > void kmem_free(struct vmem *, vm_offset_t, vm_size_t); >=20 > I've tested the new driver on my Julyish -CURRENT and it was all fine... > I suspect the problem might be with Jeff's r254025 (CC'ed). I will see > what I can do about it, thanks for your report! Glad to heko! > > In the mean time, I will try to figure out what's wrong: > > nvidia-driver-304.51 built/ran OK in head/i386 @r253985 (with clang). >=20 > Please share your findings once you have them. :-) Build still fails in head/i386 @r254052, similarly: =2E.. clang -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=3D\"319.32\" -D__K= ERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O -UDEBUG -U_DEBUG -DN= DEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/alt= q -fno-common -mno-aes -mno-avx -mno-mmx -mno-sse -msoft-float -ffreestan= ding -fstack-protector -std=3Diso9899:1999 -Qunused-arguments -fstack-prote= ctor -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissin= g-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sig= n -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -W= no-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses= -equality -c nvidia_subr.c nvidia_subr.c:948:33: error: incompatible pointer types passing 'vm_map_t' = (aka 'struct vm_map *') to parameter of type 'struct vmem *' [-Werror,-Winc= ompatible-pointer-types] address =3D kmem_alloc_contig(kernel_map, size, flags, 0, ^~~~~~~~~~ @/vm/vm_extern.h:54:44: note: passing argument to parameter here vm_offset_t kmem_alloc_contig(struct vmem *, vm_size_t size, int flags, ^ nvidia_subr.c:997:19: error: incompatible pointer types passing 'vm_map_t' = (aka 'struct vm_map *') to parameter of type 'struct vmem *' [-Werror,-Winc= ompatible-pointer-types] kmem_free(kernel_map, ^~~~~~~~~~ @/vm/vm_extern.h:58:29: note: passing argument to parameter here void kmem_free(struct vmem *, vm_offset_t, vm_size_t); ^ =2E... Not sure how much further I'll be able to get for a while; I'm out-of-town and Internet access is a bit flaky. Sorry... Peace, david --=20 David H. Wolfskill david@catwhisker.org Taliban: Evil men with guns afraid of truth from a 14-year old girl. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --GVmdUcABewnKtUm9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iEYEARECAAYFAlICT1oACgkQmprOCmdXAD17EACePNrOtwKjhKN9nB3FHxVKjdQO DFIAn3MXXTgvLXegD3agTjTrbv+RV3CA =9aPK -----END PGP SIGNATURE----- --GVmdUcABewnKtUm9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130807134459.GE1746>