nvidia-driver 195.22 use horribly broken on amd64 between r206173 and

Kostik Belousov kostikbel at gmail.com
Thu May 27 19:13:10 UTC 2010


On Thu, May 27, 2010 at 11:54:27AM -0700, Doug Barton wrote:
> On 05/26/10 09:51, Kostik Belousov wrote:
> >I did a quick glance over the driver, try this:
> >http://people.freebsd.org/~kib/misc/nvidia-vm_page_lock.1.patch
> >I did not even compiled the patched driver.
> 
> cc -pipe -g -g -g -DNV_VERSION_STRING=\"195.36.15\" -D__KERNEL__ -DNVRM 
> -O -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/src -I. -I@ 
> -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 
> --param large-function-growth=1000 -fno-common -g 
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx 
> -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector 
> -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls 
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
> -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
> -fformat-extensions -c nvidia_subr.c
> cc1: warnings being treated as errors
> nvidia_subr.c: In function 'nv_alloc_system_pages':
> nvidia_subr.c:1306: warning: implicit declaration of function 'vm_page_lock'
> nvidia_subr.c:1306: warning: nested extern declaration of 'vm_page_lock'
> nvidia_subr.c:1308: warning: implicit declaration of function 
> 'vm_page_unlock'
> nvidia_subr.c:1308: warning: nested extern declaration of 'vm_page_unlock'
> *** Error code 1

I think you have stale/wrong includes used by the build. I just checked
that driver indeed builds with my patch. vm_page_lock() and vm_page_unlock()
are the macros defined in vm/vm_page.h that are present since first
Kip commit.

Look at the target of the "@" symlink in the driver directory.
-------------- 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-current/attachments/20100527/e5de82f8/attachment.pgp


More information about the freebsd-current mailing list