Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Sep 2022 06:39:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 266561] x11/nvidia-driver: copiler error: nvidia_os.c:283:19: error: incompatible integer to pointer conversion
Message-ID:  <bug-266561-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266561

            Bug ID: 266561
           Summary: x11/nvidia-driver: copiler error: nvidia_os.c:283:19:
                    error: incompatible integer to pointer conversion
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: danfe@FreeBSD.org
          Reporter: ohartmann@walstatt.org
             Flags: maintainer-feedback?(danfe@FreeBSD.org)
          Assignee: danfe@FreeBSD.org

OS: recent 14-CURRENT (after commit 7ae99f80b6661760c5de3edd330b279f04b092a=
2)
driver: nvidia-driver-510.60.02

error:
[...]
cc  -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=3D\"510.60.02\"
-D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O2
-fno-strict-aliasing -mno-red-zone -mcmodel=3Dkernel -UDEBUG -U_DEBUG -DNDE=
BUG
-DNV_SPECTRE_V2=3D1 -DNV_KERNEL_INTERFACE_LAYER -Werror=3Dundef  -Werror -D=
_KERNEL
-DKLD_MODULE -nostdinc  -I. -I../common/inc -include
/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-510.60.02/src/nvidi=
a/opt_global.h
-I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common=20
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include
-fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include
-fdebug-prefix-map=3D./i386=3D/usr/src/sys/i386/include     -MD=20
-MF.depend.nvidia_os_registry.o -MTnvidia_os_registry.o -mcmodel=3Dkernel
-mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tabl=
es
-ffreestanding -fwrapv -fstack-protector -Wall -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=3Dtautological-co=
mpare
-Wno-error=3Dempty-body -Wno-error=3Dparentheses-equality
-Wno-error=3Dunused-function -Wno-error=3Dpointer-sign
-Wno-error=3Dshift-negative-value -Wno-address-of-packed-member
-Wno-format-zero-length   -mno-aes -mno-avx  -std=3Diso9899:1999 -c
nvidia_os_registry.c -o nvidia_os_registry.o
--- nvidia_pci.o ---
--- nvidia_os.o ---
nvidia_os.c:283:19: error: incompatible integer to pointer conversion passi=
ng
'vm_offset_t' (aka 'unsigned long') to parameter of type 'void *'
[-Werror,-Wint-conversion]
    pmap_unmapdev((vm_offset_t)address, size);
                  ^~~~~~~~~~~~~~~~~~~~
./machine/pmap.h:511:26: note: passing argument to parameter here
void    pmap_unmapdev(void *, vm_size_t);

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266561-7788>