Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Jun 2018 19:36:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 228709] x11/nvidia-driver: nvidia_subr.c:367:26: error: 'memset' call operates on objects of type ...
Message-ID:  <bug-228709-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 228709
           Summary: x11/nvidia-driver: nvidia_subr.c:367:26: error:
                    'memset' call operates on objects of type ...
           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
          Assignee: danfe@FreeBSD.org
             Flags: maintainer-feedback?(danfe@FreeBSD.org)

On recent CURRENT (334535), build of x11/nvidia-driver (390.59) fails with =
the
error shown below:

cc  -O2 -pipe -march=3Dnative -fno-strict-aliasing -DNV_VERSION_STRING=3D\"=
390.59\"
-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 -march=3Dn=
ative=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  -fno-asynchronous-unwind-tables -ffreestand=
ing
-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-comp=
are
-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:367:26: error: 'memset' call operates on objects of type 'str=
uct
nv_ioctl_card_info' while the size is based on a different type 'struct
nv_ioctl_card_info *' [-Werror,-Wsizeof-pointer-memaccess]
    memset(ci, 0, sizeof(ci));
           ~~            ^~
nvidia_subr.c:367:26: note: did you mean to dereference the argument to
'sizeof' (and multiply it by the number of elements)?
    memset(ci, 0, sizeof(ci));
                         ^~
1 error generated.
*** Error code 1

Stop.
make[7]: stopped in
/usr/obj/usr/src/amd64.amd64/sys/THOR/usr/ports/x11/nvidia-driver/work/NVID=
IA-FreeBSD-x86_64-390.59/src/nvidia
*** Error code 1

--=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-228709-7788>