x11/nvidia-driver build failure in head/i386 @r253985 with clang

2013-08-07 Thread David Wolfskill
Builds/runs OK (so far) in stable/9/i386 @r254053 with clang. Whine is: ... 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@

Re: x11/nvidia-driver build failure in head/i386 @r253985 with clang

2013-08-07 Thread Alexey Dokuchaev
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,

Re: x11/nvidia-driver build failure in head/i386 @r253985 with clang

2013-08-07 Thread David Wolfskill
On Wed, Aug 07, 2013 at 01:20:34PM +, 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,

Re: x11/nvidia-driver build failure in head/i386 @r253985 with clang

2013-08-07 Thread Jeff Roberson
On Wed, 7 Aug 2013, David Wolfskill wrote: On Wed, Aug 07, 2013 at 01:20:34PM +, 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

Re: x11/nvidia-driver build failure in head/i386 @r253985 with clang

2013-08-07 Thread David Wolfskill
On Wed, Aug 07, 2013 at 08:53:02AM -1000, Jeff Roberson wrote: ... 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

Re: x11/nvidia-driver build failure in head/i386 @r253985 with clang

2013-08-07 Thread Alexey Dokuchaev
On Wed, Aug 07, 2013 at 08:53:02AM -1000, Jeff Roberson wrote: 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

Re: x11/nvidia-driver build failure in head/i386 @r253985 with clang

2013-08-07 Thread Alexey Dokuchaev
On Wed, Aug 07, 2013 at 02:03:13PM -0700, David Wolfskill wrote: On Wed, Aug 07, 2013 at 08:53:02AM -1000, Jeff Roberson wrote: ... 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