[Bug 228709] x11/nvidia-driver: nvidia_subr.c:367:26: error: 'memset' call operates on objects of type ...
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jun 2 19:36:50 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228709
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 at FreeBSD.org
Reporter: ohartmann at walstatt.org
Assignee: danfe at FreeBSD.org
Flags: maintainer-feedback?(danfe at FreeBSD.org)
On recent CURRENT (334535), build of x11/nvidia-driver (390.59) fails with the
error shown below:
cc -O2 -pipe -march=native -fno-strict-aliasing -DNV_VERSION_STRING=\"390.59\"
-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 -march=native
-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:367:26: error: 'memset' call operates on objects of type 'struct
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/NVIDIA-FreeBSD-x86_64-390.59/src/nvidia
*** Error code 1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list