From owner-freebsd-ports@FreeBSD.ORG Wed Aug 7 13:45:00 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6842CE51; Wed, 7 Aug 2013 13:45:00 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2E8BE2CE5; Wed, 7 Aug 2013 13:44:59 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.7/8.14.7) with ESMTP id r77DixE9025653; Wed, 7 Aug 2013 06:44:59 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.7/8.14.7/Submit) id r77Dixvs025652; Wed, 7 Aug 2013 06:44:59 -0700 (PDT) (envelope-from david) Date: Wed, 7 Aug 2013 06:44:59 -0700 From: David Wolfskill To: Alexey Dokuchaev Subject: Re: x11/nvidia-driver build failure in head/i386 @r253985 with clang Message-ID: <20130807134459.GE1746@albert.catwhisker.org> References: <20130807130241.GC1746@albert.catwhisker.org> <20130807132034.GA10293@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GVmdUcABewnKtUm9" Content-Disposition: inline In-Reply-To: <20130807132034.GA10293@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Jeff Roberson , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 13:45:00 -0000 --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--