NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-amd64/56777: amdgpu: kernel module build failure



>Number:         56777
>Category:       port-amd64
>Synopsis:       amdgpu: kernel module build failure
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 02 07:40:00 +0000 2022
>Originator:     vazub
>Release:        9.99.96 -CURRENT
>Organization:
-
>Environment:
-
>Description:
zeronet$ ./build.sh -c clang -N0 -V MKLLVM=yes -V HAVE_LLVM=yes -T ../tools -O ../obj -U -j12 kernel=VAZUB-DEBUG
===> build.sh command:    ./build.sh -c clang -N0 -V MKLLVM=yes -V HAVE_LLVM=yes -T ../tools -O ../obj -U -j12 kernel=VAZUB-DEBUG
===> build.sh started:    Sat Apr  2 08:13:24 CEST 2022
===> NetBSD version:      9.99.96
===> MACHINE:             amd64
===> MACHINE_ARCH:        x86_64
===> Build platform:      NetBSD 9.99.95 amd64
===> HOST_SH:             /bin/sh
===> MAKECONF file:       /etc/mk.conf (File not found)
===> TOOLDIR path:        /home/vazub/code/github.com/netbsd/src/../tools
===> DESTDIR path:        /home/vazub/code/github.com/netbsd/src/../obj/destdir.amd64
===> RELEASEDIR path:     /home/vazub/code/github.com/netbsd/src/../obj/releasedir
===> Updated makewrapper: /home/vazub/code/github.com/netbsd/src/../tools/bin/nbmake-amd64
===> Building kernel without building new tools
===> Building kernel:     VAZUB-DEBUG
===> Build directory:     /home/vazub/code/github.com/netbsd/src/../obj/sys/arch/amd64/compile/VAZUB-DEBUG
cleandiring the kern library objects
cleaning the kern library objects
Build directory is /home/vazub/code/github.com/netbsd/src/../obj/sys/arch/amd64/compile/VAZUB-DEBUG
Don't forget to run "make depend"
depending the kern library objects
/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_bo_list.c:81:18: error: result of comparison of constant 288230376151711743 with expression of type 'unsigned int' is always false [-Werror,-Wtautological-constant-out-of-range-compare]
        if (num_entries > (SIZE_MAX - sizeof(struct amdgpu_bo_list))
            ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
--- amdgpu_bo_list.o ---

*** Failed target: amdgpu_bo_list.o
*** Failed commands:
	${NORMAL_C}
	=> @: echo "compile  VAZUB-DEBUG/amdgpu_bo_list.o" &&  : echo /home/vazub/code/github.com/netbsd/src/../tools/bin/x86_64--netbsd-clang   -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float   -ffreestanding -fno-zero-initialized-in-bss  -g -O2 -fno-omit-frame-pointer -fstack-protector -Wstack-protector  --param ssp-buffer-size=1    -fno-strict-aliasing -fno-common    -std=gnu99    -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare -Walloca -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-shadow -Wno-pointer-arith -Wno-override-init -Wno-type-limits -Wno-unknown-pragmas -Wno-conversion  -Wno-self-assign -Wno-error=address-of-packed-member  -Wno-error=constant-conversion   --sysroot=/home/vazub/code/github.com/
 netbsd/src/../obj/destdir.amd64 -Damd64 -Dx86_64 -I. -I/home/vazub/code/github.com/netbsd/src/sys/external/mit/xen-include-public/dist/ -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/libnv/dist -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/acpica/dist -I/home/vazub/code/github.com/netbsd/src/sys/../common/lib/libx86emu -I/home/vazub/code/github.com/netbsd/src/sys/../common/lib/libc/misc -I/home/vazub/code/github.com/netbsd/src/sys/../common/include -I/home/vazub/code/github.com/netbsd/src/sys/arch  -I/home/vazub/code/github.com/netbsd/src/sys -nostdinc -DCOMPAT_UTILS  -D__XEN_INTERFACE_VERSION__="0x3020a"  -DDIAGNOSTIC  -DDEBUG  -DCOMPAT_44 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/home/vazub/code/github.com/netbsd/src/sys/lib/libkern/../../../common/lib/libc/quad -I/home/vazub/code/github.com/netbsd/src/sys/lib/libkern/../../../common/lib/libc/string -I/home/vazub/code/github.com/netbsd/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -I/home/vazub
 /code/github.com/netbsd/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/atomic -I/home/vazub/code/github.com/netbsd/src/sys/lib/libkern/../../../common/lib/libc/hash/sha3 -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/include/asic_reg -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/powerplay/inc -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/powerplay/smumgr -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/acp/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/include -I/home/vazub/code
 /github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/dc -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc/hw -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/clk_mgr -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/modules/inc -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/modules/hdcp -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/amdgpu_dm -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/dmub/inc -DCONFIG_DRM_AMD_ACP=1 -DCONFIG_DRM_AMD_DC_DCN=1 -DCONFIG_DRM_AMD_DC_HDCP=1 -DCONFIG_PERF_EVENTS=0  -D_FORTIFY_SOURCE=2 -I/home/vazub/code/github.com/netbsd/src/sys/external/isc/atheros_hal/dist -I/home/vazub/code/github.com/netbsd/src/sys/external/isc/atheros_hal/ic 
 -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/include/drm -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/common/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/include/drm -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/include/uapi -D__KERNEL__ -DCONFIG_X86 -DCONFIG_X86_64 -DCONFIG_X86_PAT -DCONFIG_BACKLIGHT_CLASS_DEVICE=0 -DCONFIG_BACKLIGHT_CLASS_DEVICE_MODULE=0 -DCONFIG_DRM_FBDEV_EMULATION=1 -DCONFIG_DRM_FBDEV_OVERALLOC=100 -DCONFIG_FB=0 -DCONFIG_LOCKDEP=0 -DCONFIG_PCI=1 -I/home/vazub/code/github.com/netbsd/src/sys/../common/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/acpica/dist/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/libnv/dist -c /home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/a
 mdgpu_bo_list.c -o amdgpu_bo_list.o  &&  /home/vazub/code/github.com/netbsd/src/../tools/bin/x86_64--netbsd-clang   -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float   -ffreestanding -fno-zero-initialized-in-bss  -g -O2 -fno-omit-frame-pointer -fstack-protector -Wstack-protector  --param ssp-buffer-size=1    -fno-strict-aliasing -fno-common    -std=gnu99    -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare -Walloca -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-shadow -Wno-pointer-arith -Wno-override-init -Wno-type-limits -Wno-unknown-pragmas -Wno-conversion  -Wno-self-assign -Wno-error=address-of-packed-member  -Wno-error=constant-conversion   --sysroot=/home/vazub/code/github.com/netbsd/src/../obj/des
 tdir.amd64 -Damd64 -Dx86_64 -I. -I/home/vazub/code/github.com/netbsd/src/sys/external/mit/xen-include-public/dist/ -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/libnv/dist -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/acpica/dist -I/home/vazub/code/github.com/netbsd/src/sys/../common/lib/libx86emu -I/home/vazub/code/github.com/netbsd/src/sys/../common/lib/libc/misc -I/home/vazub/code/github.com/netbsd/src/sys/../common/include -I/home/vazub/code/github.com/netbsd/src/sys/arch  -I/home/vazub/code/github.com/netbsd/src/sys -nostdinc -DCOMPAT_UTILS  -D__XEN_INTERFACE_VERSION__="0x3020a"  -DDIAGNOSTIC  -DDEBUG  -DCOMPAT_44 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/home/vazub/code/github.com/netbsd/src/sys/lib/libkern/../../../common/lib/libc/quad -I/home/vazub/code/github.com/netbsd/src/sys/lib/libkern/../../../common/lib/libc/string -I/home/vazub/code/github.com/netbsd/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -I/home/vazub/code/github.com/netb
 sd/src/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/atomic -I/home/vazub/code/github.com/netbsd/src/sys/lib/libkern/../../../common/lib/libc/hash/sha3 -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/include/asic_reg -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/powerplay/inc -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/powerplay/smumgr -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/acp/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/include -I/home/vazub/code/github.com/netbsd/sr
 c/sys/external/bsd/drm2/dist/drm/amd/display/dc -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc/hw -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/clk_mgr -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/modules/inc -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/modules/hdcp -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/amdgpu_dm -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/display/dmub/inc -DCONFIG_DRM_AMD_ACP=1 -DCONFIG_DRM_AMD_DC_DCN=1 -DCONFIG_DRM_AMD_DC_HDCP=1 -DCONFIG_PERF_EVENTS=0  -D_FORTIFY_SOURCE=2 -I/home/vazub/code/github.com/netbsd/src/sys/external/isc/atheros_hal/dist -I/home/vazub/code/github.com/netbsd/src/sys/external/isc/atheros_hal/ic -I/home/vazub/code/gi
 thub.com/netbsd/src/sys/external/bsd/drm2/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/include/drm -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/common/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/include/drm -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/include/uapi -D__KERNEL__ -DCONFIG_X86 -DCONFIG_X86_64 -DCONFIG_X86_PAT -DCONFIG_BACKLIGHT_CLASS_DEVICE=0 -DCONFIG_BACKLIGHT_CLASS_DEVICE_MODULE=0 -DCONFIG_DRM_FBDEV_EMULATION=1 -DCONFIG_DRM_FBDEV_OVERALLOC=100 -DCONFIG_FB=0 -DCONFIG_LOCKDEP=0 -DCONFIG_PCI=1 -I/home/vazub/code/github.com/netbsd/src/sys/../common/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/acpica/dist/include -I/home/vazub/code/github.com/netbsd/src/sys/external/bsd/libnv/dist -c /home/vazub/code/github.com/netbsd/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_bo_list.c -o am
 dgpu_bo_list.o  &&  : echo /home/vazub/code/github.com/netbsd/src/../tools/bin/nbctfconvert -g -L VERSION -g amdgpu_bo_list.o &&  /home/vazub/code/github.com/netbsd/src/../tools/bin/nbctfconvert -g -L VERSION -g amdgpu_bo_list.o
*** [amdgpu_bo_list.o] Error code 1

nbmake: stopped in /home/vazub/code/github.com/netbsd/obj/sys/arch/amd64/compile/VAZUB-DEBUG
1 error

nbmake: stopped in /home/vazub/code/github.com/netbsd/obj/sys/arch/amd64/compile/VAZUB-DEBUG

ERROR: Failed to make all in "/home/vazub/code/github.com/netbsd/src/../obj/sys/arch/amd64/compile/VAZUB-DEBUG"
*** BUILD ABORTED ***

>How-To-Repeat:
Try to build with latest HEAD as of 2022.04.01
>Fix:
-



Home | Main Index | Thread Index | Old Index