>>> mesa3d 21.1.6 Extracting xzcat /tmp/instance-3/dl/mesa3d/mesa-21.1.6.tar.xz | tar --strip-components=1 -C /tmp/instance-3/output-1/build/mesa3d-21.1.6 -xf - >>> mesa3d 21.1.6 Patching Applying 0001-c99_math-import-isinf-for-uclibc-based-toolchains.patch using patch: patching file include/c99_math.h Applying 0002-meson-Set-proper-value-for-LIBCLC_INCLUDEDIR.patch using patch: patching file src/gallium/frontends/clover/meson.build Applying 0003-vc4-add-meson-option-to-disable-optional-neon-suppor.patch using patch: patching file meson_options.txt Hunk #1 succeeded at 133 (offset 10 lines). patching file src/gallium/drivers/vc4/meson.build patching file src/gallium/drivers/vc4/vc4_tiling.h Applying 0004-src-util-rand_xor-Include-stddef.h-to-fix-build-erro.patch using patch: patching file src/util/rand_xor.c >>> mesa3d 21.1.6 Configuring rm -rf /tmp/instance-3/output-1/build/mesa3d-21.1.6//build mkdir -p /tmp/instance-3/output-1/build/mesa3d-21.1.6//build sed -e 's%@TARGET_CROSS@%/tmp/instance-3/output-1/host/bin/riscv32-linux-%g' -e 's%@TARGET_ARCH@%riscv64%g' -e 's%@TARGET_CPU@%%g' -e 's%@TARGET_ENDIAN@%little%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%@HOST_DIR@%/tmp/instance-3/output-1/host%g' -e 's%@STAGING_DIR@%/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot%g' -e 's%@STATIC@%false%g' -e "/^\[binaries\]$/s:$::" -e "/^\[properties\]$/s:$::" package/meson/cross-compilation.conf.in > /tmp/instance-3/output-1/build/mesa3d-21.1.6//build/cross-compilation.conf PATH="/tmp/instance-3/output-1/host/bin:/tmp/instance-3/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" CC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" PYTHONNOUSERSITE=y /tmp/instance-3/output-1/host/bin/meson --prefix=/usr --libdir=lib --default-library=shared --buildtype=release --cross-file=/tmp/instance-3/output-1/build/mesa3d-21.1.6//build/cross-compilation.conf -Db_pie=false -Dstrip=false -Dbuild.pkg_config_path=/tmp/instance-3/output-1/host/lib/pkgconfig -Dgallium-omx=disabled -Dpower8=disabled -Dllvm=disabled -Dgallium-opencl=disabled -Dglx=disabled -Dgallium-xa=disabled -Dgallium-vc4-neon=disabled -Dshared-glapi=enabled -Dgallium-drivers=panfrost -Dgallium-extra-hud=true -Ddri-drivers= -Ddri3=disabled -Dvulkan-drivers= -Dosmesa=false -Dopengl=true -Dgallium-va=disabled -Dplatforms= -Dgbm=disabled -Degl=disabled -Dgles1=disabled -Dgles2=disabled -Dgallium-xvmc=disabled -Dvalgrind=disabled -Dlibunwind=disabled -Dgallium-vdpau=disabled -Dlmsensors=disabled -Dzstd=enabled /tmp/instance-3/output-1/build/mesa3d-21.1.6/ /tmp/instance-3/output-1/build/mesa3d-21.1.6//build The Meson build system Version: 0.58.2 Source dir: /tmp/instance-3/output-1/build/mesa3d-21.1.6 Build dir: /tmp/instance-3/output-1/build/mesa3d-21.1.6/build Build type: cross build Program python found: YES (/usr/bin/python) Project name: mesa Project version: 21.1.6 C compiler for the host machine: /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc (gcc 10.2.0 "riscv32-linux-gcc.br_real (Buildroot 2020.08-14-ge5a2a90) 10.2.0") C linker for the host machine: /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc ld.bfd 2.34 C++ compiler for the host machine: /tmp/instance-3/output-1/host/bin/riscv32-linux-g++ (gcc 10.2.0 "riscv32-linux-g++.br_real (Buildroot 2020.08-14-ge5a2a90) 10.2.0") C++ linker for the host machine: /tmp/instance-3/output-1/host/bin/riscv32-linux-g++ ld.bfd 2.34 C compiler for the build machine: /usr/bin/gcc (gcc 9.3.0 "gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0") C linker for the build machine: /usr/bin/gcc ld.bfd 2.34 C++ compiler for the build machine: /usr/bin/g++ (gcc 9.3.0 "g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0") C++ linker for the build machine: /usr/bin/g++ ld.bfd 2.34 Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: riscv64 Host machine cpu: Target machine cpu family: riscv64 Target machine cpu: Found CMake: NO Run-time dependency clang found: NO (tried cmake) Program python3 found: YES (/tmp/instance-3/output-1/host/bin/python3) Fetching value of define "ETIME" : 62 Checking for function "bswap32" : YES Checking for function "bswap64" : YES Checking for function "clz" : YES Checking for function "clzll" : YES Checking for function "ctz" : YES Checking for function "expect" : YES Checking for function "ffs" : YES Checking for function "ffsll" : YES Checking for function "popcount" : YES Checking for function "popcountll" : YES Checking for function "unreachable" : YES Checking for function "types_compatible_p" : YES Compiler for C supports function attribute const: YES Compiler for C supports function attribute flatten: YES Compiler for C supports function attribute malloc: YES Compiler for C supports function attribute pure: YES Compiler for C supports function attribute unused: YES Compiler for C supports function attribute warn_unused_result: YES Compiler for C supports function attribute weak: YES Compiler for C supports function attribute format: YES Compiler for C supports function attribute packed: YES Compiler for C supports function attribute returns_nonnull: YES Compiler for C supports function attribute alias: YES Compiler for C supports function attribute noreturn: YES Compiler for C supports function attribute visibility:hidden: YES Checking if "__uint128_t" compiles: NO Compiler for C supports arguments -Werror=implicit-function-declaration: YES Compiler for C supports arguments -Werror=missing-prototypes: YES Compiler for C supports arguments -Werror=return-type: YES Compiler for C supports arguments -Werror=empty-body: YES Compiler for C supports arguments -Werror=incompatible-pointer-types: YES Compiler for C supports arguments -Werror=int-conversion: YES Compiler for C supports arguments -Wimplicit-fallthrough: YES Compiler for C supports arguments -Werror=thread-safety: NO Compiler for C supports arguments -Wno-missing-field-initializers: YES Compiler for C supports arguments -Wno-format-truncation: YES Compiler for C supports arguments -fno-math-errno: YES Compiler for C supports arguments -fno-trapping-math: YES Compiler for C supports arguments -Qunused-arguments: NO Compiler for C supports arguments -fno-common: YES Compiler for C supports arguments -Werror=format: YES Compiler for C supports arguments -Wformat-security: YES Compiler for C++ supports arguments -Werror=return-type: YES Compiler for C++ supports arguments -Werror=empty-body: YES Compiler for C++ supports arguments -Wno-non-virtual-dtor: YES Compiler for C++ supports arguments -Wno-missing-field-initializers: YES Compiler for C++ supports arguments -Wno-format-truncation: YES Compiler for C++ supports arguments -fno-math-errno: YES Compiler for C++ supports arguments -fno-trapping-math: YES Compiler for C++ supports arguments -Qunused-arguments: NO Compiler for C++ supports arguments -flifetime-dse=1: YES Compiler for C++ supports arguments -Werror=format: YES Compiler for C++ supports arguments -Wformat-security: YES Compiler for C supports arguments -Wno-override-init: YES Compiler for C supports arguments -Wno-initializer-overrides: NO Compiler for C supports arguments -Werror=pointer-arith: YES Compiler for C++ supports arguments -Werror=pointer-arith: YES Compiler for C supports arguments -Werror=gnu-empty-initializer: NO Compiler for C++ supports arguments -Werror=gnu-empty-initializer: NO Compiler for C supports arguments -Wmicrosoft-enum-value: NO Checking if "GCC atomic builtins" compiles: YES Checking if "GCC atomic builtins required -latomic" links: NO Library atomic found: YES Checking if "GCC 64bit atomics" with dependency -latomic links: NO Library ws2_32 found: NO Header has symbol "major" : YES Header has symbol "minor" : YES Header has symbol "makedev" : YES Header has symbol "major" : NO Check usable header "xlocale.h" : NO Check usable header "linux/futex.h" : YES Check usable header "endian.h" : YES Check usable header "dlfcn.h" : YES Check usable header "execinfo.h" : YES Check usable header "sys/shm.h" : YES Check usable header "cet.h" : NO Check usable header "pthread_np.h" : NO Checking for function "strtof" : YES Checking for function "mkostemp" : YES Checking for function "timespec_get" : YES Checking for function "memfd_create" : YES Checking for function "random_r" : YES Checking for function "flock" : YES Checking for function "strtok_r" : YES Checking for function "getrandom" : YES Header has symbol "program_invocation_name" : YES Checking for function "posix_memalign" : YES Checking whether type "struct dirent" has member "d_type" : YES Checking if "strtod has locale support" links: YES Checking if "Bsymbolic" links: YES Checking if "gc-sections" links: YES Checking if "version-script" links: YES Checking if "dynamic-list" links: YES Compiler for C supports link arguments -Wl,--build-id=sha1: YES Checking for function "dlopen" : NO Library dl found: YES Checking for function "dladdr" with dependency -ldl: YES Checking for function "dl_iterate_phdr" : YES Checking for function "clock_gettime" : YES Found pkg-config: /tmp/instance-3/output-1/host/bin/pkgconf (1.6.3) Run-time dependency zlib found: YES 1.2.11 Run-time dependency libzstd found: YES 1.5.0 Run-time dependency threads found: YES Checking for function "pthread_setaffinity_np" with dependency threads: YES Run-time dependency expat found: YES 2.4.1 Library m found: YES Run-time dependency libdrm found: YES 2.4.107 Program bison found: YES (/tmp/instance-3/output-1/host/bin/bison) Program bison found: YES 3.7.6 (/tmp/instance-3/output-1/host/bin/bison) Program flex found: YES (/tmp/instance-3/output-1/host/bin/flex) Compiler for C supports link arguments -Wl,--gc-sections: YES Compiler for C supports arguments -ffunction-sections: YES Compiler for C supports arguments -fdata-sections: YES Program nm found: YES (/usr/bin/nm) Program symbols-check.py found: YES (/usr/bin/env python /tmp/instance-3/output-1/build/mesa3d-21.1.6/bin/symbols-check.py) Program install_megadrivers.py found: YES (/tmp/instance-3/output-1/host/bin/python3 /tmp/instance-3/output-1/build/mesa3d-21.1.6/bin/install_megadrivers.py) Message: Configuration summary: prefix: /usr libdir: lib includedir: include OpenGL: yes (ES1: no ES2: no) OSMesa: no EGL: no GBM: no Vulkan drivers: no llvm: no Gallium drivers: panfrost Gallium st: mesa HUD lmsensors: no Shared-glapi: yes Build targets in project: 113 Option buildtype is: release [default: debugoptimized] Found ninja-1.10.2 at /tmp/instance-3/output-1/host/bin/ninja >>> mesa3d 21.1.6 Building PATH="/tmp/instance-3/output-1/host/bin:/tmp/instance-3/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" PYTHONNOUSERSITE=y /tmp/instance-3/output-1/host/bin/ninja -j96 -C /tmp/instance-3/output-1/build/mesa3d-21.1.6//build ninja: Entering directory `/tmp/instance-3/output-1/build/mesa3d-21.1.6//build' [1/28] Generating git_sha1.h with a custom command [2/28] Compiling C object src/gallium/winsys/panfrost/drm/libpanfrostwinsys.a.p/panfrost_drm_winsys.c.o [3/28] Linking static target src/gallium/winsys/panfrost/drm/libpanfrostwinsys.a [4/28] Generating nir_intrinsics.h with a custom command [5/28] Compiling C object src/gallium/winsys/kmsro/drm/libkmsrowinsys.a.p/kmsro_drm_winsys.c.o [6/28] Linking static target src/gallium/winsys/kmsro/drm/libkmsrowinsys.a [7/28] Generating nir_intrinsics_indices.h with a custom command [8/28] Generating nir_opcodes.h with a custom command (wrapped by meson to capture output) [9/28] Generating midgard_pack.h with a custom command (wrapped by meson to capture output) [10/28] Generating nir_builder_opcodes.h with a custom command (wrapped by meson to capture output) [11/28] Compiling C object src/gallium/drivers/panfrost/libpanfrost.a.p/pan_resource.c.o FAILED: src/gallium/drivers/panfrost/libpanfrost.a.p/pan_resource.c.o /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc -Isrc/gallium/drivers/panfrost/libpanfrost.a.p -Isrc/gallium/drivers/panfrost -I../src/gallium/drivers/panfrost -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Iinclude -I../include -Isrc -I../src -Isrc/panfrost -I../src/panfrost -I../src/panfrost/include -Isrc/panfrost/shared -I../src/panfrost/shared -Isrc/panfrost/midgard -I../src/panfrost/midgard -Isrc/panfrost/bifrost -I../src/panfrost/bifrost -Isrc/panfrost/lib -I../src/panfrost/lib -Isrc/util -I../src/util -Isrc/compiler/nir -I../src/compiler/nir -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.1.6"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DEGL_NO_X11 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_GALLIUM_EXTRA_HUD=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -Werror=pointer-arith -DGALLIUM_PANFROST -Wno-pointer-arith -MD -MQ src/gallium/drivers/panfrost/libpanfrost.a.p/pan_resource.c.o -MF src/gallium/drivers/panfrost/libpanfrost.a.p/pan_resource.c.o.d -o src/gallium/drivers/panfrost/libpanfrost.a.p/pan_resource.c.o -c ../src/gallium/drivers/panfrost/pan_resource.c In file included from ../src/util/simple_mtx.h:27, from ../src/gallium/auxiliary/util/u_range.h:42, from ../src/gallium/drivers/panfrost/pan_resource.h:35, from ../src/gallium/drivers/panfrost/pan_context.h:32, from ../src/gallium/drivers/panfrost/pan_resource.c:47: ../src/util/futex.h: In function 'sys_futex': ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 39 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex ../src/util/futex.h:39:19: note: each undeclared identifier is reported only once for each function it appears in ../src/util/futex.h:40:1: error: control reaches end of non-void function [-Werror=return-type] 40 | } | ^ cc1: some warnings being treated as errors [12/28] Compiling C object src/gallium/drivers/panfrost/libpanfrost.a.p/pan_job.c.o FAILED: src/gallium/drivers/panfrost/libpanfrost.a.p/pan_job.c.o /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc -Isrc/gallium/drivers/panfrost/libpanfrost.a.p -Isrc/gallium/drivers/panfrost -I../src/gallium/drivers/panfrost -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Iinclude -I../include -Isrc -I../src -Isrc/panfrost -I../src/panfrost -I../src/panfrost/include -Isrc/panfrost/shared -I../src/panfrost/shared -Isrc/panfrost/midgard -I../src/panfrost/midgard -Isrc/panfrost/bifrost -I../src/panfrost/bifrost -Isrc/panfrost/lib -I../src/panfrost/lib -Isrc/util -I../src/util -Isrc/compiler/nir -I../src/compiler/nir -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.1.6"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DEGL_NO_X11 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_GALLIUM_EXTRA_HUD=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -Werror=pointer-arith -DGALLIUM_PANFROST -Wno-pointer-arith -MD -MQ src/gallium/drivers/panfrost/libpanfrost.a.p/pan_job.c.o -MF src/gallium/drivers/panfrost/libpanfrost.a.p/pan_job.c.o.d -o src/gallium/drivers/panfrost/libpanfrost.a.p/pan_job.c.o -c ../src/gallium/drivers/panfrost/pan_job.c In file included from ../src/util/simple_mtx.h:27, from ../src/gallium/auxiliary/util/u_range.h:42, from ../src/gallium/drivers/panfrost/pan_resource.h:35, from ../src/gallium/drivers/panfrost/pan_context.h:32, from ../src/gallium/drivers/panfrost/pan_job.c:33: ../src/util/futex.h: In function 'sys_futex': ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 39 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex ../src/util/futex.h:39:19: note: each undeclared identifier is reported only once for each function it appears in [13/28] Compiling C object src/gallium/drivers/panfrost/libpanfrost.a.p/pan_context.c.o FAILED: src/gallium/drivers/panfrost/libpanfrost.a.p/pan_context.c.o /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc -Isrc/gallium/drivers/panfrost/libpanfrost.a.p -Isrc/gallium/drivers/panfrost -I../src/gallium/drivers/panfrost -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Iinclude -I../include -Isrc -I../src -Isrc/panfrost -I../src/panfrost -I../src/panfrost/include -Isrc/panfrost/shared -I../src/panfrost/shared -Isrc/panfrost/midgard -I../src/panfrost/midgard -Isrc/panfrost/bifrost -I../src/panfrost/bifrost -Isrc/panfrost/lib -I../src/panfrost/lib -Isrc/util -I../src/util -Isrc/compiler/nir -I../src/compiler/nir -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.1.6"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DEGL_NO_X11 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_GALLIUM_EXTRA_HUD=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -Werror=pointer-arith -DGALLIUM_PANFROST -Wno-pointer-arith -MD -MQ src/gallium/drivers/panfrost/libpanfrost.a.p/pan_context.c.o -MF src/gallium/drivers/panfrost/libpanfrost.a.p/pan_context.c.o.d -o src/gallium/drivers/panfrost/libpanfrost.a.p/pan_context.c.o -c ../src/gallium/drivers/panfrost/pan_context.c In file included from ../src/util/simple_mtx.h:27, from ../src/gallium/auxiliary/util/u_range.h:42, from ../src/gallium/drivers/panfrost/pan_resource.h:35, from ../src/gallium/drivers/panfrost/pan_context.h:32, from ../src/gallium/drivers/panfrost/pan_context.c:32: ../src/util/futex.h: In function 'sys_futex': ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 39 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex ../src/util/futex.h:39:19: note: each undeclared identifier is reported only once for each function it appears in [14/28] Compiling C object src/gallium/drivers/panfrost/libpanfrost.a.p/pan_assemble.c.o FAILED: src/gallium/drivers/panfrost/libpanfrost.a.p/pan_assemble.c.o /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc -Isrc/gallium/drivers/panfrost/libpanfrost.a.p -Isrc/gallium/drivers/panfrost -I../src/gallium/drivers/panfrost -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Iinclude -I../include -Isrc -I../src -Isrc/panfrost -I../src/panfrost -I../src/panfrost/include -Isrc/panfrost/shared -I../src/panfrost/shared -Isrc/panfrost/midgard -I../src/panfrost/midgard -Isrc/panfrost/bifrost -I../src/panfrost/bifrost -Isrc/panfrost/lib -I../src/panfrost/lib -Isrc/util -I../src/util -Isrc/compiler/nir -I../src/compiler/nir -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.1.6"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DEGL_NO_X11 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_GALLIUM_EXTRA_HUD=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -Werror=pointer-arith -DGALLIUM_PANFROST -Wno-pointer-arith -MD -MQ src/gallium/drivers/panfrost/libpanfrost.a.p/pan_assemble.c.o -MF src/gallium/drivers/panfrost/libpanfrost.a.p/pan_assemble.c.o.d -o src/gallium/drivers/panfrost/libpanfrost.a.p/pan_assemble.c.o -c ../src/gallium/drivers/panfrost/pan_assemble.c In file included from ../src/util/simple_mtx.h:27, from ../src/gallium/auxiliary/util/u_range.h:42, from ../src/gallium/drivers/panfrost/pan_resource.h:35, from ../src/gallium/drivers/panfrost/pan_context.h:32, from ../src/gallium/drivers/panfrost/pan_assemble.c:30: ../src/util/futex.h: In function 'sys_futex': ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 39 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex ../src/util/futex.h:39:19: note: each undeclared identifier is reported only once for each function it appears in [15/28] Compiling C object src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blit.c.o FAILED: src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blit.c.o /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc -Isrc/gallium/drivers/panfrost/libpanfrost.a.p -Isrc/gallium/drivers/panfrost -I../src/gallium/drivers/panfrost -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Iinclude -I../include -Isrc -I../src -Isrc/panfrost -I../src/panfrost -I../src/panfrost/include -Isrc/panfrost/shared -I../src/panfrost/shared -Isrc/panfrost/midgard -I../src/panfrost/midgard -Isrc/panfrost/bifrost -I../src/panfrost/bifrost -Isrc/panfrost/lib -I../src/panfrost/lib -Isrc/util -I../src/util -Isrc/compiler/nir -I../src/compiler/nir -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.1.6"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DEGL_NO_X11 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_GALLIUM_EXTRA_HUD=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -Werror=pointer-arith -DGALLIUM_PANFROST -Wno-pointer-arith -MD -MQ src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blit.c.o -MF src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blit.c.o.d -o src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blit.c.o -c ../src/gallium/drivers/panfrost/pan_blit.c In file included from ../src/util/simple_mtx.h:27, from ../src/gallium/auxiliary/util/u_range.h:42, from ../src/gallium/drivers/panfrost/pan_resource.h:35, from ../src/gallium/drivers/panfrost/pan_context.h:32, from ../src/gallium/drivers/panfrost/pan_blit.c:30: ../src/util/futex.h: In function 'sys_futex': ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 39 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex ../src/util/futex.h:39:19: note: each undeclared identifier is reported only once for each function it appears in [16/28] Compiling C object src/gallium/drivers/panfrost/libpanfrost.a.p/pan_screen.c.o FAILED: src/gallium/drivers/panfrost/libpanfrost.a.p/pan_screen.c.o /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc -Isrc/gallium/drivers/panfrost/libpanfrost.a.p -Isrc/gallium/drivers/panfrost -I../src/gallium/drivers/panfrost -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Iinclude -I../include -Isrc -I../src -Isrc/panfrost -I../src/panfrost -I../src/panfrost/include -Isrc/panfrost/shared -I../src/panfrost/shared -Isrc/panfrost/midgard -I../src/panfrost/midgard -Isrc/panfrost/bifrost -I../src/panfrost/bifrost -Isrc/panfrost/lib -I../src/panfrost/lib -Isrc/util -I../src/util -Isrc/compiler/nir -I../src/compiler/nir -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.1.6"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DEGL_NO_X11 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_GALLIUM_EXTRA_HUD=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -Werror=pointer-arith -DGALLIUM_PANFROST -Wno-pointer-arith -MD -MQ src/gallium/drivers/panfrost/libpanfrost.a.p/pan_screen.c.o -MF src/gallium/drivers/panfrost/libpanfrost.a.p/pan_screen.c.o.d -o src/gallium/drivers/panfrost/libpanfrost.a.p/pan_screen.c.o -c ../src/gallium/drivers/panfrost/pan_screen.c In file included from ../src/util/simple_mtx.h:27, from ../src/gallium/auxiliary/util/u_range.h:42, from ../src/gallium/drivers/panfrost/pan_resource.h:35, from ../src/gallium/drivers/panfrost/pan_screen.c:50: ../src/util/futex.h: In function 'sys_futex': ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 39 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex ../src/util/futex.h:39:19: note: each undeclared identifier is reported only once for each function it appears in [17/28] Compiling C object src/gallium/drivers/panfrost/libpanfrost.a.p/pan_compute.c.o FAILED: src/gallium/drivers/panfrost/libpanfrost.a.p/pan_compute.c.o /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc -Isrc/gallium/drivers/panfrost/libpanfrost.a.p -Isrc/gallium/drivers/panfrost -I../src/gallium/drivers/panfrost -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Iinclude -I../include -Isrc -I../src -Isrc/panfrost -I../src/panfrost -I../src/panfrost/include -Isrc/panfrost/shared -I../src/panfrost/shared -Isrc/panfrost/midgard -I../src/panfrost/midgard -Isrc/panfrost/bifrost -I../src/panfrost/bifrost -Isrc/panfrost/lib -I../src/panfrost/lib -Isrc/util -I../src/util -Isrc/compiler/nir -I../src/compiler/nir -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.1.6"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DEGL_NO_X11 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_GALLIUM_EXTRA_HUD=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -Werror=pointer-arith -DGALLIUM_PANFROST -Wno-pointer-arith -MD -MQ src/gallium/drivers/panfrost/libpanfrost.a.p/pan_compute.c.o -MF src/gallium/drivers/panfrost/libpanfrost.a.p/pan_compute.c.o.d -o src/gallium/drivers/panfrost/libpanfrost.a.p/pan_compute.c.o -c ../src/gallium/drivers/panfrost/pan_compute.c In file included from ../src/util/simple_mtx.h:27, from ../src/gallium/auxiliary/util/u_range.h:42, from ../src/gallium/drivers/panfrost/pan_resource.h:35, from ../src/gallium/drivers/panfrost/pan_context.h:32, from ../src/gallium/drivers/panfrost/pan_compute.c:29: ../src/util/futex.h: In function 'sys_futex': ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 39 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex ../src/util/futex.h:39:19: note: each undeclared identifier is reported only once for each function it appears in [18/28] Compiling C object src/gallium/drivers/panfrost/libpanfrost.a.p/pan_cmdstream.c.o FAILED: src/gallium/drivers/panfrost/libpanfrost.a.p/pan_cmdstream.c.o /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc -Isrc/gallium/drivers/panfrost/libpanfrost.a.p -Isrc/gallium/drivers/panfrost -I../src/gallium/drivers/panfrost -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Iinclude -I../include -Isrc -I../src -Isrc/panfrost -I../src/panfrost -I../src/panfrost/include -Isrc/panfrost/shared -I../src/panfrost/shared -Isrc/panfrost/midgard -I../src/panfrost/midgard -Isrc/panfrost/bifrost -I../src/panfrost/bifrost -Isrc/panfrost/lib -I../src/panfrost/lib -Isrc/util -I../src/util -Isrc/compiler/nir -I../src/compiler/nir -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.1.6"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DEGL_NO_X11 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_GALLIUM_EXTRA_HUD=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -Werror=pointer-arith -DGALLIUM_PANFROST -Wno-pointer-arith -MD -MQ src/gallium/drivers/panfrost/libpanfrost.a.p/pan_cmdstream.c.o -MF src/gallium/drivers/panfrost/libpanfrost.a.p/pan_cmdstream.c.o.d -o src/gallium/drivers/panfrost/libpanfrost.a.p/pan_cmdstream.c.o -c ../src/gallium/drivers/panfrost/pan_cmdstream.c In file included from ../src/util/simple_mtx.h:27, from ../src/gallium/auxiliary/util/u_range.h:42, from ../src/gallium/drivers/panfrost/pan_resource.h:35, from ../src/gallium/drivers/panfrost/pan_job.h:33, from ../src/gallium/drivers/panfrost/pan_cmdstream.h:33, from ../src/gallium/drivers/panfrost/pan_cmdstream.c:34: ../src/util/futex.h: In function 'sys_futex': ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 39 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex ../src/util/futex.h:39:19: note: each undeclared identifier is reported only once for each function it appears in [19/28] Compiling C object src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blend_cso.c.o FAILED: src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blend_cso.c.o /tmp/instance-3/output-1/host/bin/riscv32-linux-gcc -Isrc/gallium/drivers/panfrost/libpanfrost.a.p -Isrc/gallium/drivers/panfrost -I../src/gallium/drivers/panfrost -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Iinclude -I../include -Isrc -I../src -Isrc/panfrost -I../src/panfrost -I../src/panfrost/include -Isrc/panfrost/shared -I../src/panfrost/shared -Isrc/panfrost/midgard -I../src/panfrost/midgard -Isrc/panfrost/bifrost -I../src/panfrost/bifrost -Isrc/panfrost/lib -I../src/panfrost/lib -Isrc/util -I../src/util -Isrc/compiler/nir -I../src/compiler/nir -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include -I/tmp/instance-3/output-1/host/riscv32-buildroot-linux-gnu/sysroot/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c99 -O3 -ffunction-sections -fdata-sections -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DPACKAGE_VERSION="21.1.6"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DUSE_ELF_TLS -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -DEGL_NO_X11 -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DMAJOR_IN_SYSMACROS -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_GALLIUM_EXTRA_HUD=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wimplicit-fallthrough -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=1 -fPIC -pthread -Werror=pointer-arith -DGALLIUM_PANFROST -Wno-pointer-arith -MD -MQ src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blend_cso.c.o -MF src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blend_cso.c.o.d -o src/gallium/drivers/panfrost/libpanfrost.a.p/pan_blend_cso.c.o -c ../src/gallium/drivers/panfrost/pan_blend_cso.c In file included from ../src/util/simple_mtx.h:27, from ../src/gallium/auxiliary/util/u_range.h:42, from ../src/gallium/drivers/panfrost/pan_resource.h:35, from ../src/gallium/drivers/panfrost/pan_context.h:32, from ../src/gallium/drivers/panfrost/pan_blend_cso.c:31: ../src/util/futex.h: In function 'sys_futex': ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'? 39 | return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3); | ^~~~~~~~~ | sys_futex ../src/util/futex.h:39:19: note: each undeclared identifier is reported only once for each function it appears in [20/28] Generating shared_glapi_mapi_tmp.h with a custom command (wrapped by meson to capture output) ninja: build stopped: subcommand failed. make: *** [package/pkg-generic.mk:270: /tmp/instance-3/output-1/build/mesa3d-21.1.6/.stamp_built] Error 1 make: Leaving directory '/tmp/instance-3/buildroot'