# Pastebin uOoc0OQl Starting program: /home/robclark/.cache/bazel/_bazel_robclark/3f809e9e8919ef9e119996a243d822a4/execroot/org_tensorflow/bazel-out/aarch64-opt/bin/tensorflow/lite/examples/label_image/label_image --image=grace_hopper.bmp --use_gpu=true [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". INFO: Loaded model ./mobilenet_quant_v1_224.tflite INFO: resolved reporter INFO: Created TensorFlow Lite delegate for GPU. INFO: GPU delegate created. INFO: Loaded OpenCL library with dlopen. SPIR-V parsing FAILED: In file ../src/compiler/spirv/spirv_to_nir.c:619 Mismatch between NIR and SPIR-V type. 38072 bytes into the SPIR-V binary Thread 1 "label_image" received signal SIGTRAP, Trace/breakpoint trap. 0x0000fffff7a8b8cc in kill () from /lib64/libc.so.6 Missing rpms, try: dnf --enablerepo='*debug*' install glibc-debuginfo-2.41-5.fc42.aarch64 libstdc++-debuginfo-15.1.1-2.fc42.aarch64 libgcc-debuginfo-15.1.1-2.fc42.aarch64 ocl-icd-devel-debuginfo-2.3.3-1.fc42.aarch64 zlib-ng-compat-debuginfo-2.2.4-3.fc42.aarch64 libzstd-debuginfo-1.5.7-1.fc42.aarch64 libunwind-debuginfo-1.8.1-2.fc42.aarch64 libdrm-debuginfo-2.4.124-2.fc42.aarch64 expat-debuginfo-2.7.1-1.fc42.aarch64 llvm-libs-debuginfo-20.1.6-1.fc42.aarch64 spirv-tools-libs-debuginfo-2025.2-2.fc42.aarch64 clang-libs-debuginfo-20.1.6-1.fc42.aarch64 spirv-llvm-translator-debuginfo-20.1.0-1.fc42.aarch64 libffi-debuginfo-3.4.6-5.fc42.aarch64 libedit-debuginfo-3.1-55.20250104cvs.fc42.aarch64 libxml2-debuginfo-2.12.10-1.fc42.aarch64 ncurses-libs-debuginfo-6.5-5.20250125.fc42.aarch64 xz-libs-debuginfo-5.8.1-2.fc42.aarch64 (gdb) bt #0 0x0000fffff7a8b8cc in kill () from /lib64/libc.so.6 #1 0x0000fffff45e308c in _vtn_fail (b=0xd09c50, file=0xfffff50fe7fc "../src/compiler/spirv/spirv_to_nir.c", line=619, fmt=0xfffff50fe9b0 "Mismatch between NIR and SPIR-V type.") at ../src/compiler/spirv/spirv_to_nir.c:399 #2 0x0000fffff45e443c in vtn_push_nir_ssa (b=0xd09c50, value_id=154, def=0x3098db8) at ../src/compiler/spirv/spirv_to_nir.c:617 #3 0x0000fffff45f6f38 in vtn_handle_texture (b=0xd09c50, opcode=SpvOpImageSampleExplicitLod, w=0xde3bf8, count=7) at ../src/compiler/spirv/spirv_to_nir.c:3781 #4 0x0000fffff45ebe2c in vtn_handle_body_instruction (b=0xd09c50, opcode=SpvOpImageSampleExplicitLod, w=0xde3bf8, count=7) at ../src/compiler/spirv/spirv_to_nir.c:6352 #5 0x0000fffff45e48e8 in vtn_foreach_instruction (b=0xd09c50, start=0xde37f4, end=0xdf4d28, handler=0xfffff45eb614 ) at ../src/compiler/spirv/spirv_to_nir.c:800 #6 0x0000fffff460d6b8 in vtn_emit_cf_func_unstructured (b=0xd09c50, func=0x2f33980, handler=0xfffff45eb614 ) at ../src/compiler/spirv/vtn_cfg.c:680 #7 0x0000fffff460d4b0 in vtn_function_emit (b=0xd09c50, func=0x2f33980, instruction_handler=0xfffff45eb614 ) at ../src/compiler/spirv/vtn_cfg.c:782 #8 0x0000fffff45e76f4 in spirv_to_nir (words=0xde2e18, word_count=27053, spec=0x8, num_spec=0, stage=MESA_SHADER_KERNEL, entry_point_name=0xe10830 "main_function", options=0xffffffffb508, nir_options=0xb293b0) at ../src/compiler/spirv/spirv_to_nir.c:7167 #9 0x0000fffff3aa82dc in mesa_rust::compiler::clc::spirv::SPIRVBin::to_nir (self=0xc82b80, entry_point=..., nir_options=0xb293b0, libclc=0xe58608, spec_constants=..., address_bits=64, log=...) at ../src/gallium/frontends/rusticl/mesa/compiler/clc/spirv.rs:364 #10 0x0000fffff3a2a9e4 in rusticl::core::program::ProgramBuild::to_nir (self=0xe8c2c0, kernel=..., d=0xe58530) at ../src/gallium/frontends/rusticl/core/program.rs:215 #11 0x0000fffff3a5ba5c in rusticl::core::kernel::convert_spirv_to_nir::{closure#2} () at ../src/gallium/frontends/rusticl/core/kernel.rs:1189 #12 0x0000fffff3a8b080 in core::option::Option::unwrap_or_else (self=..., f=...) at /builddir/build/BUILD/rust-1.87.0-build/rustc-1.87.0-src/library/core/src/option.rs:1023 #13 0x0000fffff3a5b8cc in rusticl::core::kernel::convert_spirv_to_nir (build=0xe8c2c0, name=..., args=..., dev=0xe58530) at ../src/gallium/frontends/rusticl/core/kernel.rs:1184 #14 0x0000fffff3a2a17c in rusticl::core::program::ProgramBuild::rebuild_kernels (self=0xe8c2c0, devs=..., is_src=true) at ../src/gallium/frontends/rusticl/core/program.rs:141 #15 0x0000fffff3a2ce68 in rusticl::core::program::Program::build (self=0xe8c250, devs=..., options=...) at ../src/gallium/frontends/rusticl/core/program.rs:598 #16 0x0000fffff39d5e98 in rusticl::api::program::build_program (program=0xe8c2a0, num_devices=0, device_list=0x0, options=0xffffffffd158, pfn_notify=..., user_data=0x0) at ../src/gallium/frontends/rusticl/api/program.rs:340 #17 0x0000fffff39d5c00 in rusticl::api::program::clBuildProgram (program=0xe8c2a0, num_devices=0, device_list=0x0, options=0xffffffffd158, pfn_notify=..., user_data=0x0) at ../src/gallium/frontends/rusticl/api/program.rs:316 #18 0x0000fffff75b8348 in clBuildProgram () from /lib64/libOpenCL.so #19 0x00000000004d7c30 [PAC] in ?? () #20 0x00000000004d85bc in ?? () #21 0x00000000004d1bdc in ?? () #22 0x00000000003a1f90 in ?? () #23 0x000000000039f5a8 in ?? () #24 0x000000000039fbf4 in ?? () #25 0x000000000038db88 in ?? () #26 0x000000000034d118 in ?? () #27 0x000000000034e58c in ?? () #28 0x0000000000852c94 in ?? () #29 0x0000000000856e2c in ?? () #30 0x00000000008570b8 in ?? () #31 0x000000000034f9f8 in ?? () #32 0x0000000000855fec in ?? () #33 0x00000000008565f4 in ?? () #34 0x00000000007de9b0 in ?? () #35 0x000000000030ec40 in ?? () #36 0x0000000000311244 in ?? () #37 0x0000fffff7a7625c in __libc_start_call_main () from /lib64/libc.so.6 #38 0x0000fffff7a7633c [PAC] in __libc_start_main_impl () from /lib64/libc.so.6 #39 0x0000000000308af0 [PAC] in ?? () (gdb) up #1 0x0000fffff45e308c in _vtn_fail (b=0xd09c50, file=0xfffff50fe7fc "../src/compiler/spirv/spirv_to_nir.c", line=619, fmt=0xfffff50fe9b0 "Mismatch between NIR and SPIR-V type.") at ../src/compiler/spirv/spirv_to_nir.c:399 399 os_break(); (gdb) #2 0x0000fffff45e443c in vtn_push_nir_ssa (b=0xd09c50, value_id=154, def=0x3098db8) at ../src/compiler/spirv/spirv_to_nir.c:617 617 vtn_fail_if(def->num_components != glsl_get_vector_elements(type->type) || (gdb) p type $1 = (struct vtn_type *) 0x2f32828 (gdb) p type->type $2 = (const struct glsl_type *) 0xfffff5678910 (gdb) p *def $3 = {parent_instr = 0x3098d88, uses = {prev = 0x3098dc0, next = 0x3098dc0}, index = 131, num_components = 4 '\004', bit_size = 32 ' ', divergent = true, loop_invariant = false} (gdb)