Date: Sun, 3 Jun 2018 21:42:22 +0900 From: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> To: freebsd-current@freebsd.org Cc: alexvpetrov@gmail.com, mjg@FreeBSD.org, danfe@FreeBSD.org, ler@FreeBSD.org Subject: Re: Error build nvidia-driver with r334555 Message-ID: <20180603214222.953748e1eb7a0b39e11214ae@dec.sakura.ne.jp> In-Reply-To: <83fec8d8-699f-e86c-9884-9d8698a86a91@gmail.com> References: <83fec8d8-699f-e86c-9884-9d8698a86a91@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is caused by r334533 and/or r334534 (memset-related changes). sysutils/lsof is also affected. You should revert r334533 and r334534 temporarily until nvidia-driver support this change. CC'ing the revision author and maintainers of both ports. On Sun, 3 Jun 2018 18:48:01 +0700 "Alex V. Petrov" <alexvpetrov@gmail.com> wrote: > cc -O2 -pipe -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-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.nvlink_freebsd.o -MTnvlink_freebsd.o -mcmodel=kernel > -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchr > onous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointe > r-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-equ > ality -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 nvlink_freebsd.c -o nvlink_fre > ebsd.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. > *** [nvidia_subr.o] Error code 1 > > make[4]: stopped in > /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.59/src/nvidia > 1 error > > make[4]: stopped in > /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.59/src/nvidia > *** [all_subdir_src/nvidia] Error code 2 > > make[3]: stopped in > /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.59/src > 1 error > > make[3]: stopped in > /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.59/src > *** [all_subdir_src] Error code 2 > > make[2]: stopped in > /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.59 > 1 error > > make[2]: stopped in > /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-390.59 > ===> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to > the maintainer. > *** Error code 1 > > -- > ----- > Alex. > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180603214222.953748e1eb7a0b39e11214ae>