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

David Wolfskill david at catwhisker.org
Wed Aug 7 13:02:49 UTC 2013


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@ -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_sysctl.c
--- nvidia_subr.o ---
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);
                            ^
nvidia_subr.c:1024:15: 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, at->pte_array[0].virtual_address,
              ^~~~~~~~~~
@/vm/vm_extern.h:58:29: note: passing argument to parameter here
void kmem_free(struct vmem *, vm_offset_t, vm_size_t);
                            ^
nvidia_subr.c:1088:37: 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, PAGE_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:1142: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);
                            ^
nvidia_subr.c:1172: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);
                            ^
6 errors generated.
*** [nvidia_subr.o] Error code 1

make[3]: stopped in /common/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86-319.32/src
1 error
....


I am presently updating head to r254052 and that process will attempt
to rebuild x11/nvidia-driver.  If that's successful, I will follow
up.

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).

Peace,
david
-- 
David H. Wolfskill				david at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130807/172f7494/attachment.sig>


More information about the freebsd-ports mailing list