Applying /builder/shared-workdir/build/sdk/feeds/video/libs/mesa/patches/100-use-llvm-subproject-vars.patch using plaintext: patching file meson.build patching file src/compiler/clc/meson.build patching file src/gallium/frontends/clover/meson.build patching file src/gallium/targets/opencl/meson.build Collecting Mako==1.2.0 (from -r ./host-pip-requirements.txt (line 1)) Using cached mako-1.2.0-py3-none-any.whl Collecting MarkupSafe==2.1.1 (from -r ./host-pip-requirements.txt (line 2)) Using cached MarkupSafe-2.1.1-cp311-cp311-linux_x86_64.whl Collecting ply==3.11 (from -r ./host-pip-requirements.txt (line 3)) Using cached ply-3.11-py2.py3-none-any.whl Collecting pycparser==2.21 (from -r ./host-pip-requirements.txt (line 4)) Using cached pycparser-2.21-py2.py3-none-any.whl Collecting PyYAML==6.0.1 (from -r ./host-pip-requirements.txt (line 5)) Using cached pyyaml-6.0.1-cp311-cp311-linux_x86_64.whl Installing collected packages: ply, PyYAML, pycparser, MarkupSafe, Mako Successfully installed Mako-1.2.0 MarkupSafe-2.1.1 PyYAML-6.0.1 ply-3.11 pycparser-2.21 The Meson build system Version: 1.6.1 Source dir: /builder/shared-workdir/build/sdk/build_dir/hostpkg/mesa-25.0.5 Build dir: /builder/shared-workdir/build/sdk/build_dir/hostpkg/mesa-25.0.5/openwrt-build Build type: native build Project name: mesa Project version: 25.0.5 C compiler for the host machine: /builder/shared-workdir/build/sdk/staging_dir/host/bin/gcc (gcc 10.2.1 "gcc (Debian 10.2.1-6) 10.2.1 20210110") C linker for the host machine: /builder/shared-workdir/build/sdk/staging_dir/host/bin/gcc ld.bfd 2.35.2 C++ compiler for the host machine: /builder/shared-workdir/build/sdk/staging_dir/host/bin/g++ (gcc 10.2.1 "g++ (Debian 10.2.1-6) 10.2.1 20210110") C++ linker for the host machine: /builder/shared-workdir/build/sdk/staging_dir/host/bin/g++ ld.bfd 2.35.2 Host machine cpu family: x86_64 Host machine cpu: x86_64 Checking for size of "void*" : 8 Checking if "-mtls-dialect=gnu2" runs: YES Checking if "split TLSDESC" : links: YES Dependency libglvnd skipped: feature glvnd disabled Dependency vdpau skipped: feature gallium-vdpau disabled Program glslangValidator found: YES (/builder/shared-workdir/build/sdk/staging_dir/hostpkg/bin/glslangValidator) Dependency libva skipped: feature gallium-va disabled Found pkg-config: YES (/builder/shared-workdir/build/sdk/staging_dir/host/bin/pkg-config) 2.2.0 Run-time dependency libclc found: YES 20.1.3 Program python found: YES 3.11.10 3.11.10 Fetching value of define "ETIME" : 62 Compiler for C supports arguments -gsplit-dwarf: YES Compiler for C supports link arguments -Wl,--gdb-index: NO 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 optimize: YES Compiler for C supports function attribute visibility:hidden: YES Checking if "__uint128_t" compiles: YES Checking for function "reallocarray" : YES Checking for function "fmemopen" : YES Checking if "gc-sections" : links: YES 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 -Wmisleading-indentation: 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 -Wno-nonnull-compare: 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 -Wno-unknown-pragmas: YES Compiler for C supports arguments -Wno-microsoft-enum-value: NO Compiler for C supports arguments -Wno-unused-function: YES Compiler for C supports arguments -Werror=format: YES Compiler for C supports arguments -Wformat-security: YES Compiler for C supports arguments -Werror=thread-safety: NO Compiler for C supports arguments -ffunction-sections: YES Compiler for C supports arguments -fdata-sections: YES Compiler for C++ supports arguments -Werror=return-type: YES Compiler for C++ supports arguments -Werror=empty-body: YES Compiler for C++ supports arguments -Wmisleading-indentation: 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 -Wno-unknown-pragmas: YES Compiler for C++ supports arguments -Wno-microsoft-enum-value: NO Compiler for C++ supports arguments -Werror=format: YES Compiler for C++ supports arguments -Wformat-security: YES Compiler for C++ supports arguments -ffunction-sections: YES Compiler for C++ supports arguments -fdata-sections: 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=vla: YES Compiler for C supports arguments -Werror=gnu-empty-initializer: NO Compiler for C++ supports arguments -Werror=pointer-arith: YES Compiler for C++ supports arguments -Werror=vla: YES Compiler for C++ supports arguments -Werror=gnu-empty-initializer: NO Checking for function "__builtin_ia32_clflushopt" : YES Checking if "GCC atomic builtins" compiles: YES Checking if "GCC atomic builtins required -latomic" : links: YES Checking if "GCC 64bit atomics" with dependency : links: YES Library ws2_32 found: NO 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 Check usable header "sched.h" : YES Checking for function "sched_getaffinity" : YES 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 "sys/shm.h" : YES Check usable header "cet.h" : YES Check usable header "pthread_np.h" : NO Check usable header "sys/inotify.h" : YES Check usable header "linux/udmabuf.h" : YES Checking for function "strtof" : YES Checking for function "mkostemp" : 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 Checking for function "qsort_s" : NO Checking for function "posix_fallocate" : YES Checking for function "secure_getenv" : YES Checking if "GNU qsort_r" : links: YES Header "time.h" has symbol "struct timespec" : YES Checking for function "thrd_create" : NO Header "errno.h" has symbol "program_invocation_name" : YES Header "math.h" has symbol "issignaling" : 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 "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 Run-time dependency zlib found: YES 1.3.1 Run-time dependency libzstd found: YES 1.5.7 Run-time dependency threads found: YES Checking for function "pthread_setaffinity_np" with dependency threads: YES Run-time dependency expat found: YES 2.7.1 Library m found: YES Found CMake: /builder/shared-workdir/build/sdk/staging_dir/host/bin/cmake (3.31.4) Run-time dependency libdrm found: NO (tried pkgconfig and cmake) Run-time dependency libudev found: NO (tried pkgconfig and cmake) Executing subproject llvm llvm| Project name: llvm llvm| Project version: undefined llvm| C++ compiler for the host machine: /builder/shared-workdir/build/sdk/staging_dir/host/bin/g++ (gcc 10.2.1 "g++ (Debian 10.2.1-6) 10.2.1 20210110") llvm| C++ linker for the host machine: /builder/shared-workdir/build/sdk/staging_dir/host/bin/g++ ld.bfd 2.35.2 llvm| Library LLVMAggressiveInstCombine found: YES llvm| Library LLVMAnalysis found: YES llvm| Library LLVMAsmParser found: YES llvm| Library LLVMAsmPrinter found: YES llvm| Library LLVMBinaryFormat found: YES llvm| Library LLVMBitReader found: YES llvm| Library LLVMBitWriter found: YES llvm| Library LLVMBitstreamReader found: YES llvm| Library LLVMCFGuard found: YES llvm| Library LLVMCFIVerify found: YES llvm| Library LLVMCGData found: YES llvm| Library LLVMCodeGen found: YES llvm| Library LLVMCodeGenTypes found: YES llvm| Library LLVMCore found: YES llvm| Library LLVMCoroutines found: YES llvm| Library LLVMCoverage found: YES llvm| Library LLVMDWARFLinker found: YES llvm| Library LLVMDWARFLinkerClassic found: YES llvm| Library LLVMDWARFLinkerParallel found: YES llvm| Library LLVMDWP found: YES llvm| Library LLVMDebugInfoBTF found: YES llvm| Library LLVMDebugInfoCodeView found: YES llvm| Library LLVMDebugInfoDWARF found: YES llvm| Library LLVMDebugInfoGSYM found: YES llvm| Library LLVMDebugInfoLogicalView found: YES llvm| Library LLVMDebugInfoMSF found: YES llvm| Library LLVMDebugInfoPDB found: YES llvm| Library LLVMDebuginfod found: YES llvm| Library LLVMDemangle found: YES llvm| Library LLVMDiff found: YES llvm| Library LLVMDlltoolDriver found: YES llvm| Library LLVMExecutionEngine found: YES llvm| Library LLVMExegesis found: YES llvm| Library LLVMExtensions found: YES llvm| Library LLVMFileCheck found: YES llvm| Library LLVMFrontendAtomic found: YES llvm| Library LLVMFrontendDriver found: YES llvm| Library LLVMFrontendHLSL found: YES llvm| Library LLVMFrontendOffloading found: YES llvm| Library LLVMFrontendOpenACC found: YES llvm| Library LLVMFrontendOpenMP found: YES llvm| Library LLVMFuzzMutate found: YES llvm| Library LLVMFuzzerCLI found: YES llvm| Library LLVMGlobalISel found: YES llvm| Library LLVMHipStdPar found: YES llvm| Library LLVMIRPrinter found: YES llvm| Library LLVMIRReader found: YES llvm| Library LLVMInstCombine found: YES llvm| Library LLVMInstrumentation found: YES llvm| Library LLVMInterfaceStub found: YES llvm| Library LLVMInterpreter found: YES llvm| Library LLVMJITLink found: YES llvm| Library LLVMLTO found: YES llvm| Library LLVMLibDriver found: YES llvm| Library LLVMLineEditor found: YES llvm| Library LLVMLinker found: YES llvm| Library LLVMMC found: YES llvm| Library LLVMMCA found: YES llvm| Library LLVMMCDisassembler found: YES llvm| Library LLVMMCJIT found: YES llvm| Library LLVMMCParser found: YES llvm| Library LLVMMIRParser found: YES llvm| Library LLVMObjCARCOpts found: YES llvm| Library LLVMObjCopy found: YES llvm| Library LLVMObject found: YES llvm| Library LLVMObjectYAML found: YES llvm| Library LLVMOptDriver found: YES llvm| Library LLVMOption found: YES llvm| Library LLVMOrcDebugging found: YES llvm| Library LLVMOrcJIT found: YES llvm| Library LLVMOrcShared found: YES llvm| Library LLVMOrcTargetProcess found: YES llvm| Library LLVMPasses found: YES llvm| Library LLVMProfileData found: YES llvm| Library LLVMRemarks found: YES llvm| Library LLVMRuntimeDyld found: YES llvm| Library LLVMSPIRVLib found: YES llvm| Library LLVMSandboxIR found: YES llvm| Library LLVMScalarOpts found: YES llvm| Library LLVMSelectionDAG found: YES llvm| Library LLVMSupport found: YES llvm| Library LLVMSymbolize found: YES llvm| Library LLVMTableGen found: YES llvm| Library LLVMTableGenBasic found: YES llvm| Library LLVMTableGenCommon found: YES llvm| Library LLVMTarget found: YES llvm| Library LLVMTargetParser found: YES llvm| Library LLVMTelemetry found: YES llvm| Library LLVMTextAPI found: YES llvm| Library LLVMTextAPIBinaryReader found: YES llvm| Library LLVMTransformUtils found: YES llvm| Library LLVMVectorize found: YES llvm| Library LLVMWindowsDriver found: YES llvm| Library LLVMWindowsManifest found: YES llvm| Library LLVMXRay found: YES llvm| Library LLVMipo found: YES llvm| Library clangAPINotes found: YES llvm| Library clangARCMigrate found: YES llvm| Library clangAST found: YES llvm| Library clangASTMatchers found: YES llvm| Library clangAnalysis found: YES llvm| Library clangAnalysisFlowSensitive found: YES llvm| Library clangAnalysisFlowSensitiveModels found: YES llvm| Library clangBasic found: YES llvm| Library clangCodeGen found: YES llvm| Library clangCrossTU found: YES llvm| Library clangDependencyScanning found: YES llvm| Library clangDirectoryWatcher found: YES llvm| Library clangDriver found: YES llvm| Library clangDynamicASTMatchers found: YES llvm| Library clangEdit found: YES llvm| Library clangExtractAPI found: YES llvm| Library clangFormat found: YES llvm| Library clangFrontend found: YES llvm| Library clangFrontendTool found: YES llvm| Library clangHandleCXX found: YES llvm| Library clangHandleLLVM found: YES llvm| Library clangIndex found: YES llvm| Library clangIndexSerialization found: YES llvm| Library clangInstallAPI found: YES llvm| Library clangInterpreter found: YES llvm| Library clangLex found: YES llvm| Library clangParse found: YES llvm| Library clangRewrite found: YES llvm| Library clangRewriteFrontend found: YES llvm| Library clangSema found: YES llvm| Library clangSerialization found: YES llvm| Library clangStaticAnalyzerCheckers found: YES llvm| Library clangStaticAnalyzerCore found: YES llvm| Library clangStaticAnalyzerFrontend found: YES llvm| Library clangSupport found: YES llvm| Library clangTooling found: YES llvm| Library clangToolingASTDiff found: YES llvm| Library clangToolingCore found: YES llvm| Library clangToolingInclusions found: YES llvm| Library clangToolingInclusionsStdlib found: YES llvm| Library clangToolingRefactoring found: YES llvm| Library clangToolingSyntax found: YES llvm| Library clangTransformer found: YES llvm| Build targets in project: 0 llvm| Subproject llvm finished. Run-time dependency llvmspirvlib found: YES 20.1.0.0 Run-time dependency spirv-tools found: YES 2025.1.1 Library clang-cpp found: YES Library clangBasic found: YES Library clangAST found: YES Library clangCodeGen found: YES Library clangLex found: YES Library clangDriver found: YES Library clangFrontend found: YES Library clangFrontendTool found: YES Library clangHandleCXX found: YES Library clangHandleLLVM found: YES Library clangSerialization found: YES Library clangSema found: YES Library clangParse found: YES Library clangEdit found: YES Library clangAnalysis found: YES Library clangSupport found: YES Library clangASTMatchers found: YES Library clangAPINotes found: YES Run-time dependency lua54 found: NO (tried pkgconfig and cmake) Run-time dependency lua5.4 found: NO (tried pkgconfig and cmake) Run-time dependency lua-5.4 found: NO (tried pkgconfig and cmake) Run-time dependency lua53 found: NO (tried pkgconfig and cmake) Run-time dependency lua5.3 found: NO (tried pkgconfig and cmake) Run-time dependency lua-5.3 found: NO (tried pkgconfig and cmake) Dependency lua found: NO. Found 5.1.5 but need: '>=5.3' Run-time dependency lua found: NO (tried pkgconfig and cmake) Run-time dependency libelf found: YES 0.191 Dependency valgrind skipped: feature valgrind disabled Program bison found: YES (/builder/shared-workdir/build/sdk/staging_dir/host/bin/bison) Program bison found: YES 3.8.2 3.8.2 (/builder/shared-workdir/build/sdk/staging_dir/host/bin/bison) Program flex found: YES (/builder/shared-workdir/build/sdk/staging_dir/host/bin/flex) Dependency libunwind skipped: feature libunwind disabled Run-time dependency OpenMP found: YES 4.5 Library sensors found: NO Program nm found: YES (/usr/bin/nm) Program symbols-check.py found: YES (/builder/shared-workdir/build/sdk/staging_dir/hostpkg/bin/python3 /builder/shared-workdir/build/sdk/build_dir/hostpkg/mesa-25.0.5/bin/symbols-check.py) Program install_megadrivers.py found: YES (/builder/shared-workdir/build/sdk/staging_dir/hostpkg/bin/python3 /builder/shared-workdir/build/sdk/build_dir/hostpkg/mesa-25.0.5/bin/install_megadrivers.py) Checking for size of "void *" : 8 Compiler for C supports arguments -Wno-misleading-indentation: YES Program zstd found: YES (/builder/shared-workdir/build/sdk/staging_dir/host/bin/zstd) Checking whether type "spvtools::LinkerOptions" has member "SetAllowPtrTypeMismatch(true)" with dependency SPIRV-Tools: YES Program decode.py found: YES (/builder/shared-workdir/build/sdk/build_dir/hostpkg/mesa-25.0.5/src/compiler/isaspec/decode.py) Program encode.py found: YES (/builder/shared-workdir/build/sdk/build_dir/hostpkg/mesa-25.0.5/src/compiler/isaspec/encode.py) Program sphinx-build skipped: feature html-docs disabled Build targets in project: 42 mesa 25.0.5 Directories prefix : /builder/shared-workdir/build/sdk/staging_dir/hostpkg libdir : lib includedir : include Common C and C++ arguments c_cpp_args : -mtls-dialect=gnu2 OpenGL OpenGL : NO ES1 : NO ES2 : NO Shared glapi : NO GLVND : NO DRI Platform : drm Driver dir : /builder/shared-workdir/build/sdk/staging_dir/hostpkg/lib/dri GLX Enabled : NO Provider : None EGL Enabled : NO GBM Enabled : NO Vulkan Drivers : NO Video Codecs : av1dec av1enc vp9dec APIs : NO LLVM Enabled : YES Version : 20.1.3 Gallium Enabled : NO Perfetto Enabled : NO Teflon (TensorFlow Lite delegate) Enabled : NO Subprojects llvm : YES User defined options Native files : /builder/shared-workdir/build/sdk/build_dir/hostpkg/mesa-25.0.5/openwrt-native.txt android-stub : false default_library : static draw-use-llvm : false egl : disabled gallium-drivers : gallium-xa : disabled gbm : disabled gles1 : disabled gles2 : disabled glvnd : disabled glx : disabled install-intel-clc : true install-mesa-clc : true install-precomp-compiler: true intel-clc : enabled libunwind : disabled llvm : enabled mesa-clc : enabled opengl : false osmesa : false platforms : precomp-compiler : enabled shared-llvm : disabled static-libclc : all tools : nir valgrind : disabled vulkan-drivers : Found ninja-1.12.1 at /builder/shared-workdir/build/sdk/staging_dir/host/bin/ninja ninja: Entering directory `/builder/shared-workdir/build/sdk/build_dir/hostpkg/mesa-25.0.5/openwrt-build' [1/363] Generating src/util/format/u_format_gen.h with a custom command (wrapped by meson to capture output) [2/363] Generating src/compiler/clc/spirv-mesa3d-.spv.zstd with a custom command /builder/shared-workdir/build/sdk/staging_dir/host/llvm-mesa-20.1.3.Linux-x86_64/share/clc/spirv-mesa3d-.spv : 24.94% ( 2.68 MiB => 685 KiB, src/compiler/clc/spirv-mesa3d-.spv.zstd) [3/363] Generating src/compiler/clc/spirv64-mesa3d-.spv.zstd with a custom command /builder/shared-workdir/build/sdk/staging_dir/host/llvm-mesa-20.1.3.Linux-x86_64/share/clc/spirv64-mesa3d-.spv : 24.91% ( 2.68 MiB => 684 KiB, src/compiler/clc/spirv64-mesa3d-.spv.zstd) [4/363] Generating src/util/format_srgb with a custom command (wrapped by meson to capture output) [5/363] Generating src/util/format/u_format_pack.h with a custom command (wrapped by meson to capture output) [6/363] Generating src/util/format/u_format_table.c with a custom command (wrapped by meson to capture output) [7/363] Generating src/compiler/builtin_types.h with a custom command [8/363] Generating src/compiler/builtin_types.c with a custom command [9/363] Generating src/compiler/ir_expression_operation.h with a custom command (wrapped by meson to capture output) [10/363] Generating src/compiler/nir/nir_builder_opcodes.h with a custom command (wrapped by meson to capture output) [11/363] Generating src/compiler/nir/nir_constant_expressions.c with a custom command (wrapped by meson to capture output) [12/363] Generating src/compiler/nir/nir_opcodes.h with a custom command (wrapped by meson to capture output) [13/363] Generating src/compiler/nir/nir_opcodes.c with a custom command (wrapped by meson to capture output) [14/363] Generating src/compiler/nir/nir_opt_algebraic.c with a custom command FAILED: src/compiler/nir/nir_opt_algebraic.c /builder/shared-workdir/build/sdk/staging_dir/hostpkg/bin/python3 ../src/compiler/nir/nir_opt_algebraic.py --out src/compiler/nir/nir_opt_algebraic.c Segmentation fault (core dumped) ninja: build stopped: subcommand failed. make[3]: *** [Makefile:842: /builder/shared-workdir/build/sdk/build_dir/hostpkg/mesa-25.0.5/.built] Error 1 time: package/feeds/video/mesa/host-compile#32.74#8.14#57.58