[Bug 269763] 13.2-BETA armv7 build fails in drm_vm (on TEGRA124)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 22 Feb 2023 20:48:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269763

            Bug ID: 269763
           Summary: 13.2-BETA armv7 build fails in drm_vm (on TEGRA124)
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: freebsd@igalic.co

I don't know if TEGRA124 is still a supported KERNCONF, but for 13.2 BETA it
currently fails to build:

Building
/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124/drm_vm.o
--- drm_sysctl.o ---
/poudriere/jails/132-release-armv7/usr/src/sys/dev/drm2/drm_sysctl.c:81:47:
error: too many arguments provided to function-like macro invocation
        SYSCTL_FOREACH(oid, SYSCTL_CHILDREN(drioid), oid_link) {
                                                     ^
/poudriere/jails/132-release-armv7/usr/src/sys/sys/sysctl.h:908:9: note: macro
'SYSCTL_FOREACH' defined here
#define SYSCTL_FOREACH(oidp, list) \
        ^
/poudriere/jails/132-release-armv7/usr/src/sys/dev/drm2/drm_sysctl.c:81:2:
error: use of undeclared identifier 'SYSCTL_FOREACH'
        SYSCTL_FOREACH(oid, SYSCTL_CHILDREN(drioid), oid_link) {
        ^
2 errors generated.
*** [drm_sysctl.o] Error code 1

make[2]: stopped in
/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124
.ERROR_TARGET='drm_sysctl.o'
.ERROR_META_FILE='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124/drm_sysctl.o.meta'
.MAKE.LEVEL='2'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose
curdirOk=yes'
_ERROR_CMD='cc -target armv7-gnueabihf-freebsd13.2
--sysroot=/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp
-B/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/usr/bin -c
-O2 -pipe  -fno-strict-aliasing  -g -nostdinc  -I.
-I/poudriere/jails/132-release-armv7/usr/src/sys
-I/poudriere/jails/132-release-armv7/usr/src/sys/contrib/ck/include
-I/poudriere/jails/132-release-armv7/usr/src/sys/contrib/libfdt
-I/poudriere/jails/132-release-armv7/usr/src/sys/contrib/device-tree/include
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common  
-march=armv7a -DLINUX_DTS_VERSION=\""5.9"\" -funwind-tables
-fdebug-prefix-map=./machine=/poudriere/jails/132-release-armv7/usr/src/sys/arm/include
-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 -Wno-error=unused-but-set-variable
-Wno-format-zero-length   -mfpu=none  -std=iso9899:1999 -Werror 
/poudriere/jails/132-release-armv7/usr/src/sys/dev/drm2/drm_sysctl.c;
ctfconvert -L VERSION -g drm_sysctl.o;'
.CURDIR='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124'
.MAKE='make'
.OBJDIR='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124'
.TARGETS='all'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='arm'
MACHINE_ARCH='armv7'
MAKEOBJDIRPREFIX=''
MAKESYSPATH='/poudriere/jails/132-release-armv7/usr/src/share/mk'
MAKE_VERSION='20210110'
PATH='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/usr/sbin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/usr/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/usr/sbin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/usr/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/poudriere/jails/132-release-armv7/usr/src'
OBJTOP='/poudriere/jails/132-release-armv7/usr/src'
.MAKE.MAKEFILES='/poudriere/jails/132-release-armv7/usr/src/share/mk/sys.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/local.sys.env.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/src.sys.env.mk
/poudriere/jails/132-release-armv7/etc/src-env.conf
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.mkopt.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/src.sys.obj.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/auto.obj.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.suffixes.mk /dev/null
/poudriere/jails/132-release-armv7/usr/src/share/mk/local.sys.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/src.sys.mk
/poudriere/jails/132-release-armv7/etc/src.conf Makefile
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.pre.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.own.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.opts.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.cpu.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.compiler.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.linker.mk
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.opts.mk
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.post.mk
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.mk'
.PATH='.
/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124'
--- modules-all ---
*** [modules-all] Error code 6

make[2]: stopped in
/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124
.ERROR_TARGET='modules-all'
.ERROR_META_FILE='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124/drm_sysctl.o.meta'
.MAKE.LEVEL='2'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose
curdirOk=yes'
_ERROR_CMD='cc -target armv7-gnueabihf-freebsd13.2
--sysroot=/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp
-B/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/usr/bin -c
-O2 -pipe  -fno-strict-aliasing  -g -nostdinc  -I.
-I/poudriere/jails/132-release-armv7/usr/src/sys
-I/poudriere/jails/132-release-armv7/usr/src/sys/contrib/ck/include
-I/poudriere/jails/132-release-armv7/usr/src/sys/contrib/libfdt
-I/poudriere/jails/132-release-armv7/usr/src/sys/contrib/device-tree/include
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common  
-march=armv7a -DLINUX_DTS_VERSION=\""5.9"\" -funwind-tables
-fdebug-prefix-map=./machine=/poudriere/jails/132-release-armv7/usr/src/sys/arm/include
-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 -Wno-error=unused-but-set-variable
-Wno-format-zero-length   -mfpu=none  -std=iso9899:1999 -Werror 
/poudriere/jails/132-release-armv7/usr/src/sys/dev/drm2/drm_sysctl.c;
ctfconvert -L VERSION -g drm_sysctl.o;'
.CURDIR='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124'
.MAKE='make'
.OBJDIR='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124'
.TARGETS='all'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='arm'
MACHINE_ARCH='armv7'
MAKEOBJDIRPREFIX=''
MAKESYSPATH='/poudriere/jails/132-release-armv7/usr/src/share/mk'
MAKE_VERSION='20210110'
PATH='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/usr/sbin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/usr/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/usr/sbin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/usr/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/poudriere/jails/132-release-armv7/usr/src'
OBJTOP='/poudriere/jails/132-release-armv7/usr/src'
.MAKE.MAKEFILES='/poudriere/jails/132-release-armv7/usr/src/share/mk/sys.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/local.sys.env.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/src.sys.env.mk
/poudriere/jails/132-release-armv7/etc/src-env.conf
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.mkopt.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/src.sys.obj.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/auto.obj.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.suffixes.mk /dev/null
/poudriere/jails/132-release-armv7/usr/src/share/mk/local.sys.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/src.sys.mk
/poudriere/jails/132-release-armv7/etc/src.conf Makefile
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.pre.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.own.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.opts.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.cpu.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.compiler.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.linker.mk
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.opts.mk
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.post.mk
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.mk'
.PATH='.
/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124'
2 errors

make[2]: stopped in
/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124
.ERROR_TARGET='modules-all'
.ERROR_META_FILE='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124/drm_sysctl.o.meta'
.MAKE.LEVEL='2'
MAKEFILE=''
.MAKE.MODE='meta missing-filemon=yes missing-meta=yes silent=yes verbose
curdirOk=yes'
_ERROR_CMD='cc -target armv7-gnueabihf-freebsd13.2
--sysroot=/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp
-B/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/usr/bin -c
-O2 -pipe  -fno-strict-aliasing  -g -nostdinc  -I.
-I/poudriere/jails/132-release-armv7/usr/src/sys
-I/poudriere/jails/132-release-armv7/usr/src/sys/contrib/ck/include
-I/poudriere/jails/132-release-armv7/usr/src/sys/contrib/libfdt
-I/poudriere/jails/132-release-armv7/usr/src/sys/contrib/device-tree/include
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common  
-march=armv7a -DLINUX_DTS_VERSION=\""5.9"\" -funwind-tables
-fdebug-prefix-map=./machine=/poudriere/jails/132-release-armv7/usr/src/sys/arm/include
-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 -Wno-error=unused-but-set-variable
-Wno-format-zero-length   -mfpu=none  -std=iso9899:1999 -Werror 
/poudriere/jails/132-release-armv7/usr/src/sys/dev/drm2/drm_sysctl.c;
ctfconvert -L VERSION -g drm_sysctl.o;'
.CURDIR='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124'
.MAKE='make'
.OBJDIR='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124'
.TARGETS='all'
DESTDIR=''
LD_LIBRARY_PATH=''
MACHINE='arm'
MACHINE_ARCH='armv7'
MAKEOBJDIRPREFIX=''
MAKESYSPATH='/poudriere/jails/132-release-armv7/usr/src/share/mk'
MAKE_VERSION='20210110'
PATH='/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/usr/sbin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/usr/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/usr/sbin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/usr/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/bin:/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/tmp/legacy/usr/libexec::/sbin:/bin:/usr/sbin:/usr/bin'
SRCTOP='/poudriere/jails/132-release-armv7/usr/src'
OBJTOP='/poudriere/jails/132-release-armv7/usr/src'
.MAKE.MAKEFILES='/poudriere/jails/132-release-armv7/usr/src/share/mk/sys.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/local.sys.env.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/src.sys.env.mk
/poudriere/jails/132-release-armv7/etc/src-env.conf
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.mkopt.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/src.sys.obj.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/auto.obj.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.suffixes.mk /dev/null
/poudriere/jails/132-release-armv7/usr/src/share/mk/local.sys.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/src.sys.mk
/poudriere/jails/132-release-armv7/etc/src.conf Makefile
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.pre.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.own.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.opts.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.cpu.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.compiler.mk
/poudriere/jails/132-release-armv7/usr/src/share/mk/bsd.linker.mk
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.opts.mk
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.post.mk
/poudriere/jails/132-release-armv7/usr/src/sys/conf/kern.mk'
.PATH='.
/usr/obj/poudriere/jails/132-release-armv7/usr/src/arm.armv7/sys/TEGRA124'

make[1]: stopped in /poudriere/jails/132-release-armv7/usr/src

make: stopped in /poudriere/jails/132-release-armv7/usr/src

-- 
You are receiving this mail because:
You are the assignee for the bug.