>>> libdrm 2.4.114 Extracting xzcat /home/buildroot/autobuild/run/instance-2/dl/libdrm/libdrm-2.4.114.tar.xz | tar --strip-components=1 -C /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114 -xf - >>> libdrm 2.4.114 Patching Applying 0001-tests-meson.build-disable-nouveau-tests-for-static-b.patch using patch: patching file tests/meson.build Hunk #1 succeeded at 40 (offset -4 lines). >>> libdrm 2.4.114 Configuring rm -rf /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114//build mkdir -p /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114//build sed -e "/^\[binaries\]$/s:$::" -e "/^\[properties\]$/s:$::" -e "s%@TARGET_CC@%/home/buildroot/autobuild/run/instance-2/output-1/host/bin/mips-linux-gnu-gcc%g" -e "s%@TARGET_CXX@%/home/buildroot/autobuild/run/instance-2/output-1/host/bin/mips-linux-gnu-g++%g" -e "s%@TARGET_AR@%/home/buildroot/autobuild/run/instance-2/output-1/host/bin/mips-linux-gnu-gcc-ar%g" -e "s%@TARGET_FC@%/bin/false%g" -e "s%@TARGET_STRIP@%/home/buildroot/autobuild/run/instance-2/output-1/host/bin/mips-linux-gnu-strip%g" -e "s%@TARGET_ARCH@%mips%g" -e "s%@TARGET_CPU@%%g" -e "s%@TARGET_ENDIAN@%big%g" -e "s%@TARGET_FCFLAGS@%%g" -e "s%@TARGET_CFLAGS@%'-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-Os', '-g0', '-D_FORTIFY_SOURCE=1'%g" -e "s%@TARGET_LDFLAGS@%%g" -e "s%@TARGET_CXXFLAGS@%'-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-Os', '-g0', '-D_FORTIFY_SOURCE=1'%g" -e "s%@BR2_CMAKE@%/home/buildroot/autobuild/run/instance-2/output-1/host/bin/cmake%g" -e "s%@PKGCONF_HOST_BINARY@%/home/buildroot/autobuild/run/instance-2/output-1/host/bin/pkgconf%g" -e "s%@HOST_DIR@%/home/buildroot/autobuild/run/instance-2/output-1/host%g" -e "s%@STAGING_DIR@%/home/buildroot/autobuild/run/instance-2/output-1/host/mips-buildroot-linux-gnu/sysroot%g" -e "s%@STATIC@%false%g" /home/buildroot/autobuild/run/instance-2/buildroot/support/misc/cross-compilation.conf.in > /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114//build/cross-compilation.conf PATH="/home/buildroot/autobuild/run/instance-2/output-1/host/bin:/home/buildroot/autobuild/run/instance-2/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" CC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" PYTHONNOUSERSITE=y /home/buildroot/autobuild/run/instance-2/output-1/host/bin/meson setup --prefix=/usr --libdir=lib --default-library=shared --buildtype=release --cross-file=/home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114//build/cross-compilation.conf -Db_pie=false -Dstrip=false -Dbuild.pkg_config_path=/home/buildroot/autobuild/run/instance-2/output-1/host/lib/pkgconfig -Dbuild.cmake_prefix_path=/home/buildroot/autobuild/run/instance-2/output-1/host/lib/cmake -Dcairo-tests=disabled -Dman-pages=disabled -Dintel=disabled -Dradeon=disabled -Damdgpu=enabled -Dnouveau=disabled -Dvmwgfx=disabled -Domap=disabled -Detnaviv=disabled -Dexynos=disabled -Dfreedreno=disabled -Dtegra=disabled -Dvc4=disabled -Dudev=false -Dvalgrind=disabled /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114/ /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114//build The Meson build system Version: 1.0.0 Source dir: /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114 Build dir: /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114/build Build type: cross build Project name: libdrm Project version: 2.4.114 C compiler for the host machine: /home/buildroot/autobuild/run/instance-2/output-1/host/bin/mips-linux-gnu-gcc (gcc 5.3.0 "mips-linux-gnu-gcc (Sourcery CodeBench Lite 2016.05-8) 5.3.0") C linker for the host machine: /home/buildroot/autobuild/run/instance-2/output-1/host/bin/mips-linux-gnu-gcc ld.bfd 2.25.51 C compiler for the build machine: /usr/bin/gcc (gcc 7.5.0 "gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0") C linker for the build machine: /usr/bin/gcc ld.bfd 2.30 Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: mips Host machine cpu: Target machine cpu family: mips Target machine cpu: Run-time dependency threads found: YES Program symbols-check.py found: YES (/home/buildroot/autobuild/run/instance-2/output-1/host/bin/python3 /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114/symbols-check.py) Program nm found: YES (/usr/bin/nm) Program python3 found: YES (/home/buildroot/autobuild/run/instance-2/output-1/host/bin/python3) Found pkg-config: /home/buildroot/autobuild/run/instance-2/output-1/host/bin/pkgconf (1.6.3) Found CMake: /home/buildroot/autobuild/run/instance-2/output-1/host/bin/cmake (3.22.3) Run-time dependency atomic_ops found: NO (tried pkgconfig and cmake) Checking if "Intel Atomics" : links: YES Dependency pciaccess skipped: feature intel disabled Checking for function "dlsym" : NO Library dl found: YES Checking for function "clock_gettime" : YES Library m found: YES Check usable header "sys/select.h" : YES Check usable header "alloca.h" : YES Header "sys/sysmacros.h" has symbol "major" : YES Header "sys/sysmacros.h" has symbol "minor" : YES Header "sys/sysmacros.h" has symbol "makedev" : YES Header "sys/mkdev.h" has symbol "major" : NO Checking for function "open_memstream" : YES Compiler for C supports arguments -Wsign-compare: YES Compiler for C supports arguments -Werror=undef: YES Compiler for C supports arguments -Werror=implicit-function-declaration: YES Compiler for C supports arguments -Wpointer-arith: YES Compiler for C supports arguments -Wwrite-strings: YES Compiler for C supports arguments -Wstrict-prototypes: YES Compiler for C supports arguments -Wmissing-prototypes: YES Compiler for C supports arguments -Wmissing-declarations: YES Compiler for C supports arguments -Wnested-externs: YES Compiler for C supports arguments -Wpacked: YES Compiler for C supports arguments -Wswitch-enum: YES Compiler for C supports arguments -Wmissing-format-attribute: YES Compiler for C supports arguments -Wstrict-aliasing=2: YES Compiler for C supports arguments -Winit-self: YES Compiler for C supports arguments -Winline: YES Compiler for C supports arguments -Wshadow: YES Compiler for C supports arguments -Wdeclaration-after-statement: YES Compiler for C supports arguments -Wold-style-definition: YES Compiler for C supports arguments -Wno-unused-parameter: YES Compiler for C supports arguments -Wno-attributes: YES Compiler for C supports arguments -Wno-long-long: YES Compiler for C supports arguments -Wno-missing-field-initializers: YES Run-time dependency cunit found: YES 2.1-3 Dependency cairo skipped: feature cairo-tests disabled Dependency valgrind skipped: feature valgrind disabled Program rst2man rst2man.py skipped: feature man-pages disabled Compiler for C supports function attribute visibility:hidden: YES Configuring config.h using configuration Build targets in project: 13 NOTICE: Future-deprecated features used: * 0.55.0: {'ExternalProgram.path'} libdrm 2.4.114 Intel : False Radeon : False AMDGPU : True Nouveau : False vmwgfx : False OMAP : False Freedreno : False Freedreon-kgsl : False Tegra : False Etnaviv : False EXYNOS : False VC4 : False User defined options Cross files : /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114//build/cross-compilation.conf build.cmake_prefix_path: /home/buildroot/autobuild/run/instance-2/output-1/host/lib/cmake build.pkg_config_path : /home/buildroot/autobuild/run/instance-2/output-1/host/lib/pkgconfig buildtype : release default_library : shared libdir : lib prefix : /usr strip : false b_pie : false amdgpu : enabled cairo-tests : disabled etnaviv : disabled exynos : disabled freedreno : disabled intel : disabled man-pages : disabled nouveau : disabled omap : disabled radeon : disabled tegra : disabled udev : false valgrind : disabled vc4 : disabled vmwgfx : disabled Found ninja-1.11.1.git.kitware.jobserver-1 at /home/buildroot/autobuild/run/instance-2/output-1/host/bin/ninja >>> libdrm 2.4.114 Building PATH="/home/buildroot/autobuild/run/instance-2/output-1/host/bin:/home/buildroot/autobuild/run/instance-2/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PYTHONNOUSERSITE=y /home/buildroot/autobuild/run/instance-2/output-1/host/bin/ninja -C /home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114//build ninja: Entering directory `/home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114//build' [1/57] Generating format_mod_static_table with a custom command [2/57] Compiling C object amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vm.c.o [3/57] Compiling C object amdgpu/libdrm_amdgpu.so.1.0.0.p/handle_table.c.o [4/57] Compiling C object amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_asic_id.c.o [5/57] Compiling C object amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_gpu_info.c.o [6/57] Compiling C object amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_vamgr.c.o [7/57] Compiling C object tests/util/libutil.a.p/format.c.o [8/57] Compiling C object libdrm.so.2.4.0.p/xf86drmRandom.c.o [9/57] Compiling C object amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_device.c.o In file included from ../amdgpu/amdgpu_device.c:41:0: ../amdgpu/amdgpu_device.c: In function 'amdgpu_device_initialize': ../amdgpu/amdgpu_internal.h:160:20: warning: inlining failed in call to 'update_references': call is unlikely and code size would grow [-Winline] static inline bool update_references(atomic_t *dst, atomic_t *src) ^ ../amdgpu/amdgpu_device.c:138:6: warning: called from here [-Winline] if (update_references(&(*dst)->refcount, &src->refcount)) ^ In file included from ../amdgpu/amdgpu_device.c:41:0: ../amdgpu/amdgpu_device.c: In function 'amdgpu_device_deinitialize': ../amdgpu/amdgpu_internal.h:160:20: warning: inlining failed in call to 'update_references': call is unlikely and code size would grow [-Winline] static inline bool update_references(atomic_t *dst, atomic_t *src) ^ ../amdgpu/amdgpu_device.c:138:6: warning: called from here [-Winline] if (update_references(&(*dst)->refcount, &src->refcount)) ^ [10/57] Compiling C object libdrm.so.2.4.0.p/xf86drmHash.c.o [11/57] Compiling C object tests/util/libutil.a.p/kms.c.o [12/57] Compiling C object libdrm.so.2.4.0.p/xf86drmSL.c.o [13/57] Compiling C object amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_bo.c.o ../amdgpu/amdgpu_bo.c: In function 'amdgpu_find_bo_by_cpu_mapping': ../amdgpu/amdgpu_bo.c:554:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] cpu < (void*)((uintptr_t)bo->cpu_ptr + bo->alloc_size)) ^ [14/57] Compiling C object tests/modetest/modetest.p/buffers.c.o ../tests/modetest/buffers.c: In function 'bo_create': ../tests/modetest/buffers.c:320:13: warning: 'virtual' may be used uninitialized in this function [-Wmaybe-uninitialized] planes[0] = virtual; ^ [15/57] Compiling C object tests/proptest/proptest.p/proptest.c.o [16/57] Compiling C object tests/modeprint/modeprint.p/modeprint.c.o [17/57] Compiling C object amdgpu/libdrm_amdgpu.so.1.0.0.p/amdgpu_cs.c.o [18/57] Compiling C object tests/vbltest/vbltest.p/vbltest.c.o [19/57] Compiling C object tests/modetest/modetest.p/cursor.c.o [20/57] Compiling C object tests/amdgpu/amdgpu_test.p/bo_tests.c.o [21/57] Compiling C object tests/amdgpu/amdgpu_test.p/cs_tests.c.o [22/57] Compiling C object tests/amdgpu/amdgpu_test.p/amdgpu_test.c.o [23/57] Compiling C object libdrm.so.2.4.0.p/xf86drmMode.c.o ../xf86drmMode.c: In function 'drmModeAddFB': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:274:5: warning: called from here [-Winline] if ((ret = DRM_IOCTL(fd, DRM_IOCTL_MODE_ADDFB, &f))) ^ ../xf86drmMode.c: In function 'drmModeAddFB2WithModifiers': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:300:5: warning: called from here [-Winline] if ((ret = DRM_IOCTL(fd, DRM_IOCTL_MODE_ADDFB2, &f))) ^ ../xf86drmMode.c: In function 'drmModeRmFB': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:320:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_RMFB, &bufferId); ^ ../xf86drmMode.c: In function 'drmModeDirtyFB': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:358:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_DIRTYFB, &dirty); ^ ../xf86drmMode.c: In function 'drmModeSetCrtc': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:415:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_SETCRTC, &crtc); ^ ../xf86drmMode.c: In function 'drmModeSetCursor': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:434:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_CURSOR, &arg); ^ ../xf86drmMode.c: In function 'drmModeSetCursor2': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:452:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_CURSOR2, &arg); ^ ../xf86drmMode.c: In function 'drmModeMoveCursor': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:465:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_CURSOR, &arg); ^ ../xf86drmMode.c: In function 'drmModeAttachMode': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:644:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_ATTACHMODE, &res); ^ ../xf86drmMode.c: In function 'drmModeDetachMode': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:655:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_DETACHMODE, &res); ^ ../xf86drmMode.c: In function 'drmModeConnectorSetProperty': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:881:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_SETPROPERTY, &osp); ^ ../xf86drmMode.c: In function 'drmModeCrtcGetGamma': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1003:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_GETGAMMA, &l); ^ ../xf86drmMode.c: In function 'drmModeCrtcSetGamma': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1019:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_SETGAMMA, &l); ^ ../xf86drmMode.c: In function 'drmModePageFlip': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1101:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_PAGE_FLIP, &flip); ^ ../xf86drmMode.c: In function 'drmModePageFlipTarget': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1117:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_PAGE_FLIP, &flip_target); ^ ../xf86drmMode.c: In function 'drmModeSetPlane': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1143:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_SETPLANE, &s); ^ ../xf86drmMode.c: In function 'drmModeObjectSetProperty': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1341:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_OBJ_SETPROPERTY, &prop); ^ ../xf86drmMode.c: In function 'drmModeAtomicCommit': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1602:6: warning: called from here [-Winline] ret = DRM_IOCTL(fd, DRM_IOCTL_MODE_ATOMIC, &atomic); ^ ../xf86drmMode.c: In function 'drmModeCreatePropertyBlob': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1631:6: warning: called from here [-Winline] ret = DRM_IOCTL(fd, DRM_IOCTL_MODE_CREATEPROPBLOB, &create); ^ ../xf86drmMode.c: In function 'drmModeDestroyPropertyBlob': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1646:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_DESTROYPROPBLOB, &destroy); ^ ../xf86drmMode.c: In function 'drmModeCreateLease': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1661:6: warning: called from here [-Winline] ret = DRM_IOCTL(fd, DRM_IOCTL_MODE_CREATE_LEASE, &create); ^ ../xf86drmMode.c: In function 'drmModeListLessees': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1678:6: warning: called from here [-Winline] if (DRM_IOCTL(fd, DRM_IOCTL_MODE_LIST_LESSEES, &list)) ^ ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1687:6: warning: called from here [-Winline] if (DRM_IOCTL(fd, DRM_IOCTL_MODE_LIST_LESSEES, &list)) { ^ ../xf86drmMode.c: In function 'drmModeGetLease': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1705:6: warning: called from here [-Winline] if (DRM_IOCTL(fd, DRM_IOCTL_MODE_GET_LEASE, &get)) ^ ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1714:6: warning: called from here [-Winline] if (DRM_IOCTL(fd, DRM_IOCTL_MODE_GET_LEASE, &get)) { ^ ../xf86drmMode.c: In function 'drmModeRevokeLease': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1733:6: warning: called from here [-Winline] ret = DRM_IOCTL(fd, DRM_IOCTL_MODE_REVOKE_LEASE, &revoke); ^ ../xf86drmMode.c: In function 'drmModeGetFB2': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1748:6: warning: called from here [-Winline] err = DRM_IOCTL(fd, DRM_IOCTL_MODE_GETFB2, &get); ^ ../xf86drmMode.c: In function 'drmModeCreateDumbBuffer': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1840:6: warning: called from here [-Winline] ret = DRM_IOCTL(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create); ^ ../xf86drmMode.c: In function 'drmModeDestroyDumbBuffer': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1857:9: warning: called from here [-Winline] return DRM_IOCTL(fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy); ^ ../xf86drmMode.c: In function 'drmModeMapDumbBuffer': ../xf86drmMode.c:65:19: warning: inlining failed in call to 'DRM_IOCTL': call is unlikely and code size would grow [-Winline] static inline int DRM_IOCTL(int fd, unsigned long cmd, void *arg) ^ ../xf86drmMode.c:1868:6: warning: called from here [-Winline] ret = DRM_IOCTL(fd, DRM_IOCTL_MODE_MAP_DUMB, &map); ^ [24/57] Compiling C object tests/util/libutil.a.p/pattern.c.o [25/57] Compiling C object tests/amdgpu/amdgpu_test.p/vce_tests.c.o [26/57] Compiling C object tests/amdgpu/amdgpu_test.p/uvd_enc_tests.c.o [27/57] Linking static target tests/util/libutil.a [28/57] Compiling C object tests/amdgpu/amdgpu_test.p/vm_tests.c.o [29/57] Compiling C object tests/amdgpu/amdgpu_test.p/deadlock_tests.c.o [30/57] Compiling C object tests/amdgpu/amdgpu_test.p/syncobj_tests.c.o [31/57] Compiling C object tests/amdgpu/amdgpu_test.p/security_tests.c.o [32/57] Compiling C object tests/amdgpu/amdgpu_test.p/ras_tests.c.o ../tests/amdgpu/ras_tests.c: In function '__amdgpu_ras_ip_inject_test': ../tests/amdgpu/ras_tests.c:780:10: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'uint64_t {aka const long long unsigned int}' [-Wformat=] printf("\t Test %s@block %s, subblock %d, error_type %s, address %ld, value %ld: %s\n", ^ ../tests/amdgpu/ras_tests.c:780:10: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'uint64_t {aka const long long unsigned int}' [-Wformat=] [33/57] Compiling C object tests/amdgpu/amdgpu_test.p/basic_tests.c.o ../tests/amdgpu/basic_tests.c: In function 'amdgpu_userptr_test': ../tests/amdgpu/basic_tests.c:2206:2: warning: ignoring return value of 'posix_memalign', declared with attribute warn_unused_result [-Wunused-result] posix_memalign(&ptr, sysconf(_SC_PAGE_SIZE), BUFFER_SIZE); ^ [34/57] Compiling C object tests/amdgpu/amdgpu_test.p/jpeg_tests.c.o [35/57] Compiling C object tests/amdgpu/amdgpu_test.p/shader_test_util.c.o FAILED: tests/amdgpu/amdgpu_test.p/shader_test_util.c.o /home/buildroot/autobuild/run/instance-2/output-1/host/bin/mips-linux-gnu-gcc -Itests/amdgpu/amdgpu_test.p -Itests/amdgpu -I../tests/amdgpu -I. -I.. -I../include/drm -Iamdgpu -I../amdgpu -I/home/buildroot/autobuild/run/instance-2/output-1/host/mips-buildroot-linux-gnu/sysroot/usr/include -fdiagnostics-color=always -Wall -Winvalid-pch -std=c11 -O3 -include config.h -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -pthread -MD -MQ tests/amdgpu/amdgpu_test.p/shader_test_util.c.o -MF tests/amdgpu/amdgpu_test.p/shader_test_util.c.o.d -o tests/amdgpu/amdgpu_test.p/shader_test_util.c.o -c ../tests/amdgpu/shader_test_util.c In file included from ../tests/amdgpu/shader_test_util.c:10:0: ../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:113:2: note: (near initialization for 'shader_test_ps[0][0].patchinfo_code_size') ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:114:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:114:2: note: (near initialization for 'shader_test_ps[0][0].patchinfo_code') ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:116:35: error: initializer element is not constant ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:116:35: note: (near initialization for 'shader_test_ps[0][0].num_sh_reg') ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:117:40: error: initializer element is not constant ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:119:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:117:40: note: (near initialization for 'shader_test_ps[0][0].num_context_reg') ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:119:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:29: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:113:2: note: (near initialization for 'shader_test_ps[0][1].patchinfo_code_size') ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:29: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:114:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:29: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:114:2: note: (near initialization for 'shader_test_ps[0][1].patchinfo_code') ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:29: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:116:35: error: initializer element is not constant ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:29: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:116:35: note: (near initialization for 'shader_test_ps[0][1].num_sh_reg') ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:119:29: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:117:40: error: initializer element is not constant ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:119:29: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:117:40: note: (near initialization for 'shader_test_ps[0][1].num_context_reg') ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:119:29: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 9), SHADER_PS_INFO(tex, 9)}, ^ ../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:113:2: note: (near initialization for 'shader_test_ps[1][0].patchinfo_code_size') ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:114:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:114:2: note: (near initialization for 'shader_test_ps[1][0].patchinfo_code') ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:116:35: error: initializer element is not constant ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:116:35: note: (near initialization for 'shader_test_ps[1][0].num_sh_reg') ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:117:40: error: initializer element is not constant ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:120:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:117:40: note: (near initialization for 'shader_test_ps[1][0].num_context_reg') ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:120:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:113:2: note: (near initialization for 'shader_test_ps[1][1].patchinfo_code_size') ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:114:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:114:2: note: (near initialization for 'shader_test_ps[1][1].patchinfo_code') ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:116:35: error: initializer element is not constant ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:116:35: note: (near initialization for 'shader_test_ps[1][1].num_sh_reg') ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:120:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:117:40: error: initializer element is not constant ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:120:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:117:40: note: (near initialization for 'shader_test_ps[1][1].num_context_reg') ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:120:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 10), SHADER_PS_INFO(tex, 10)}, ^ ../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:113:2: note: (near initialization for 'shader_test_ps[2][0].patchinfo_code_size') ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:114:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:114:2: note: (near initialization for 'shader_test_ps[2][0].patchinfo_code') ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:116:35: error: initializer element is not constant ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:116:35: note: (near initialization for 'shader_test_ps[2][0].num_sh_reg') ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:117:40: error: initializer element is not constant ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:121:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:117:40: note: (near initialization for 'shader_test_ps[2][0].num_context_reg') ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:121:3: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:113:2: error: initializer element is not constant ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:113:2: note: (near initialization for 'shader_test_ps[2][1].patchinfo_code_size') ps_##_ps##_shader_patchinfo_code_size_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:114:2: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:114:2: note: (near initialization for 'shader_test_ps[2][1].patchinfo_code') ps_##_ps##_shader_patchinfo_code_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:116:35: error: initializer element is not constant ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:116:35: note: (near initialization for 'shader_test_ps[2][1].num_sh_reg') ps_##_ps##_sh_registers_gfx##_n, ps_##_ps##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:121:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:117:40: error: initializer element is not constant ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:121:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:117:40: note: (near initialization for 'shader_test_ps[2][1].num_context_reg') ps_##_ps##_context_registers_gfx##_n, ps_##_ps##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:121:30: note: in expansion of macro 'SHADER_PS_INFO' {SHADER_PS_INFO(const, 11), SHADER_PS_INFO(tex, 11)}, ^ ../tests/amdgpu/shader_code.h:126:35: error: initializer element is not constant vs_##_vs##_sh_registers_gfx##_n, vs_##_vs##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:129:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 9)}, ^ ../tests/amdgpu/shader_code.h:126:35: note: (near initialization for 'shader_test_vs[0][0].num_sh_reg') vs_##_vs##_sh_registers_gfx##_n, vs_##_vs##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:129:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 9)}, ^ ../tests/amdgpu/shader_code.h:127:40: error: initializer element is not constant vs_##_vs##_context_registers_gfx##_n, vs_##_vs##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:129:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 9)}, ^ ../tests/amdgpu/shader_code.h:127:40: note: (near initialization for 'shader_test_vs[0][0].num_context_reg') vs_##_vs##_context_registers_gfx##_n, vs_##_vs##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:129:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 9)}, ^ ../tests/amdgpu/shader_code.h:126:35: error: initializer element is not constant vs_##_vs##_sh_registers_gfx##_n, vs_##_vs##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:130:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 10)}, ^ ../tests/amdgpu/shader_code.h:126:35: note: (near initialization for 'shader_test_vs[1][0].num_sh_reg') vs_##_vs##_sh_registers_gfx##_n, vs_##_vs##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:130:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 10)}, ^ ../tests/amdgpu/shader_code.h:127:40: error: initializer element is not constant vs_##_vs##_context_registers_gfx##_n, vs_##_vs##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:130:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 10)}, ^ ../tests/amdgpu/shader_code.h:127:40: note: (near initialization for 'shader_test_vs[1][0].num_context_reg') vs_##_vs##_context_registers_gfx##_n, vs_##_vs##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:130:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 10)}, ^ ../tests/amdgpu/shader_code.h:126:35: error: initializer element is not constant vs_##_vs##_sh_registers_gfx##_n, vs_##_vs##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:131:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 11)}, ^ ../tests/amdgpu/shader_code.h:126:35: note: (near initialization for 'shader_test_vs[2][0].num_sh_reg') vs_##_vs##_sh_registers_gfx##_n, vs_##_vs##_num_sh_registers_gfx##_n, \ ^ ../tests/amdgpu/shader_code.h:131:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 11)}, ^ ../tests/amdgpu/shader_code.h:127:40: error: initializer element is not constant vs_##_vs##_context_registers_gfx##_n, vs_##_vs##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:131:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 11)}, ^ ../tests/amdgpu/shader_code.h:127:40: note: (near initialization for 'shader_test_vs[2][0].num_context_reg') vs_##_vs##_context_registers_gfx##_n, vs_##_vs##_num_context_registers_gfx##_n} ^ ../tests/amdgpu/shader_code.h:131:3: note: in expansion of macro 'SHADER_VS_INFO' {SHADER_VS_INFO(RectPosTexFast, 11)}, ^ ../tests/amdgpu/shader_code.h:146:2: error: initializer element is not constant sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:149:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(9),}, ^ ../tests/amdgpu/shader_code.h:146:2: note: (near initialization for 'shader_test_gfx_info[0].sh_reg_base') sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:149:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(9),}, ^ ../tests/amdgpu/shader_code.h:146:23: error: initializer element is not constant sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:149:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(9),}, ^ ../tests/amdgpu/shader_code.h:146:23: note: (near initialization for 'shader_test_gfx_info[0].context_reg_base') sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:149:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(9),}, ^ ../tests/amdgpu/shader_code.h:146:2: error: initializer element is not constant sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:150:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(10),}, ^ ../tests/amdgpu/shader_code.h:146:2: note: (near initialization for 'shader_test_gfx_info[1].sh_reg_base') sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:150:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(10),}, ^ ../tests/amdgpu/shader_code.h:146:23: error: initializer element is not constant sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:150:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(10),}, ^ ../tests/amdgpu/shader_code.h:146:23: note: (near initialization for 'shader_test_gfx_info[1].context_reg_base') sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:150:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(10),}, ^ ../tests/amdgpu/shader_code.h:146:2: error: initializer element is not constant sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:151:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(11),}, ^ ../tests/amdgpu/shader_code.h:146:2: note: (near initialization for 'shader_test_gfx_info[2].sh_reg_base') sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:151:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(11),}, ^ ../tests/amdgpu/shader_code.h:146:23: error: initializer element is not constant sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:151:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(11),}, ^ ../tests/amdgpu/shader_code.h:146:23: note: (near initialization for 'shader_test_gfx_info[2].context_reg_base') sh_reg_base_gfx##_n, context_reg_base_gfx##_n ^ ../tests/amdgpu/shader_code.h:151:3: note: in expansion of macro 'SHADER_TEST_GFX_INFO' {SHADER_TEST_GFX_INFO(11),}, ^ ../tests/amdgpu/shader_test_util.c: In function 'amdgpu_dispatch_init': ../tests/amdgpu/shader_test_util.c:296:2: warning: enumeration value 'AMDGPU_TEST_GFX_MAX' not handled in switch [-Wswitch] switch (test_priv->info->version) { ^ ../tests/amdgpu/shader_test_util.c: In function 'amdgpu_dispatch_write_cumask': ../tests/amdgpu/shader_test_util.c:315:2: warning: enumeration value 'AMDGPU_TEST_GFX_MAX' not handled in switch [-Wswitch] switch (test_priv->info->version) { ^ ../tests/amdgpu/shader_test_util.c: In function 'amdgpu_dispatch_write2hw': ../tests/amdgpu/shader_test_util.c:534:2: warning: enumeration value 'AMDGPU_TEST_GFX_MAX' not handled in switch [-Wswitch] switch (test_priv->info->version) { ^ ../tests/amdgpu/shader_test_util.c: In function 'amdgpu_draw_setup_and_write_drawblt_surf_info': ../tests/amdgpu/shader_test_util.c:1161:2: warning: enumeration value 'AMDGPU_TEST_GFX_MAX' not handled in switch [-Wswitch] switch (test_priv->info->version) { ^ ../tests/amdgpu/shader_test_util.c: In function 'amdgpu_draw_setup_and_write_drawblt_state': ../tests/amdgpu/shader_test_util.c:1291:2: warning: enumeration value 'AMDGPU_TEST_GFX_MAX' not handled in switch [-Wswitch] switch (test_priv->info->version) { ^ ../tests/amdgpu/shader_test_util.c: In function 'amdgpu_draw_vs_RectPosTexFast_write2hw': ../tests/amdgpu/shader_test_util.c:1539:2: warning: enumeration value 'AMDGPU_TEST_GFX_MAX' not handled in switch [-Wswitch] switch (test_priv->info->version) { ^ ../tests/amdgpu/shader_test_util.c: In function 'amdgpu_draw_ps_write2hw': ../tests/amdgpu/shader_test_util.c:1674:2: warning: enumeration value 'AMDGPU_TEST_GFX_MAX' not handled in switch [-Wswitch] switch (test_priv->info->version) { ^ ../tests/amdgpu/shader_test_util.c: In function 'amdgpu_draw_draw': ../tests/amdgpu/shader_test_util.c:1690:2: warning: enumeration value 'AMDGPU_TEST_GFX_MAX' not handled in switch [-Wswitch] switch (test_priv->info->version) { ^ ../tests/amdgpu/shader_test_util.c: In function 'amdgpu_memcpy_draw_test': ../tests/amdgpu/shader_test_util.c:1983:2: warning: enumeration value 'AMDGPU_TEST_GFX_MAX' not handled in switch [-Wswitch] switch (test_info->version) { ^ [36/57] Compiling C object tests/amdgpu/amdgpu_test.p/cp_dma_tests.c.o [37/57] Compiling C object tests/modetest/modetest.p/modetest.c.o [38/57] Compiling C object tests/amdgpu/amdgpu_test.p/hotunplug_tests.c.o [39/57] Compiling C object tests/drmsl.p/drmsl.c.o [40/57] Compiling C object tests/hash.p/hash.c.o [41/57] Compiling C object tests/drmdevice.p/drmdevice.c.o [42/57] Compiling C object libdrm.so.2.4.0.p/xf86drm.c.o ../xf86drm.c: In function 'drmGetFormatModifierNameFromAmlogic': ../xf86drm.c:546:5: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mod_amlogic, "FBC,LAYOUT=%s,OPTIONS=%s", layout_str, opts_str); ^ ../xf86drm.c: In function 'drmGetFormatModifierNameFromNvidia': ../xf86drm.c:359:9: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&mod_nvidia, "BLOCK_LINEAR_2D,HEIGHT=%"PRIu64",KIND=%"PRIu64"," ^ [43/57] Compiling C object tests/amdgpu/amdgpu_stress.p/amdgpu_stress.c.o ../tests/amdgpu/amdgpu_stress.c: In function 'alloc_bo': ../tests/amdgpu/amdgpu_stress.c:178:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] fprintf(stdout, "Allocated BO number %u at 0x%lx, domain 0x%x, size %lu\n", ^ ../tests/amdgpu/amdgpu_stress.c:178:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] ../tests/amdgpu/amdgpu_stress.c: In function 'submit_ib': ../tests/amdgpu/amdgpu_stress.c:276:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] fprintf(stdout, "Submitted %u IBs to copy from %u(%lx) to %u(%lx) %lu bytes took %lu usec\n", ^ ../tests/amdgpu/amdgpu_stress.c:276:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] ../tests/amdgpu/amdgpu_stress.c:276:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] ../tests/amdgpu/amdgpu_stress.c:276:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 9 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] ../tests/amdgpu/amdgpu_stress.c: In function 'parse_size': ../tests/amdgpu/amdgpu_stress.c:296:21: warning: format '%li' expects argument of type 'long int *', but argument 3 has type 'uint64_t * {aka long long unsigned int *}' [-Wformat=] if (sscanf(optarg, "%li%1[kmgKMG]", &size, ext) < 1) { ^ ../tests/amdgpu/amdgpu_stress.c: In function 'main': ../tests/amdgpu/amdgpu_stress.c:378:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] fprintf(stderr, "Buffer size to small %lu\n", size); ^ [44/57] Compiling C object tests/amdgpu/amdgpu_test.p/vcn_tests.c.o ../tests/amdgpu/vcn_tests.c: In function 'suite_vcn_tests_enable': ../tests/amdgpu/vcn_tests.c:277:5: warning: 'dec_ring' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!dec_ring) { ^ ../tests/amdgpu/vcn_tests.c:283:36: warning: 'enc_ring' may be used uninitialized in this function [-Wmaybe-uninitialized] if (family_id == AMDGPU_FAMILY_AI || !enc_ring) { ^ ninja: build stopped: subcommand failed. package/pkg-generic.mk:290: recipe for target '/home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114/.stamp_built' failed make: *** [/home/buildroot/autobuild/run/instance-2/output-1/build/libdrm-2.4.114/.stamp_built] Error 1 make: Leaving directory '/home/buildroot/autobuild/run/instance-2/buildroot'