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]
Summary: head -r309179 clang 3.9.0 TARGET_ARCH=powerpc64 cross built buildkernel stops...
Status: Closed DUPLICATE of bug 220122
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-toolchain (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-28 11:37 UTC by Mark Millard
Modified: 2017-10-11 02:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Millard 2016-11-28 11:37:19 UTC
--- 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 pointers 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 'count' 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 pointers 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 'count' 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='drm_auth.o'
.ERROR_META_FILE='/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='5'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose'
.CURDIR='/usr/src/sys/modules/drm2/drm2'
.MAKE='make'
.OBJDIR='/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/sys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/drm2/drm2'
.TARGETS='all'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='powerpc'
MACHINE_ARCH='powerpc64'
MAKEOBJDIRPREFIX='/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/sys/GENERIC64vtsc-NODBG/modules'
MAKESYSPATH='/usr/src/share/mk'
MAKE_VERSION='20160818'
PATH='/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/tmp/legacy/usr/sbin:/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/tmp/legacy/usr/bin:/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/tmp/legacy/bin:/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/tmp/usr/sbin:/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/usr/src'
OBJTOP='/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/sys/GENERIC64vtsc-NODBG/modules/usr/src'
.MAKE.MAKEFILES='/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/Makefile /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='. /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/sys/GENERIC64vtsc-NODBG'
1 error


# more /usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/usr/src/sys/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/sys/GENERIC64vtsc-NODBG/modules/usr/src/sys/modules/drm2/drm2/drm_auth.o.meta
CMD /usr/bin/clang -target powerpc64-unknown-freebsd12.0 --sysroot=/usr/obj/powerpc64vtsc_clang_altbinutils_kernel/powerpc.powerpc64/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/sys/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=iso9899: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/sys/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 pointers 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 'count' 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 pointers 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 'count' here
refcount_acquire(volatile u_int *count)
                                 ^
2 errors generated.
*** Error code 1
Comment 1 Justin Hibbits freebsd_committer freebsd_triage 2017-10-11 02:43:17 UTC

*** This bug has been marked as a duplicate of bug 220122 ***