Re: Failure to rebuild x11/nvidia-driver on head at r233697
On Friday, March 30, 2012 5:33:07 pm David Wolfskill wrote: On Fri, Mar 30, 2012 at 01:46:58PM -0400, John Baldwin wrote: ... You can actually use that on 8 and 9 as well. I think it's a likely a bug that it used VM_MEMATTR_UNCACHED in the first place and that it should have been using VM_MEMATTR_UNCACHEABLE all along. (Which is why I've renamed the obscure and not really useful VM_MEMATTR_UNCACHED.) ... OK; that seems to work, at least under stable/8 -- thanks! FYI, this should be fixed in the next driver release from NVIDIA. -- John Baldwin ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Failure to rebuild x11/nvidia-driver on head at r233697
On Tue, Apr 03, 2012 at 08:55:34AM -0400, John Baldwin wrote: ... You can actually use that on 8 and 9 as well. I think it's a likely a bug that it used VM_MEMATTR_UNCACHED in the first place and that it should have been using VM_MEMATTR_UNCACHEABLE all along. (Which is why I've renamed the obscure and not really useful VM_MEMATTR_UNCACHED.) ... OK; that seems to work, at least under stable/8 -- thanks! FYI, this should be fixed in the next driver release from NVIDIA. ... Cool; thanks for mentioning it. In the mean time, the patch (that I posted earlier) that replaces VM_MEMATTR_UNCACHED with VM_MEMATTR_UNCACHEABLE works for me under stable/8, stable/9, and head, so folks may want to use something like that if they don't want to wait. Peace, david -- David H. Wolfskill da...@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. pgpfxCCZtYUBu.pgp Description: PGP signature
Failure to rebuild x11/nvidia-driver on head at r233697
I track stable/8, stable/9, and head on (different slices on) my laptop on a daily basis. I share /usr/local among all of these: while I update the installed ports on a daily basis, I'm unwilling to do that 3 times daily. :-} The x11/nvidia-driver port is one, however, that I've found helpful to specify in /etc/src.conf: g1-227(10.0-C)[3] cat /etc/src.conf PORTS_MODULES=x11/nvidia-driver g1-227(10.0-C)[4] so it does get rebuilt ... rather more often. I've had no problems with this for several months running -- and there were no problems with stable/8 or stable/9 today. But head failed after the (otherwise) successful make buildkernel: ... === zlib (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /common/S4/obj/usr/src/sys/CANARY/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -I/common/S4/obj/usr/src/sys/CANARY -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show-option -c /usr/src/sys/modules/zlib/../../net/zlib.c ld -d -warn-common -r -d -o zlib.kld zlib.o : export_syms awk -f /usr/src/sys/conf/kmod_syms.awk zlib.kld export_syms | xargs -J% objcopy % zlib.kld ld -Bshareable -d -warn-common -o zlib.ko.debug zlib.kld objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug zlib.ko cd ${PORTSDIR:-/usr/ports}/x11/nvidia-driver; SYSDIR=/usr/src/sys /usr/obj/usr/src/make.i386/make -B all === License NVIDIA accepted by the user === Found saved configuration for nvidia-driver-285.05.09 === Extracting for nvidia-driver-285.05.09 = SHA256 Checksum OK for NVIDIA-FreeBSD-x86-285.05.09.tar.gz. === Patching for nvidia-driver-285.05.09 === nvidia-driver-285.05.09 depends on file: /usr/local/libdata/pkgconfig/xorg-server.pc - found === nvidia-driver-285.05.09 depends on shared library: GL.1 - found === Configuring for nvidia-driver-285.05.09 === Building for nvidia-driver-285.05.09 === src (all) @ - /usr/src/sys machine - /usr/src/sys/i386/include x86 - /usr/src/sys/x86/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h ... cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\285.05.09\ -D__KERNEL__ -DNVRM -Wno-unused-function -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show-option -c nvidia_os_registry.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\285.05.09\ -D__KERNEL__ -DNVRM -Wno-unused-function -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show-option -c nvidia_pci.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\285.05.09\ -D__KERNEL__ -DNVRM -Wno-unused-function -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show-option -c nvidia_subr.c nvidia_subr.c: In function 'nv_alloc_contig_pages': nvidia_subr.c:1159: error: 'VM_MEMATTR_UNCACHED' undeclared (first use in this function) nvidia_subr.c:1159: error: (Each undeclared identifier is reported only once nvidia_subr.c:1159: error: for each function it appears in.) nvidia_subr.c:
Re: Failure to rebuild x11/nvidia-driver on head at r233697
On Fri, 2012-03-30 at 06:18 -0700, David Wolfskill wrote: I track stable/8, stable/9, and head on (different slices on) my laptop on a daily basis. I share /usr/local among all of these: while I update the installed ports on a daily basis, I'm unwilling to do that 3 times daily. :-} The x11/nvidia-driver port is one, however, that I've found helpful to specify in /etc/src.conf: g1-227(10.0-C)[3] cat /etc/src.conf PORTS_MODULES=x11/nvidia-driver g1-227(10.0-C)[4] so it does get rebuilt ... rather more often. I've had no problems with this for several months running -- and there were no problems with stable/8 or stable/9 today. But head failed after the (otherwise) successful make buildkernel: ... === zlib (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /common/S4/obj/usr/src/sys/CANARY/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -I/common/S4/obj/usr/src/sys/CANARY -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show-option -c /usr/src/sys/modules/zlib/../../net/zlib.c ld -d -warn-common -r -d -o zlib.kld zlib.o : export_syms awk -f /usr/src/sys/conf/kmod_syms.awk zlib.kld export_syms | xargs -J% objcopy % zlib.kld ld -Bshareable -d -warn-common -o zlib.ko.debug zlib.kld objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug zlib.ko cd ${PORTSDIR:-/usr/ports}/x11/nvidia-driver; SYSDIR=/usr/src/sys /usr/obj/usr/src/make.i386/make -B all === License NVIDIA accepted by the user === Found saved configuration for nvidia-driver-285.05.09 === Extracting for nvidia-driver-285.05.09 = SHA256 Checksum OK for NVIDIA-FreeBSD-x86-285.05.09.tar.gz. === Patching for nvidia-driver-285.05.09 === nvidia-driver-285.05.09 depends on file: /usr/local/libdata/pkgconfig/xorg-server.pc - found === nvidia-driver-285.05.09 depends on shared library: GL.1 - found === Configuring for nvidia-driver-285.05.09 === Building for nvidia-driver-285.05.09 === src (all) @ - /usr/src/sys machine - /usr/src/sys/i386/include x86 - /usr/src/sys/x86/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h ... cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\285.05.09\ -D__KERNEL__ -DNVRM -Wno-unused-function -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show-option -c nvidia_os_registry.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\285.05.09\ -D__KERNEL__ -DNVRM -Wno-unused-function -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show-option -c nvidia_pci.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\285.05.09\ -D__KERNEL__ -DNVRM -Wno-unused-function -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show-option -c nvidia_subr.c nvidia_subr.c: In function 'nv_alloc_contig_pages': nvidia_subr.c:1159: error: 'VM_MEMATTR_UNCACHED' undeclared (first use in this function)
Re: Failure to rebuild x11/nvidia-driver on head at r233697
On Friday, March 30, 2012 9:18:33 am David Wolfskill wrote: I track stable/8, stable/9, and head on (different slices on) my laptop on a daily basis. I share /usr/local among all of these: while I update the installed ports on a daily basis, I'm unwilling to do that 3 times daily. :-} The x11/nvidia-driver port is one, however, that I've found helpful to specify in /etc/src.conf: g1-227(10.0-C)[3] cat /etc/src.conf PORTS_MODULES=x11/nvidia-driver g1-227(10.0-C)[4] so it does get rebuilt ... rather more often. I've had no problems with this for several months running -- and there were no problems with stable/8 or stable/9 today. But head failed after the (otherwise) successful make buildkernel: ... === zlib (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /common/S4/obj/usr/src/sys/CANARY/opt_global.h -I. -I@ -I@/contrib/altq - finline-limit=8000 --param inline-unit-growth=100 --param large-function- growth=1000 -fno-common -g -I/common/S4/obj/usr/src/sys/CANARY -mno-align- long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse -msoft-float - 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 -Wmissing-include-dirs -fdiagnostics-show-option -c /usr/src/sys/modules/zlib/../../net/zlib.c ld -d -warn-common -r -d -o zlib.kld zlib.o : export_syms awk -f /usr/src/sys/conf/kmod_syms.awk zlib.kld export_syms | xargs -J% objcopy % zlib.kld ld -Bshareable -d -warn-common -o zlib.ko.debug zlib.kld objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols objcopy --strip-debug --add-gnu-debuglink=zlib.ko.symbols zlib.ko.debug zlib.ko cd ${PORTSDIR:-/usr/ports}/x11/nvidia-driver; SYSDIR=/usr/src/sys /usr/obj/usr/src/make.i386/make -B all === License NVIDIA accepted by the user === Found saved configuration for nvidia-driver-285.05.09 === Extracting for nvidia-driver-285.05.09 = SHA256 Checksum OK for NVIDIA-FreeBSD-x86-285.05.09.tar.gz. === Patching for nvidia-driver-285.05.09 === nvidia-driver-285.05.09 depends on file: /usr/local/libdata/pkgconfig/xorg-server.pc - found === nvidia-driver-285.05.09 depends on shared library: GL.1 - found === Configuring for nvidia-driver-285.05.09 === Building for nvidia-driver-285.05.09 === src (all) @ - /usr/src/sys machine - /usr/src/sys/i386/include x86 - /usr/src/sys/x86/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h ... cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\285.05.09\ - D__KERNEL__ -DNVRM -Wno-unused-function -O -UDEBUG -U_DEBUG -DNDEBUG -Werror - D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -finline- limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 - fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx - mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show- option -c nvidia_os_registry.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\285.05.09\ - D__KERNEL__ -DNVRM -Wno-unused-function -O -UDEBUG -U_DEBUG -DNDEBUG -Werror - D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -finline- limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 - fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx - mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show- option -c nvidia_pci.c cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\285.05.09\ - D__KERNEL__ -DNVRM -Wno-unused-function -O -UDEBUG -U_DEBUG -DNDEBUG -Werror - D_KERNEL -DKLD_MODULE -nostdinc -I. -I. -I@ -I@/contrib/altq -finline- limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 - fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx - mno-sse -msoft-float -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 -Wmissing-include-dirs -fdiagnostics-show- option -c nvidia_subr.c nvidia_subr.c: In function 'nv_alloc_contig_pages': nvidia_subr.c:1159: error: 'VM_MEMATTR_UNCACHED' undeclared (first use in this function) nvidia_subr.c:1159: error: (Each
Re: Failure to rebuild x11/nvidia-driver on head at r233697
On Fri, Mar 30, 2012 at 12:18:58PM -0400, John Baldwin wrote: ... I've sent an e-mail to the NVIDIA driver author about how best to fix this. You can just change the driver to use VM_MEMATTR_UNCACHEABLE instead of VM_MEMATTR_UNCACHED for now. Thanks; I'd need to make it conditional on something relevant, as I'm also building under stable/8 stable/9. My next scheduled build isn't for another 16 hours or so, so I'll sit tight for now, and take evasive action as necessary. Of course, if danfe@ wants a tester, I'm certainly game. :-} (Besides, I'm actively using the machine, you see :-}) Peace, david -- David H. Wolfskill da...@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. pgpTx3G0XDu8u.pgp Description: PGP signature
Re: Failure to rebuild x11/nvidia-driver on head at r233697
On Friday, March 30, 2012 12:41:12 pm David Wolfskill wrote: On Fri, Mar 30, 2012 at 12:18:58PM -0400, John Baldwin wrote: ... I've sent an e-mail to the NVIDIA driver author about how best to fix this. You can just change the driver to use VM_MEMATTR_UNCACHEABLE instead of VM_MEMATTR_UNCACHED for now. Thanks; I'd need to make it conditional on something relevant, as I'm also building under stable/8 stable/9. You can actually use that on 8 and 9 as well. I think it's a likely a bug that it used VM_MEMATTR_UNCACHED in the first place and that it should have been using VM_MEMATTR_UNCACHEABLE all along. (Which is why I've renamed the obscure and not really useful VM_MEMATTR_UNCACHED.) My next scheduled build isn't for another 16 hours or so, so I'll sit tight for now, and take evasive action as necessary. Of course, if danfe@ wants a tester, I'm certainly game. :-} (Besides, I'm actively using the machine, you see :-}) Peace, david -- David H. Wolfskillda...@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. -- John Baldwin ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Failure to rebuild x11/nvidia-driver on head at r233697
On Fri, Mar 30, 2012 at 01:46:58PM -0400, John Baldwin wrote: ... You can actually use that on 8 and 9 as well. I think it's a likely a bug that it used VM_MEMATTR_UNCACHED in the first place and that it should have been using VM_MEMATTR_UNCACHEABLE all along. (Which is why I've renamed the obscure and not really useful VM_MEMATTR_UNCACHED.) ... OK; that seems to work, at least under stable/8 -- thanks! Peace, david -- David H. Wolfskill da...@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. pgpOQWbkRuNjf.pgp Description: PGP signature