From owner-freebsd-ports@FreeBSD.ORG Wed Aug 7 18:51:04 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 CE1058EF for ; Wed, 7 Aug 2013 18:51:04 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A3AB5205C for ; Wed, 7 Aug 2013 18:51:04 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id bv13so1693103pdb.30 for ; Wed, 07 Aug 2013 11:50:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=b8nVAgQntcp5rsH8S6eKAgn692aHbMRNYEp68zsZqY0=; b=Zz+496OhPIyxR8ZZMlXKlK4rOKizidjSgZ0RnQMCNhAMDBiNtUwy9JaKRRnGEY3OWJ 8k9TDYYZ92yuzjPCV//gDhpz+eokkt4abdM/HkjMtqaBrisLIFpeFx8HfFHA5GUp8S7R b+oAIpXe7cxIlcmOPALIortxBjc6OyUjTCio7NP3EcUfLoHbkPOLokHKccahdSIcvMSr faJiat/O8ELBrvlHLwBkivfUTFdPX5vR+QeHuzDoeClu49uJ8f3DX7Et15nStOAot15B ENbjDuZQVAevwSPuqYEVAYmIaoB+CN3xxuvbmfpcd/MyJxHsD8ZH+l/60yQ0lYLevBxk b+CA== X-Gm-Message-State: ALoCoQnKZHyVzcVpfh551CevAuftzctFBSba6cgyazC96J6yfBmKdtjLZXx2IcOKvfLu37gbcrQc X-Received: by 10.67.1.203 with SMTP id bi11mr2052485pad.137.1375901458443; Wed, 07 Aug 2013 11:50:58 -0700 (PDT) Received: from rrcs-66-91-135-210.west.biz.rr.com (rrcs-66-91-135-210.west.biz.rr.com. [66.91.135.210]) by mx.google.com with ESMTPSA id a5sm9695046pbw.4.2013.08.07.11.50.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 07 Aug 2013 11:50:57 -0700 (PDT) Date: Wed, 7 Aug 2013 08:53:02 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: David Wolfskill Subject: Re: x11/nvidia-driver build failure in head/i386 @r253985 with clang In-Reply-To: <20130807134459.GE1746@albert.catwhisker.org> Message-ID: References: <20130807130241.GC1746@albert.catwhisker.org> <20130807132034.GA10293@FreeBSD.org> <20130807134459.GE1746@albert.catwhisker.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Alexey Dokuchaev , 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 18:51:04 -0000 On Wed, 7 Aug 2013, David Wolfskill wrote: > 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); >> >> 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). >> >> Please share your findings once you have them. :-) > > Build still fails in head/i386 @r254052, similarly: > > ... > clang -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"319.32\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -fno-common -mno-aes -mno-avx -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-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,-Wincompatible-pointer-types] > address = 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,-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); > ^ > .... > > 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... > This is my fault. The first argument to the kmem_ functions should now be kernel_arena or kmem_arena. I don't know how to modify ports but I can produce a patch later today to resolve this unless someone beats me to it. It will be a simple substitution based on version. Jeff > Peace, > david > -- > 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. >