Date: Wed, 22 Aug 2018 10:29:05 -0500 From: Alan Cox <alc@rice.edu> To: tech-lists <tech-lists@zyxst.net>, Manfred Antar <manfredantar@gmail.com>, Alexey Dokuchaev <danfe@freebsd.org> Cc: "Alex V. Petrov" <alexvpetrov@gmail.com>, freebsd-current <freebsd-current@freebsd.org>, alc@freebsd.org Subject: Re: nvidia-driver build error (last ports, FreeBSD-HEAD) Message-ID: <44324f5e-5146-7525-7a60-1b774fc5d85a@rice.edu> In-Reply-To: <60982d01-7d08-25b7-97c5-009a6be13b88@zyxst.net> References: <cc4a8291-b6a1-f014-ac9b-57721d0e2d98@gmail.com> <db1f1411-a3db-f0cb-8207-2957b45d206f@gmail.com> <20180822022343.GA60855@FreeBSD.org> <4925AAFC-0D43-4DC3-9E41-61F44359255A@gmail.com> <60982d01-7d08-25b7-97c5-009a6be13b88@zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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<danfe@freebsd.org>=20 >>> wrote: >>> >>> On Tue, Aug 21, 2018 at 11:22:56PM +0700, Alex V. Petrov wrote: >>>> -------- =D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B0=D0=BF=D1=80=D0=B0=D0=B2= =D0=BB=D0=B5=D0=BD=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5= =D0=BD=D0=B8=D0=B5 -------- >>>> =D0=A2=D0=B5=D0=BC=D0=B0: nvidia-driver build error (last ports, Fre= eBSD-HEAD) >>>> =D0=94=D0=B0=D1=82=D0=B0: Tue, 21 Aug 2018 16:41:42 +0700 >>>> =D0=9E=D1=82: Alex V. Petrov<alexvpetrov@gmail.com> >>>> =D0=9A=D0=BE=D0=BC=D1=83: FreeBSD Ports<freebsd-ports@freebsd.org> >>> 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=3Dyes > > [...] > > cc -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=3D\"390.77\" > -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2 > -fno-strict-aliasing -mno-red-zone -mcmodel=3Dkernel -Wno-sign-compare > -Wno-format-extra-args -UDEBUG -U_DEBUG -DNDEBUG -Werror=3Dundef=20 > -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I../common/inc -I. > -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common=20 > -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD=20 > -MF.depend.nvidia_subr.o -MTnvidia_subr.o -mcmodel=3Dkernel > -mno-red-zone -mno-mmx -mno-sse -msoft-float=20 > -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__=3D__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=3Diso9899: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 he= re > 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 he= re > 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/nvid= ia > *** 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44324f5e-5146-7525-7a60-1b774fc5d85a>