FAILED: src/gallium/targets/va/libgallium_drv_video.so
c++ -o src/gallium/targets/va/libgallium_drv_video.so src/gallium/targets/va/libgallium_drv_video.so.p/target.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,libgallium_drv_video.so -Wl,--whole-archive -Wl,--start-group src/gallium/frontends/va/libva_st.a -Wl,--no-whole-archive -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/mesa-git/src=/usr/src/debug/mesa-git -flto=auto -fpermissive src/gallium/auxiliary/libgalliumvlwinsys.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/gallium/auxiliary/libgalliumvl.a src/compiler/nir/libnir.a src/compiler/libcompiler.a src/gallium/auxiliary/libgallium.a src/gallium/auxiliary/pipe-loader/libpipe_loader_static.a src/loader/libloader.a src/util/libxmlconfig.a src/gallium/winsys/sw/null/libws_null.a src/gallium/winsys/sw/wrapper/libwsw.a src/gallium/winsys/sw/dri/libswdri.a src/gallium/winsys/sw/kms-dri/libswkmsdri.a src/gallium/drivers/r600/libr600.a src/mesa/libmesa.a src/compiler/glsl/libglsl.a src/compiler/glsl/glcpp/libglcpp.a src/mesa/libmesa_sse41.a src/compiler/spirv/libvtn.a src/gallium/winsys/radeon/drm/libradeonwinsys.a src/gallium/drivers/radeonsi/libradeonsi_gfx6.a src/amd/compiler/libaco.a src/gallium/drivers/radeonsi/libradeonsi_gfx7.a src/gallium/drivers/radeonsi/libradeonsi_gfx8.a src/gallium/drivers/radeonsi/libradeonsi_gfx9.a src/gallium/drivers/radeonsi/libradeonsi_gfx10.a src/gallium/drivers/radeonsi/libradeonsi_gfx103.a src/gallium/drivers/radeonsi/libradeonsi_gfx11.a src/gallium/drivers/radeonsi/libradeonsi_gfx115.a src/gallium/drivers/radeonsi/libradeonsi.a src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.a src/amd/addrlib/libaddrlib.a src/amd/common/libamd_common.a src/amd/llvm/libamd_common_llvm.a src/amd/vpelib/liblibvpe.a.a src/nouveau/codegen/libnouveau_codegen.a src/gallium/drivers/nouveau/libnouveau.a src/gallium/winsys/nouveau/drm/libnouveauwinsys.a src/gallium/drivers/d3d12/libd3d12.a src/microsoft/compiler/libdxil_compiler.a src/gallium/drivers/virgl/libvirgl.a src/gallium/winsys/virgl/drm/libvirgldrm.a src/gallium/winsys/virgl/common/libvirglcommon.a src/gallium/winsys/virgl/vtest/libvirglvtest.a -Wl,--version-script /build/mesa-git/src/build/src/gallium/targets/va/va.sym -Wl,--dynamic-list /build/mesa-git/src/mesa/src/gallium/targets/va/../dri.dyn -Wl,--gc-sections -Wl,--build-id=sha1 /usr/lib/libdrm.so /usr/lib/libz.so -pthread -lm /usr/lib/libzstd.so /usr/lib/libunwind.so /usr/lib/libxcb-sync.so /usr/lib/libxcb-present.so /usr/lib/libxshmfence.so /usr/lib/libxcb-xfixes.so /usr/lib/libxcb-dri3.so -lLLVM-19 -lsensors /usr/lib/libexpat.so /usr/lib/libxcb.so /usr/lib/libxcb-randr.so /usr/lib/libdrm_radeon.so /usr/lib/libelf.so -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 /usr/lib/libdrm_amdgpu.so -lLLVM-19 /usr/lib/libd3dx12-format-properties.a /usr/lib/libDirectX-Guids.a /usr/lib/libX11-xcb.so /usr/lib/libX11.so /usr/lib/libxcb-dri2.so -Wl,--end-group
/usr/bin/ld: /tmp/ccLGTxvO.ltrans47.ltrans.o: in function `get_debug_interface(util_dl_library*, ID3D12DeviceFactory*)':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_screen.cpp:898:(.text+0x9dd): undefined reference to `CLSID_D3D12Debug'
/usr/bin/ld: /tmp/ccLGTxvO.ltrans47.ltrans.o: in function `d3d12_init_screen(d3d12_screen*, IUnknown*)':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_screen.cpp:1509:(.text+0x1c2e): undefined reference to `CLSID_D3D12DeviceFactory'
/usr/bin/ld: /tmp/ccLGTxvO.ltrans47.ltrans.o: in function `d3d12_init_dxcore_screen(d3d12_screen*) [clone .lto_priv.0]':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_dxcore_screen.cpp:53:(.text+0x2591): undefined reference to `IID_IDXCoreAdapterFactory'
/usr/bin/ld: /tmp/ccLGTxvO.ltrans47.ltrans.o: in function `d3d12_init_dxcore_screen(d3d12_screen*) [clone .lto_priv.0]':
/usr/include/directx/dxcore_interface.h:435:(.text+0x25f5): undefined reference to `DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS'
/usr/bin/ld: /tmp/ccLGTxvO.ltrans50.ltrans.o: in function `d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile(pipe_video_profile)':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1554:(.text+0x3a03): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_H264'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1560:(.text+0x3a1b): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1556:(.text+0x3a33): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1558:(.text+0x3a43): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1562:(.text+0x3a53): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1564:(.text+0x3a63): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2'
/usr/bin/ld: /tmp/ccLGTxvO.ltrans50.ltrans.o: in function `d3d12_video_decoder_reconfigure_dpb(d3d12_video_decoder*, d3d12_video_buffer*, d3d12_video_decode_output_conversion_arguments const&)':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1577:(.text+0xc469): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_H264'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1586:(.text+0xc654): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10'
/usr/bin/ld: /tmp/ccLGTxvO.ltrans50.ltrans.o:/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1584:(.text+0xc9b3): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN'
collect2: error: ld returned 1 exit status
[3813/3866] Linking target src/gallium/targets/rusticl/libRusticlOpenCL.so.1.0.0
In function ‘agx_alloc_instr’,
inlined from ‘agx_jmp_exec_any’ at src/asahi/compiler/agx_builder.h:2417:19,
inlined from ‘emit_loop’ at ../mesa/src/asahi/compiler/agx_compile.c:2357:4,
inlined from ‘emit_cf_list.isra’ at ../mesa/src/asahi/compiler/agx_compile.c:2417:10:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
23 | I->nr_dests = nr_dests;
|
In function ‘emit_cf_list.isra’:
lto1: note: destination object is likely at address zero
In function ‘agx_alloc_instr’,
inlined from ‘agx_jmp_exec_any’ at src/asahi/compiler/agx_builder.h:2417:19,
inlined from ‘emit_loop’ at ../mesa/src/asahi/compiler/agx_compile.c:2357:4,
inlined from ‘emit_cf_list.isra’ at ../mesa/src/asahi/compiler/agx_compile.c:2417:10:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
In function ‘emit_cf_list.isra’:
lto1: note: destination object is likely at address zero
../mesa/src/gallium/drivers/asahi/agx_pipe.c: In function ‘agx_create_context’:
../mesa/src/gallium/drivers/asahi/agx_pipe.c:1446:7: warning: ‘free’ called on pointer ‘block_138’ with nonzero offset 48 [-Wfree-nonheap-object]
1446 | FREE(pctx);
| ^
In function ‘ralloc_size’,
inlined from ‘rzalloc_size’ at ../mesa/src/util/ralloc.c:152:16,
inlined from ‘agx_create_context’ at ../mesa/src/gallium/drivers/asahi/agx_pipe.c:1431:30:
../mesa/src/util/ralloc.c:118:18: note: returned from ‘malloc’
118 | void *block = malloc(align64(size + sizeof(ralloc_header),
| ^
In function ‘agx_alloc_instr’,
inlined from ‘agx_stack_adjust’ at src/asahi/compiler/agx_builder.h:3490:19,
inlined from ‘agx_compile_function_nir’ at ../mesa/src/asahi/compiler/agx_compile.c:2931:7:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
23 | I->nr_dests = nr_dests;
|
In function ‘agx_compile_function_nir’:
lto1: note: destination object is likely at address zero
In function ‘agx_alloc_instr’,
inlined from ‘agx_stack_adjust’ at src/asahi/compiler/agx_builder.h:3490:19,
inlined from ‘agx_compile_function_nir’ at ../mesa/src/asahi/compiler/agx_compile.c:2931:7:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
In function ‘agx_compile_function_nir’:
lto1: note: destination object is likely at address zero
[3814/3866] Linking target src/gallium/targets/d3dadapter9/d3dadapter9.so.1.0.0
In function ‘agx_alloc_instr’,
inlined from ‘agx_jmp_exec_any’ at src/asahi/compiler/agx_builder.h:2417:19,
inlined from ‘emit_loop’ at ../mesa/src/asahi/compiler/agx_compile.c:2357:4,
inlined from ‘emit_cf_list.isra’ at ../mesa/src/asahi/compiler/agx_compile.c:2417:10:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
23 | I->nr_dests = nr_dests;
|
In function ‘emit_cf_list.isra’:
lto1: note: destination object is likely at address zero
In function ‘agx_alloc_instr’,
inlined from ‘agx_jmp_exec_any’ at src/asahi/compiler/agx_builder.h:2417:19,
inlined from ‘emit_loop’ at ../mesa/src/asahi/compiler/agx_compile.c:2357:4,
inlined from ‘emit_cf_list.isra’ at ../mesa/src/asahi/compiler/agx_compile.c:2417:10:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
In function ‘emit_cf_list.isra’:
lto1: note: destination object is likely at address zero
../mesa/src/gallium/drivers/asahi/agx_pipe.c: In function ‘agx_create_context’:
../mesa/src/gallium/drivers/asahi/agx_pipe.c:1446:7: warning: ‘free’ called on pointer ‘block_138’ with nonzero offset 48 [-Wfree-nonheap-object]
1446 | FREE(pctx);
| ^
In function ‘ralloc_size’,
inlined from ‘rzalloc_size’ at ../mesa/src/util/ralloc.c:152:16,
inlined from ‘agx_create_context’ at ../mesa/src/gallium/drivers/asahi/agx_pipe.c:1431:30:
../mesa/src/util/ralloc.c:118:18: note: returned from ‘malloc’
118 | void *block = malloc(align64(size + sizeof(ralloc_header),
| ^
In function ‘agx_alloc_instr’,
inlined from ‘agx_stack_adjust’ at src/asahi/compiler/agx_builder.h:3490:19,
inlined from ‘agx_compile_function_nir’ at ../mesa/src/asahi/compiler/agx_compile.c:2931:7:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
23 | I->nr_dests = nr_dests;
|
In function ‘agx_compile_function_nir’:
lto1: note: destination object is likely at address zero
In function ‘agx_alloc_instr’,
inlined from ‘agx_stack_adjust’ at src/asahi/compiler/agx_builder.h:3490:19,
inlined from ‘agx_compile_function_nir’ at ../mesa/src/asahi/compiler/agx_compile.c:2931:7:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
In function ‘agx_compile_function_nir’:
lto1: note: destination object is likely at address zero
[3815/3866] Linking target src/gallium/targets/dri/libgallium_dri.so
FAILED: src/gallium/targets/dri/libgallium_dri.so
c++ -o src/gallium/targets/dri/libgallium_dri.so src/gallium/targets/dri/libgallium_dri.so.p/target.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,libgallium_dri.so -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/mesa-git/src=/usr/src/debug/mesa-git -flto=auto -fpermissive '-Wl,-rpath,$ORIGIN/../../../mapi/shared-glapi' -Wl,-rpath-link,/build/mesa-git/src/build/src/mapi/shared-glapi -Wl,--start-group src/gallium/frontends/dri/libdri.a src/util/libmesa_util.a src/util/libmesa_util_sse41.a src/util/blake3/libblake3.a src/c11/impl/libmesa_util_c11.a src/mesa/libmesa.a src/compiler/glsl/libglsl.a src/compiler/glsl/glcpp/libglcpp.a src/compiler/nir/libnir.a src/compiler/libcompiler.a src/mesa/libmesa_sse41.a src/compiler/spirv/libvtn.a src/gallium/auxiliary/libgalliumvl.a src/gallium/auxiliary/libgallium.a src/mapi/shared-glapi/libglapi.so.0.0.0 src/loader/libloader.a src/gallium/auxiliary/pipe-loader/libpipe_loader_static.a src/util/libxmlconfig.a src/gallium/winsys/sw/null/libws_null.a src/gallium/winsys/sw/wrapper/libwsw.a src/gallium/winsys/sw/dri/libswdri.a src/gallium/winsys/sw/kms-dri/libswkmsdri.a src/gallium/drivers/llvmpipe/libllvmpipe.a src/gallium/drivers/softpipe/libsoftpipe.a src/gallium/drivers/r300/libr300.a src/gallium/winsys/radeon/drm/libradeonwinsys.a src/gallium/drivers/r600/libr600.a src/gallium/drivers/radeonsi/libradeonsi_gfx6.a src/amd/compiler/libaco.a src/gallium/drivers/radeonsi/libradeonsi_gfx7.a src/gallium/drivers/radeonsi/libradeonsi_gfx8.a src/gallium/drivers/radeonsi/libradeonsi_gfx9.a src/gallium/drivers/radeonsi/libradeonsi_gfx10.a src/gallium/drivers/radeonsi/libradeonsi_gfx103.a src/gallium/drivers/radeonsi/libradeonsi_gfx11.a src/gallium/drivers/radeonsi/libradeonsi_gfx115.a src/gallium/drivers/radeonsi/libradeonsi.a src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.a src/amd/addrlib/libaddrlib.a src/amd/common/libamd_common.a src/amd/llvm/libamd_common_llvm.a src/amd/vpelib/liblibvpe.a.a src/nouveau/codegen/libnouveau_codegen.a src/gallium/drivers/nouveau/libnouveau.a src/gallium/winsys/nouveau/drm/libnouveauwinsys.a src/gallium/winsys/kmsro/drm/libkmsrowinsys.a src/gallium/drivers/svga/libsvga.a src/gallium/winsys/svga/drm/libsvgadrm.a src/gallium/drivers/virgl/libvirgl.a src/gallium/winsys/virgl/drm/libvirgldrm.a src/gallium/winsys/virgl/common/libvirglcommon.a src/gallium/winsys/virgl/vtest/libvirglvtest.a src/gallium/drivers/panfrost/libpanfrost.a src/gallium/drivers/panfrost/libpanfrost-v4.a src/gallium/drivers/panfrost/libpanfrost-v5.a src/gallium/drivers/panfrost/libpanfrost-v6.a src/gallium/drivers/panfrost/libpanfrost-v7.a src/gallium/drivers/panfrost/libpanfrost-v9.a src/gallium/drivers/panfrost/libpanfrost-v10.a src/gallium/winsys/panfrost/drm/libpanfrostwinsys.a src/panfrost/shared/libpanfrost_shared.a src/panfrost/midgard/libpanfrost_midgard.a src/panfrost/util/libpanfrost_util.a src/panfrost/midgard/libpanfrost_midgard_disasm.a src/panfrost/compiler/libpanfrost_bifrost.a src/panfrost/compiler/libpanfrost_bifrost_disasm.a src/panfrost/compiler/valhall/libpanfrost_valhall_disasm.a src/panfrost/lib/genxml/libpanfrost_decode.a src/panfrost/lib/genxml/libpandecode-arch-v4.a src/panfrost/lib/genxml/libpandecode-arch-v5.a src/panfrost/lib/genxml/libpandecode-arch-v6.a src/panfrost/lib/genxml/libpandecode-arch-v7.a src/panfrost/lib/genxml/libpandecode-arch-v9.a src/panfrost/lib/genxml/libpandecode-arch-v10.a src/panfrost/lib/libpanfrost_lib.a src/panfrost/lib/libpan-format-v5.a src/panfrost/lib/libpan-format-v6.a src/panfrost/lib/libpan-format-v7.a src/panfrost/lib/libpan-format-v9.a src/panfrost/lib/libpan-arch-v4.a src/panfrost/lib/libpan-arch-v5.a src/panfrost/lib/libpan-arch-v6.a src/panfrost/lib/libpan-arch-v7.a src/panfrost/lib/libpan-arch-v9.a src/panfrost/lib/libpan-arch-v10.a src/panfrost/lib/libpan-arch-indirect-v7.a src/panfrost/lib/kmod/libpankmod_lib.a src/gallium/drivers/iris/libiris.a src/gallium/drivers/iris/libiris_per_hw_ver80.a src/intel/blorp/libblorp.a src/intel/dev/libintel_dev.a src/gallium/drivers/iris/libiris_per_hw_ver90.a src/gallium/drivers/iris/libiris_per_hw_ver110.a src/gallium/drivers/iris/libiris_per_hw_ver120.a src/gallium/drivers/iris/libiris_per_hw_ver125.a src/gallium/drivers/iris/libiris_per_hw_ver200.a src/intel/isl/libisl.a src/intel/isl/libisl_per_hw_ver40.a src/intel/isl/libisl_per_hw_ver50.a src/intel/isl/libisl_per_hw_ver60.a src/intel/isl/libisl_per_hw_ver70.a src/intel/isl/libisl_per_hw_ver75.a src/intel/isl/libisl_per_hw_ver80.a src/intel/isl/libisl_per_hw_ver90.a src/intel/isl/libisl_per_hw_ver110.a src/intel/isl/libisl_per_hw_ver120.a src/intel/isl/libisl_per_hw_ver125.a src/intel/isl/libisl_per_hw_ver200.a src/intel/isl/libisl_tiled_memcpy.a src/intel/isl/libisl_tiled_memcpy_sse41.a src/intel/perf/libintel_perf.a src/intel/common/libintel_common.a src/intel/common/libintel_clflushopt.a src/intel/ds/libintel-driver-ds.a src/intel/blorp/libblorp_elk.a src/intel/decoder/libintel_decoder_elk.a src/intel/decoder/libintel_decoder_brw.a src/intel/compiler/elk/libintel_compiler_elk.a src/intel/compiler/libintel_compiler.a src/gallium/winsys/iris/drm/libiriswinsys.a src/gallium/drivers/lima/liblima.a src/gallium/winsys/lima/drm/liblimawinsys.a src/gallium/drivers/zink/libzink.a src/vulkan/util/libvulkan_util.a src/gallium/drivers/d3d12/libd3d12.a src/microsoft/compiler/libdxil_compiler.a src/gallium/drivers/asahi/libasahi.a src/compiler/clc/liblibmesaclc.a src/gallium/winsys/asahi/drm/libasahiwinsys.a src/asahi/compiler/libasahi_compiler.a src/asahi/lib/libasahi_lib.a src/asahi/lib/libasahi_decode.a src/asahi/layout/libasahi_layout.a src/gallium/drivers/crocus/libcrocus.a src/gallium/drivers/crocus/libcrocus_per_hw_ver40.a src/gallium/drivers/crocus/libcrocus_per_hw_ver45.a src/gallium/drivers/crocus/libcrocus_per_hw_ver50.a src/gallium/drivers/crocus/libcrocus_per_hw_ver60.a src/gallium/drivers/crocus/libcrocus_per_hw_ver70.a src/gallium/drivers/crocus/libcrocus_per_hw_ver75.a src/gallium/drivers/crocus/libcrocus_per_hw_ver80.a src/gallium/winsys/crocus/drm/libcrocuswinsys.a -Wl,--build-id=sha1 -Wl,--gc-sections -Wl,--version-script /build/mesa-git/src/build/src/gallium/targets/dri/dri.sym -Wl,--dynamic-list /build/mesa-git/src/mesa/src/gallium/targets/dri/../dri.dyn /usr/lib/libdrm.so -lLLVM-19 -pthread /usr/lib/libexpat.so /usr/lib/libz.so -lm /usr/lib/libzstd.so /usr/lib/libunwind.so /usr/lib/libxcb.so /usr/lib/libX11-xcb.so /usr/lib/libX11.so /usr/lib/libxcb-dri3.so /usr/lib/libxcb-present.so /usr/lib/libxcb-xfixes.so /usr/lib/libxcb-sync.so /usr/lib/libxcb-randr.so /usr/lib/libxcb-shm.so /usr/lib/libxshmfence.so /usr/lib/libwayland-client.so /usr/lib/libXrandr.so -lLLVM-19 -lsensors -lLLVM-19 /usr/lib/libdrm_radeon.so -lLLVM-19 /usr/lib/libelf.so -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 -lLLVM-19 /usr/lib/libdrm_amdgpu.so -lLLVM-19 /usr/lib/libd3dx12-format-properties.a /usr/lib/libDirectX-Guids.a -fPIC /usr/lib/libclang-cpp.so -lLLVM-19 /usr/lib/libLLVMSPIRVLib.a /usr/lib/libSPIRV-Tools-opt.so /usr/lib/libSPIRV-Tools.so /usr/lib/libSPIRV-Tools-link.so -Wl,--end-group
../mesa/src/gallium/drivers/asahi/agx_pipe.c: In function ‘agx_create_context’:
../mesa/src/gallium/drivers/asahi/agx_pipe.c:1446:7: warning: ‘free’ called on pointer ‘block_138’ with nonzero offset 48 [-Wfree-nonheap-object]
1446 | FREE(pctx);
| ^
In function ‘ralloc_size’,
inlined from ‘rzalloc_size’ at ../mesa/src/util/ralloc.c:152:16,
inlined from ‘agx_create_context’ at ../mesa/src/gallium/drivers/asahi/agx_pipe.c:1431:30:
../mesa/src/util/ralloc.c:118:18: note: returned from ‘malloc’
118 | void *block = malloc(align64(size + sizeof(ralloc_header),
| ^
In function ‘agx_alloc_instr’,
inlined from ‘agx_jmp_exec_any’ at src/asahi/compiler/agx_builder.h:2417:19,
inlined from ‘emit_loop’ at ../mesa/src/asahi/compiler/agx_compile.c:2357:4,
inlined from ‘emit_cf_list.isra’ at ../mesa/src/asahi/compiler/agx_compile.c:2417:10:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
23 | I->nr_dests = nr_dests;
|
In function ‘emit_cf_list.isra’:
lto1: note: destination object is likely at address zero
In function ‘agx_alloc_instr’,
inlined from ‘agx_jmp_exec_any’ at src/asahi/compiler/agx_builder.h:2417:19,
inlined from ‘emit_loop’ at ../mesa/src/asahi/compiler/agx_compile.c:2357:4,
inlined from ‘emit_cf_list.isra’ at ../mesa/src/asahi/compiler/agx_compile.c:2417:10:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
In function ‘emit_cf_list.isra’:
lto1: note: destination object is likely at address zero
In function ‘agx_alloc_instr’,
inlined from ‘agx_stack_adjust’ at src/asahi/compiler/agx_builder.h:3490:19,
inlined from ‘agx_compile_function_nir’ at ../mesa/src/asahi/compiler/agx_compile.c:2931:7:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
23 | I->nr_dests = nr_dests;
|
In function ‘agx_compile_function_nir’:
lto1: note: destination object is likely at address zero
In function ‘agx_alloc_instr’,
inlined from ‘agx_stack_adjust’ at src/asahi/compiler/agx_builder.h:3490:19,
inlined from ‘agx_compile_function_nir’ at ../mesa/src/asahi/compiler/agx_compile.c:2931:7:
src/asahi/compiler/agx_builder.h:23: warning: writing 2 bytes into a region of size 0 [-Wstringop-overflow=]
In function ‘agx_compile_function_nir’:
lto1: note: destination object is likely at address zero
/usr/bin/ld: /tmp/ccRAbPNZ.ltrans54.ltrans.o: in function `get_debug_interface(util_dl_library*, ID3D12DeviceFactory*)':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_screen.cpp:898:(.text+0x2fdd): undefined reference to `CLSID_D3D12Debug'
/usr/bin/ld: /tmp/ccRAbPNZ.ltrans54.ltrans.o: in function `d3d12_init_dxcore_screen(d3d12_screen*) [clone .lto_priv.0]':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_dxcore_screen.cpp:53:(.text+0x30aa): undefined reference to `IID_IDXCoreAdapterFactory'
/usr/bin/ld: /tmp/ccRAbPNZ.ltrans54.ltrans.o: in function `d3d12_init_dxcore_screen(d3d12_screen*) [clone .lto_priv.0]':
/usr/include/directx/dxcore_interface.h:435:(.text+0x3115): undefined reference to `DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS'
/usr/bin/ld: /tmp/ccRAbPNZ.ltrans54.ltrans.o: in function `d3d12_init_dxcore_screen(d3d12_screen*) [clone .lto_priv.0]':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_screen.cpp:1509:(.text+0x3c05): undefined reference to `CLSID_D3D12DeviceFactory'
/usr/bin/ld: /tmp/ccRAbPNZ.ltrans55.ltrans.o: in function `d3d12_video_decoder_reconfigure_dpb(d3d12_video_decoder*, d3d12_video_buffer*, d3d12_video_decode_output_conversion_arguments const&)':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1577:(.text+0x11d19): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_H264'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1586:(.text+0x11f04): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10'
/usr/bin/ld: /tmp/ccRAbPNZ.ltrans55.ltrans.o:/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1584:(.text+0x122ab): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN'
/usr/bin/ld: /tmp/ccRAbPNZ.ltrans55.ltrans.o: in function `d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile(pipe_video_profile)':
/usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1554:(.text+0x15913): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_H264'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1560:(.text+0x1592b): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1556:(.text+0x15943): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1558:(.text+0x15953): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1562:(.text+0x15963): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9'
/usr/bin/ld: /usr/src/debug/mesa-git/build/../mesa/src/gallium/drivers/d3d12/d3d12_video_dec.cpp:1564:(.text+0x15973): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.