Re: nvidia-driver build error (last ports, FreeBSD-HEAD)
On 08/22/2018 10:29, Alan Cox wrote: > On 08/22/2018 08:48, tech-lists wrote: >> On 22/08/2018 05:29, Manfred Antar wrote: >>>> On Aug 21, 2018, at 7:23 PM, Alexey Dokuchaev >>>> wrote: >>>> >>>> On Tue, Aug 21, 2018 at 11:22:56PM +0700, Alex V. Petrov wrote: >>>>> ---- Перенаправленное сообщение >>>>> Тема: nvidia-driver build error (last ports, FreeBSD-HEAD) >>>>> Дата: Tue, 21 Aug 2018 16:41:42 +0700 >>>>> От: Alex V. Petrov >>>>> Кому: FreeBSD Ports >>>> Should be fixed as of r477761. >>>> >>>> ./danfe >> It's not fixed, seems to error elsewhere now: >> >> context: 12.0-ALPHA1 #0 r337886 / ports r477782 / empty /etc/make.conf >> >> This is a bare metal installation. >> >> root@desktop:/usr/ports/x11/nvidia-driver# make distclean && make >> clean && make MAKE_JOBS_UNSAFE=yes >> >> [...] >> >> cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"390.77\" >> -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2 >> -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -Wno-sign-compare >> -Wno-format-extra-args -UDEBUG -U_DEBUG -DNDEBUG -Werror=undef >> -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I../common/inc -I. >> -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common >> -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD >> -MF.depend.nvidia_subr.o -MTnvidia_subr.o -mcmodel=kernel >> -mno-red-zone -mno-mmx -mno-sse -msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fwrapv >> -fstack-protector -Wall -Wredundant-decls -Wnested-externs >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual >> -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ >> -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas >> -Wno-error-tautological-compare -Wno-error-empty-body >> -Wno-error-parentheses-equality -Wno-error-unused-function >> -Wno-error-pointer-sign -Wno-error-shift-negative-value >> -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c >> nvidia_subr.c -o nvidia_subr.o >> nvidia_subr.c:1131:41: error: too many arguments to function call, >> expected 7, have 8 >> sc->dma_mask, PAGE_SIZE, 0, attr); >> ^~~~ >> /usr/src/sys/vm/vm_extern.h:61:1: note: 'kmem_alloc_contig' declared here >> vm_offset_t kmem_alloc_contig(vm_size_t size, int flags, >> ^ >> nvidia_subr.c:1269:45: error: too many arguments to function call, >> expected 7, have 8 >> sc->dma_mask, PAGE_SIZE, 0, attr); >> ^~~~ >> /usr/src/sys/vm/vm_extern.h:61:1: note: 'kmem_alloc_contig' declared here >> vm_offset_t kmem_alloc_contig(vm_size_t size, int flags, >> ^ >> 2 errors generated. >> *** Error code 1 >> >> Stop. >> make[4]: stopped in >> /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77/src/nvidia >> *** Error code 1 >> >> Stop. >> make[3]: stopped in >> /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77/src >> *** Error code 1 >> >> Stop. >> make[2]: stopped in >> /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77 >> *** Error code 1 >> >> Stop. >> make[1]: stopped in /usr/ports/x11/nvidia-driver >> *** Error code 1 >> >> Stop. >> make: stopped in /usr/ports/x11/nvidia-driver >> root@desktop:/usr/ports/x11/nvidia-driver# >> > All of kmem_alloc_attr(), kmem_alloc_contig(), and kmem_malloc() should > have their first parameter, typically kernel_arena, but sometimes > kmem_arena, removed in FreeBSD 12. > > There is still one more pending change to kmem_free() that has not hit > HEAD yet. That change will be the last. The last change in this series has been committed to HEAD. With that change, you will want to remove the first argument, which should be an arena pointer, from kmem_free() calls. Alan ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: nvidia-driver build error (last ports, FreeBSD-HEAD)
On 22/08/2018 16:29, Alan Cox wrote: All of kmem_alloc_attr(), kmem_alloc_contig(), and kmem_malloc() should have their first parameter, typically kernel_arena, but sometimes kmem_arena, removed in FreeBSD 12. There is still one more pending change to kmem_free() that has not hit HEAD yet. That change will be the last. Thank you, that's very good news. Do you have an idea when the change will arrive in -HEAD? -- J. ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: nvidia-driver build error (last ports, FreeBSD-HEAD)
> On Aug 21, 2018, at 10:10 PM, Alan Cox wrote: > > On 08/21/2018 23:29, Manfred Antar wrote: >> >>> On Aug 21, 2018, at 7:23 PM, Alexey Dokuchaev wrote: >>> >>> On Tue, Aug 21, 2018 at 11:22:56PM +0700, Alex V. Petrov wrote: >>>> ---- Перенаправленное сообщение -------- >>>> Тема: nvidia-driver build error (last ports, FreeBSD-HEAD) >>>> Дата: Tue, 21 Aug 2018 16:41:42 +0700 >>>> От: Alex V. Petrov >>>> Кому: FreeBSD Ports >>> Should be fixed as of r477761. >>> >>> ./danfe >> emulators/open-vm-tools is also broken from the recent changes to sys/vm: >> cc -O2 -pipe -isystem /usr/local/include -fno-strict-aliasing -Werror >> -D_KERNEL -DKLD_MODULE -nostdinc >> -I/usr/ports/emulators/open-vm-tools/work/open-vm-tools-stable-10.2.5/open-vm-tools/lib/include >> >> -I/usr/ports/emulators/open-vm-tools/work/open-vm-tools-stable-10.2.5/open-vm-tools/modules/shared/vmxnet >> -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common >> -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD >> -MF.depend.if_vxn.o -MTif_vxn.o -mcmodel=kernel -mno-red-zone -mno-mmx >> -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding >> -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs >> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef >> -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs >> -fdiagnostics-show-option -Wno-unknown-pragmas >> -Wno-error-tautological-compare -Wno-error-empty-body >> -Wno-error-parentheses-equality -Wno-error-unused-function >> -Wno-error-pointer-sign -Wno-error-shift-negative-value >> -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c >> if_vxn.c -o if_vxn.o >> --- vmmemctl --- >> os.c:410:68: error: too many arguments to function call, expected 2, have 3 >> p->bitmap = (unsigned long *)kmem_malloc(kernel_arena, p->size, M_WAITOK | >> M_ZERO); >>~~~ >> ^ >> /usr/src/sys/sys/malloc.h:55:18: note: expanded from macro 'M_WAITOK' >> #define M_WAITOK0x0002 /* ok to block */ >>^ >> /usr/src/sys/vm/vm_extern.h:67:1: note: 'kmem_malloc' declared here >> vm_offset_t kmem_malloc(vm_size_t size, int flags); >> ^ >> 1 error generated. >> >> I also had to rebuild kde-workspace-kde4 and xorg-server before i could >> start x without open-vm-tools. >> This is on a FreeBSD-12-Alpha2-current as of today.the old >> open-vm-tools/modules/freebsd/vmmemctl >> will hang,so i needed to uninstall it to get x. >> >> if these lines are removed from open-vm-tools/modules/freebsd/vmmemctl/os.h >> open-vm-tools will compile and work: >> >> 407,411d406 >> < #if __FreeBSD_version < 100 >> <p->bitmap = (unsigned long *)kmem_alloc(kernel_map, p->size); >> < #else >> <p->bitmap = (unsigned long *)kmem_malloc(kernel_arena, p->size, >> M_WAITOK | M_ZERO); >> < #endif >> >> Not sure if this is the right fix but it enabled me to use the vm-tools >> again and the associated modules > > Change this to > > #if __FreeBSD_version < 100 >p->bitmap = (unsigned long *)kmem_alloc(kernel_map, p->size); > #elif __FreeBSD_version < 1200080 >p->bitmap = (unsigned long *)kmem_malloc(kernel_arena, p->size, > M_WAITOK | M_ZERO); > #else >p->bitmap = (unsigned long *)kmem_malloc(p->size, M_WAITOK | M_ZERO); > #endif > > That said, it's not clear to me why this allocation doesn't use > malloc(9), then no #if's would be required across different versions of > FreeBSD. > This works on current AMD64 Thanks ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: nvidia-driver build error (last ports, FreeBSD-HEAD)
On 08/22/2018 08:48, tech-lists wrote: > On 22/08/2018 05:29, Manfred Antar wrote: >> >>> On Aug 21, 2018, at 7:23 PM, Alexey Dokuchaev >>> wrote: >>> >>> On Tue, Aug 21, 2018 at 11:22:56PM +0700, Alex V. Petrov wrote: >>>> ---- Перенаправленное сообщение ---- >>>> Тема: nvidia-driver build error (last ports, FreeBSD-HEAD) >>>> Дата: Tue, 21 Aug 2018 16:41:42 +0700 >>>> От: Alex V. Petrov >>>> Кому: FreeBSD Ports >>> Should be fixed as of r477761. >>> >>> ./danfe > > It's not fixed, seems to error elsewhere now: > > context: 12.0-ALPHA1 #0 r337886 / ports r477782 / empty /etc/make.conf > > This is a bare metal installation. > > root@desktop:/usr/ports/x11/nvidia-driver# make distclean && make > clean && make MAKE_JOBS_UNSAFE=yes > > [...] > > cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"390.77\" > -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2 > -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -Wno-sign-compare > -Wno-format-extra-args -UDEBUG -U_DEBUG -DNDEBUG -Werror=undef > -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I../common/inc -I. > -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common > -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD > -MF.depend.nvidia_subr.o -MTnvidia_subr.o -mcmodel=kernel > -mno-red-zone -mno-mmx -mno-sse -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fwrapv > -fstack-protector -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual > -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ > -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -Wno-error-unused-function > -Wno-error-pointer-sign -Wno-error-shift-negative-value > -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c > nvidia_subr.c -o nvidia_subr.o > nvidia_subr.c:1131:41: error: too many arguments to function call, > expected 7, have 8 > sc->dma_mask, PAGE_SIZE, 0, attr); > ^~~~ > /usr/src/sys/vm/vm_extern.h:61:1: note: 'kmem_alloc_contig' declared here > vm_offset_t kmem_alloc_contig(vm_size_t size, int flags, > ^ > nvidia_subr.c:1269:45: error: too many arguments to function call, > expected 7, have 8 > sc->dma_mask, PAGE_SIZE, 0, attr); > ^~~~ > /usr/src/sys/vm/vm_extern.h:61:1: note: 'kmem_alloc_contig' declared here > vm_offset_t kmem_alloc_contig(vm_size_t size, int flags, > ^ > 2 errors generated. > *** Error code 1 > > Stop. > make[4]: stopped in > /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77/src/nvidia > *** Error code 1 > > Stop. > make[3]: stopped in > /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77/src > *** Error code 1 > > Stop. > make[2]: stopped in > /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77 > *** Error code 1 > > Stop. > make[1]: stopped in /usr/ports/x11/nvidia-driver > *** Error code 1 > > Stop. > make: stopped in /usr/ports/x11/nvidia-driver > root@desktop:/usr/ports/x11/nvidia-driver# > All of kmem_alloc_attr(), kmem_alloc_contig(), and kmem_malloc() should have their first parameter, typically kernel_arena, but sometimes kmem_arena, removed in FreeBSD 12. There is still one more pending change to kmem_free() that has not hit HEAD yet. That change will be the last. Alan ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: nvidia-driver build error (last ports, FreeBSD-HEAD)
On 22/08/2018 05:29, Manfred Antar wrote: On Aug 21, 2018, at 7:23 PM, Alexey Dokuchaev wrote: On Tue, Aug 21, 2018 at 11:22:56PM +0700, Alex V. Petrov wrote: Перенаправленное сообщение Тема: nvidia-driver build error (last ports, FreeBSD-HEAD) Дата: Tue, 21 Aug 2018 16:41:42 +0700 От: Alex V. Petrov Кому: FreeBSD Ports Should be fixed as of r477761. ./danfe It's not fixed, seems to error elsewhere now: context: 12.0-ALPHA1 #0 r337886 / ports r477782 / empty /etc/make.conf This is a bare metal installation. root@desktop:/usr/ports/x11/nvidia-driver# make distclean && make clean && make MAKE_JOBS_UNSAFE=yes [...] cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"390.77\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2 -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -Wno-sign-compare -Wno-format-extra-args -UDEBUG -U_DEBUG -DNDEBUG -Werror=undef -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I../common/inc -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.nvidia_subr.o -MTnvidia_subr.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c nvidia_subr.c -o nvidia_subr.o nvidia_subr.c:1131:41: error: too many arguments to function call, expected 7, have 8 sc->dma_mask, PAGE_SIZE, 0, attr); ^~~~ /usr/src/sys/vm/vm_extern.h:61:1: note: 'kmem_alloc_contig' declared here vm_offset_t kmem_alloc_contig(vm_size_t size, int flags, ^ nvidia_subr.c:1269:45: error: too many arguments to function call, expected 7, have 8 sc->dma_mask, PAGE_SIZE, 0, attr); ^~~~ /usr/src/sys/vm/vm_extern.h:61:1: note: 'kmem_alloc_contig' declared here vm_offset_t kmem_alloc_contig(vm_size_t size, int flags, ^ 2 errors generated. *** Error code 1 Stop. make[4]: stopped in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77/src/nvidia *** Error code 1 Stop. make[3]: stopped in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77/src *** Error code 1 Stop. make[2]: stopped in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77 *** Error code 1 Stop. make[1]: stopped in /usr/ports/x11/nvidia-driver *** Error code 1 Stop. make: stopped in /usr/ports/x11/nvidia-driver root@desktop:/usr/ports/x11/nvidia-driver# -- J. ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: nvidia-driver build error (last ports, FreeBSD-HEAD)
On 08/21/2018 23:29, Manfred Antar wrote: > >> On Aug 21, 2018, at 7:23 PM, Alexey Dokuchaev wrote: >> >> On Tue, Aug 21, 2018 at 11:22:56PM +0700, Alex V. Petrov wrote: >>> Перенаправленное сообщение ---- >>> Тема: nvidia-driver build error (last ports, FreeBSD-HEAD) >>> Дата: Tue, 21 Aug 2018 16:41:42 +0700 >>> От: Alex V. Petrov >>> Кому: FreeBSD Ports >> Should be fixed as of r477761. >> >> ./danfe > emulators/open-vm-tools is also broken from the recent changes to sys/vm: > cc -O2 -pipe -isystem /usr/local/include -fno-strict-aliasing -Werror > -D_KERNEL -DKLD_MODULE -nostdinc > -I/usr/ports/emulators/open-vm-tools/work/open-vm-tools-stable-10.2.5/open-vm-tools/lib/include > > -I/usr/ports/emulators/open-vm-tools/work/open-vm-tools-stable-10.2.5/open-vm-tools/modules/shared/vmxnet > -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common > -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD > -MF.depend.if_vxn.o -MTif_vxn.o -mcmodel=kernel -mno-red-zone -mno-mmx > -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv > -fstack-protector -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef > -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs > -fdiagnostics-show-option -Wno-unknown-pragmas > -Wno-error-tautological-compare -Wno-error-empty-body > -Wno-error-parentheses-equality -Wno-error-unused-function > -Wno-error-pointer-sign -Wno-error-shift-negative-value > -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c > if_vxn.c -o if_vxn.o > --- vmmemctl --- > os.c:410:68: error: too many arguments to function call, expected 2, have 3 >p->bitmap = (unsigned long *)kmem_malloc(kernel_arena, p->size, M_WAITOK | > M_ZERO); > ~~~ > ^ > /usr/src/sys/sys/malloc.h:55:18: note: expanded from macro 'M_WAITOK' > #define M_WAITOK0x0002 /* ok to block */ > ^ > /usr/src/sys/vm/vm_extern.h:67:1: note: 'kmem_malloc' declared here > vm_offset_t kmem_malloc(vm_size_t size, int flags); > ^ > 1 error generated. > > I also had to rebuild kde-workspace-kde4 and xorg-server before i could start > x without open-vm-tools. > This is on a FreeBSD-12-Alpha2-current as of today.the old > open-vm-tools/modules/freebsd/vmmemctl > will hang,so i needed to uninstall it to get x. > > if these lines are removed from open-vm-tools/modules/freebsd/vmmemctl/os.h > open-vm-tools will compile and work: > > 407,411d406 > < #if __FreeBSD_version < 100 > <p->bitmap = (unsigned long *)kmem_alloc(kernel_map, p->size); > < #else > <p->bitmap = (unsigned long *)kmem_malloc(kernel_arena, p->size, M_WAITOK > | M_ZERO); > < #endif > > Not sure if this is the right fix but it enabled me to use the vm-tools again > and the associated modules Change this to #if __FreeBSD_version < 100 p->bitmap = (unsigned long *)kmem_alloc(kernel_map, p->size); #elif __FreeBSD_version < 1200080 p->bitmap = (unsigned long *)kmem_malloc(kernel_arena, p->size, M_WAITOK | M_ZERO); #else p->bitmap = (unsigned long *)kmem_malloc(p->size, M_WAITOK | M_ZERO); #endif That said, it's not clear to me why this allocation doesn't use malloc(9), then no #if's would be required across different versions of FreeBSD. ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: nvidia-driver build error (last ports, FreeBSD-HEAD)
> On Aug 21, 2018, at 7:23 PM, Alexey Dokuchaev wrote: > > On Tue, Aug 21, 2018 at 11:22:56PM +0700, Alex V. Petrov wrote: >> >> Перенаправленное сообщение ---- >> Тема: nvidia-driver build error (last ports, FreeBSD-HEAD) >> Дата: Tue, 21 Aug 2018 16:41:42 +0700 >> От: Alex V. Petrov >> Кому: FreeBSD Ports > > Should be fixed as of r477761. > > ./danfe emulators/open-vm-tools is also broken from the recent changes to sys/vm: cc -O2 -pipe -isystem /usr/local/include -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/usr/ports/emulators/open-vm-tools/work/open-vm-tools-stable-10.2.5/open-vm-tools/lib/include -I/usr/ports/emulators/open-vm-tools/work/open-vm-tools-stable-10.2.5/open-vm-tools/modules/shared/vmxnet -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.if_vxn.o -MTif_vxn.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c if_vxn.c -o if_vxn.o --- vmmemctl --- os.c:410:68: error: too many arguments to function call, expected 2, have 3 p->bitmap = (unsigned long *)kmem_malloc(kernel_arena, p->size, M_WAITOK | M_ZERO); ~~~ ^ /usr/src/sys/sys/malloc.h:55:18: note: expanded from macro 'M_WAITOK' #define M_WAITOK0x0002 /* ok to block */ ^ /usr/src/sys/vm/vm_extern.h:67:1: note: 'kmem_malloc' declared here vm_offset_t kmem_malloc(vm_size_t size, int flags); ^ 1 error generated. I also had to rebuild kde-workspace-kde4 and xorg-server before i could start x without open-vm-tools. This is on a FreeBSD-12-Alpha2-current as of today.the old open-vm-tools/modules/freebsd/vmmemctl will hang,so i needed to uninstall it to get x. if these lines are removed from open-vm-tools/modules/freebsd/vmmemctl/os.h open-vm-tools will compile and work: 407,411d406 < #if __FreeBSD_version < 100 <p->bitmap = (unsigned long *)kmem_alloc(kernel_map, p->size); < #else <p->bitmap = (unsigned long *)kmem_malloc(kernel_arena, p->size, M_WAITOK | M_ZERO); < #endif Not sure if this is the right fix but it enabled me to use the vm-tools again and the associated modules Manfred ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Fwd: nvidia-driver build error (last ports, FreeBSD-HEAD)
On Tue, Aug 21, 2018 at 11:22:56PM +0700, Alex V. Petrov wrote: > > Перенаправленное сообщение > Тема: nvidia-driver build error (last ports, FreeBSD-HEAD) > Дата: Tue, 21 Aug 2018 16:41:42 +0700 > От: Alex V. Petrov > Кому: FreeBSD Ports Should be fixed as of r477761. ./danfe ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Fwd: nvidia-driver build error (last ports, FreeBSD-HEAD)
Перенаправленное сообщение Тема: nvidia-driver build error (last ports, FreeBSD-HEAD) Дата: Tue, 21 Aug 2018 16:41:42 +0700 От: Alex V. Petrov Кому: FreeBSD Ports cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"390.77\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2 -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -Wno-sign-co mpare -Wno-format-extra-args -UDEBUG -U_DEBUG -DNDEBUG -Werror=undef -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I../common/inc -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno- common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.nvidia_subr.o -MTnvidia_subr.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous- unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c nvidia_subr.c -o nvidia_subr.o nvidia_subr.c:1131:41: error: too many arguments to function call, expected 7, have 8 sc->dma_mask, PAGE_SIZE, 0, attr); ^~~~ /usr/src/sys/vm/vm_extern.h:61:1: note: 'kmem_alloc_contig' declared here vm_offset_t kmem_alloc_contig(vm_size_t size, int flags, ^ nvidia_subr.c:1269:45: error: too many arguments to function call, expected 7, have 8 sc->dma_mask, PAGE_SIZE, 0, attr); ^~~~ /usr/src/sys/vm/vm_extern.h:61:1: note: 'kmem_alloc_contig' declared here vm_offset_t kmem_alloc_contig(vm_size_t size, int flags, ^ 2 errors generated. *** Error code 1 Stop. make[4]: stopped in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77/src/nvidia *** Error code 1 Stop. make[3]: stopped in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77/src *** Error code 1 Stop. make[2]: stopped in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.77 *** Error code 1 Stop. make[1]: stopped in /usr/ports/x11/nvidia-driver *** Error code 1 Stop. make: stopped in /usr/ports/x11/nvidia-driver -- - Alex. ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"