Date: Mon, 28 Nov 2016 11:37:19 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 214903] head -r309179 clang 3.9.0 TARGET_ARCH=powerpc64 cross built buildkernel stops for: converts between pointers to integer types with different sign [-Werror,-Wpointer-sign] Message-ID: <bug-214903-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214903 Bug ID: 214903 Summary: head -r309179 clang 3.9.0 TARGET_ARCH=3Dpowerpc64 cross built buildkernel stops for: converts between pointers to integer types with different sign [-Werror,-Wpointer-sign] Product: Base System Version: CURRENT Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: markmi@dsl-only.net --- drm_auth.o --- In file included from /usr/src/sys/modules/drm2/drm2/../../../dev/drm2/drm_auth.c:39: In file included from /usr/src/sys/dev/drm2/drmP.h:51: /usr/src/sys/sys/sglist.h:67:16: error: passing 'int *' to parameter of type 'volatile u_int *' (aka 'volatile unsigned int *') converts between pointer= s to integer types with different sign [-Werror,-Wpointer-sign] refcount_init(&sg->sg_refs, 1); ^~~~~~~~~~~~ /usr/src/sys/sys/refcount.h:42:31: note: passing argument to parameter 'cou= nt' here refcount_init(volatile u_int *count, u_int value) ^ In file included from /usr/src/sys/modules/drm2/drm2/../../../dev/drm2/drm_auth.c:39: In file included from /usr/src/sys/dev/drm2/drmP.h:51: /usr/src/sys/sys/sglist.h:81:19: error: passing 'int *' to parameter of type 'volatile u_int *' (aka 'volatile unsigned int *') converts between pointer= s to integer types with different sign [-Werror,-Wpointer-sign] refcount_acquire(&sg->sg_refs); ^~~~~~~~~~~~ /usr/src/sys/sys/refcount.h:49:34: note: passing argument to parameter 'cou= nt' here refcount_acquire(volatile u_int *count) . . . --- all_subdir_drm2/drm2 --- 2 errors generated. *** [drm_auth.o] Error code 1 make[5]: stopped in /usr/src/sys/modules/drm2/drm2 .ERROR_TARGET=3D'drm_auth.o' .ERROR_META_FILE=3D'/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc= .powerpc64/usr/src/sys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/drm2= /drm2/drm_auth.o.meta' .MAKE.LEVEL=3D'5' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes ve= rbose' .CURDIR=3D'/usr/src/sys/modules/drm2/drm2' .MAKE=3D'make' .OBJDIR=3D'/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc6= 4/usr/src/sys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/drm2/drm2' .TARGETS=3D'all' DESTDIR=3D'' LD_LIBRARY_PATH=3D'' MACHINE=3D'powerpc' MACHINE_ARCH=3D'powerpc64' MAKEOBJDIRPREFIX=3D'/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc= .powerpc64/usr/src/sys/GENERIC64vtsc-NODBG/modules' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20160818' PATH=3D'/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/u= sr/src/tmp/legacy/usr/sbin:/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/= powerpc.powerpc64/usr/src/tmp/legacy/usr/bin:/usr/obj/powerpc64vtsc_clang_a= ltbinutils_kernel/powerpc.powerpc64/usr/src/tmp/legacy/bin:/usr/obj/powerpc= 64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/tmp/usr/sbin:/usr= /obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/tmp/u= sr/bin:/sbin:/bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' OBJTOP=3D'/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64= /usr/src/sys/GENERIC64vtsc-NODBG/modules/usr/src' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk /usr/src/share/mk/local.sys.env= .mk /usr/src/share/mk/src.sys.env.mk /root/src.configs/src.conf.powerpc64-clang_altbinutils-bootstrap.amd64-host /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/bsd.suffixes.mk /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk /usr/src/share/mk/src.sys.mk /dev/null /usr/src/sys/modules/drm2/drm2/Makef= ile /usr/src/share/mk/bsd.kmod.mk /usr/src/sys/conf/kmod.mk /usr/src/share/mk/bsd.init.mk /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk /usr/src/sys/modules/drm2/drm2/../Makefile.inc /usr/src/sys/modules/drm2/drm2/../../Makefile.inc /usr/src/share/mk/bsd.own= .mk /usr/src/share/mk/bsd.compiler.mk /usr/src/sys/conf/kern.opts.mk /usr/src/sys/conf/config.mk /usr/src/share/mk/bsd.links.mk /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk /usr/src/sys/conf/kern.mk' .PATH=3D'. /usr/src/sys/modules/drm2/drm2 /usr/src/sys/modules/drm2/drm2/../../../dev/drm2 /usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm /usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/s= ys/GENERIC64vtsc-NODBG' 1 error # more /usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/s= ys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/drm2/drm2/drm_auth.o.meta # Meta data file /usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/s= ys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/drm2/drm2/drm_auth.o.meta CMD /usr/bin/clang -target powerpc64-unknown-freebsd12.0 --sysroot=3D/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc= 64/usr/src/tmp -B/usr/local/powerpc64-freebsd/bin/ -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/s= ys/GENERIC64vtsc-NODBG/opt_global.h -I. -I/usr/src/sys -fno-common -g -fno-omit-frame-pointer -I/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src= /sys/GENERIC64vtsc-NODBG -mno-altivec -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wno-cast-= qual -msoft-float -std=3Diso9899:1999 -c /usr/src/sys/modules/drm2/drm2/../../../dev/drm2/drm_auth.c -o drm_auth.o CMD ctfconvert -L VERSION -g drm_auth.o CWD /usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/s= ys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/drm2/drm2 TARGET drm_auth.o -- command output -- In file included from /usr/src/sys/modules/drm2/drm2/../../../dev/drm2/drm_auth.c:39: In file included from /usr/src/sys/dev/drm2/drmP.h:51: /usr/src/sys/sys/sglist.h:67:16: error: passing 'int *' to parameter of type 'volatile u_int *' (aka 'volatile unsigned int *') converts between pointer= s to integer types with different sign [-Werror,-Wpointer-sign] refcount_init(&sg->sg_refs, 1); ^~~~~~~~~~~~ /usr/src/sys/sys/refcount.h:42:31: note: passing argument to parameter 'cou= nt' here refcount_init(volatile u_int *count, u_int value) ^ In file included from /usr/src/sys/modules/drm2/drm2/../../../dev/drm2/drm_auth.c:39: In file included from /usr/src/sys/dev/drm2/drmP.h:51: /usr/src/sys/sys/sglist.h:81:19: error: passing 'int *' to parameter of type 'volatile u_int *' (aka 'volatile unsigned int *') converts between pointer= s to integer types with different sign [-Werror,-Wpointer-sign] refcount_acquire(&sg->sg_refs); ^~~~~~~~~~~~ /usr/src/sys/sys/refcount.h:49:34: note: passing argument to parameter 'cou= nt' here refcount_acquire(volatile u_int *count) ^ 2 errors generated. *** 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-214903-8>