Problem with mesa3d-32
Hi, I cannot build mesa3d-32 recently. The 64 bit version built just fine. It's probably the first time I have such problem. I definitely was able to build mesa3d-32, so it might be related to the 19.2 release series. Any idea what's wrong? End of logs build below Wawrzek [391/2246] Compiling C object 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_debug.c.o'. ../src/amd/vulkan/radv_debug.c: In function 'radv_dump_descriptors': ../src/amd/vulkan/radv_debug.c:325:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (struct radv_descriptor_set *)ptr[i + 3]; ^ ../src/amd/vulkan/radv_debug.c: In function 'radv_get_saved_graphics_pipeline': ../src/amd/vulkan/radv_debug.c:570:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (struct radv_pipeline *)ptr[1]; ^ ../src/amd/vulkan/radv_debug.c: In function 'radv_get_saved_compute_pipeline': ../src/amd/vulkan/radv_debug.c:578:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (struct radv_pipeline *)ptr[2]; ^ [420/2246] Linking target src/amd/vulkan/libvulkan_radeon.so. FAILED: src/amd/vulkan/libvulkan_radeon.so /usr/bin/g++ -o src/amd/vulkan/libvulkan_radeon.so 'src/amd/vulkan/9198681@@vulkan_radeon@sha/meson-generated_.._radv_entrypoints.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/meson-generated_.._radv_extensions.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/meson-generated_.._vk_format_table.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/winsys_amdgpu_radv_amdgpu_bo.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/winsys_amdgpu_radv_amdgpu_cs.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/winsys_amdgpu_radv_amdgpu_surface.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/winsys_amdgpu_radv_amdgpu_winsys.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_cmd_buffer.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_debug.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_device.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_descriptor_set.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_formats.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_image.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_llvm_helper.cpp.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_blit.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_blit2d.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_buffer.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_bufimage.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_clear.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_copy.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_decompress.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_fast_clear.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_fmask_expand.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_resolve.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_resolve_cs.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_resolve_fs.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_nir_lower_ycbcr_textures.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_nir_to_llvm.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_pass.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_pipeline.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_pipeline_cache.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_shader.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_shader_info.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_query.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_util.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_wsi.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/si_cmd_buffer.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_wsi_x11.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_wsi_display.c.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libvulkan_radeon.so -m32 src/amd/common/libamd_common.a src/amd/addrlib/libaddrlib.a src/vulkan/wsi/libvulkan_wsi.a src/vulkan/util/libvulkan_util.a src/util/libxmlconfig.a src/util/libmesa_util.a src/compiler/nir/libnir.a src/compiler/libcompiler.a -Wl,-Bsymbolic -Wl,--gc-sections -L/usr/lib32 -lLLVM-9 -pthread /usr/lib32/libdrm_amdgpu.so /usr/lib32/libelf.so -ldl -lm /usr/lib32/libxcb-dri3.so /usr/lib32/libxcb-randr.so /usr/lib32/libXrandr.so /usr/lib32/libz.so /usr/lib32/libexpat.so -L/usr/lib32 -lLLVM-9 /usr/lib32/libxcb.so /usr/lib32/libX11-xcb.so /usr/lib32/libX11.so /usr/lib32/libxcb-dri2.so /usr/lib32/libxcb-present.so /usr/lib32/libxcb-sync.so /usr/lib32/libxshmfence.so /usr/lib32/libdrm.so -Wl,--end-group '-Wl,-rpath,$ORIGIN/../common:$ORIGIN/../addrlib:$ORIGIN/../../vulkan/wsi:$ORIGIN/../../vulkan/util:$ORIGIN/../../util:$ORIGIN/../../compiler/nir:$ORIGIN/../../compiler' -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/amd/common -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/amd/addrlib -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/vulkan/wsi -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/vulkan/util -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/util -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/compiler/nir -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/compiler /usr/bin/ld: src/amd/common/libamd_common.a(ac_llvm_helper.cpp.o): in function `llvm::MetadataTracking::track(llvm::Metadata*&)': /usr/include/llvm/IR/Metadata.h:222: undefined reference to `llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)' /usr/bin/ld: /usr/include/llvm/IR/Metadata.h:222: undefined reference to `llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. =======> ERROR: Building '/usr/ports/compat-32/mesa3d-32/mesa3d-32#19.2.1-2.pkg.tar.gz' failed. -- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124
FYI the problem was a mismatch in the llvm version of 64 and 32 arch (8.0.0 vs 9.0.0). Wawrzek On Sun, 27 Oct 2019 at 08:52, Wawrzek Niewodniczanski <main@wawrzek.name> wrote:
Hi, I cannot build mesa3d-32 recently. The 64 bit version built just fine. It's probably the first time I have such problem. I definitely was able to build mesa3d-32, so it might be related to the 19.2 release series. Any idea what's wrong? End of logs build below
Wawrzek
[391/2246] Compiling C object 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_debug.c.o'. ../src/amd/vulkan/radv_debug.c: In function 'radv_dump_descriptors': ../src/amd/vulkan/radv_debug.c:325:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] (struct radv_descriptor_set *)ptr[i + 3]; ^ ../src/amd/vulkan/radv_debug.c: In function 'radv_get_saved_graphics_pipeline': ../src/amd/vulkan/radv_debug.c:570:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (struct radv_pipeline *)ptr[1]; ^ ../src/amd/vulkan/radv_debug.c: In function 'radv_get_saved_compute_pipeline': ../src/amd/vulkan/radv_debug.c:578:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] return (struct radv_pipeline *)ptr[2]; ^ [420/2246] Linking target src/amd/vulkan/libvulkan_radeon.so. FAILED: src/amd/vulkan/libvulkan_radeon.so /usr/bin/g++ -o src/amd/vulkan/libvulkan_radeon.so 'src/amd/vulkan/9198681@@vulkan_radeon@sha/meson-generated_.._radv_entrypoints.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/meson-generated_.._radv_extensions.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/meson-generated_.._vk_format_table.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/winsys_amdgpu_radv_amdgpu_bo.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/winsys_amdgpu_radv_amdgpu_cs.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/winsys_amdgpu_radv_amdgpu_surface.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/winsys_amdgpu_radv_amdgpu_winsys.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_cmd_buffer.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_debug.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_device.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_descriptor_set.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_formats.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_image.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_llvm_helper.cpp.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_blit.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_blit2d.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_buffer.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_bufimage.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_clear.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_copy.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_decompress.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_fast_clear.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_fmask_expand.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_resolve.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_resolve_cs.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_meta_resolve_fs.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_nir_lower_ycbcr_textures.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_nir_to_llvm.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_pass.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_pipeline.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_pipeline_cache.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_shader.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_shader_info.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_query.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_util.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_wsi.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/si_cmd_buffer.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_wsi_x11.c.o' 'src/amd/vulkan/9198681@@vulkan_radeon@sha/radv_wsi_display.c.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libvulkan_radeon.so -m32 src/amd/common/libamd_common.a src/amd/addrlib/libaddrlib.a src/vulkan/wsi/libvulkan_wsi.a src/vulkan/util/libvulkan_util.a src/util/libxmlconfig.a src/util/libmesa_util.a src/compiler/nir/libnir.a src/compiler/libcompiler.a -Wl,-Bsymbolic -Wl,--gc-sections -L/usr/lib32 -lLLVM-9 -pthread /usr/lib32/libdrm_amdgpu.so /usr/lib32/libelf.so -ldl -lm /usr/lib32/libxcb-dri3.so /usr/lib32/libxcb-randr.so /usr/lib32/libXrandr.so /usr/lib32/libz.so /usr/lib32/libexpat.so -L/usr/lib32 -lLLVM-9 /usr/lib32/libxcb.so /usr/lib32/libX11-xcb.so /usr/lib32/libX11.so /usr/lib32/libxcb-dri2.so /usr/lib32/libxcb-present.so /usr/lib32/libxcb-sync.so /usr/lib32/libxshmfence.so /usr/lib32/libdrm.so -Wl,--end-group '-Wl,-rpath,$ORIGIN/../common:$ORIGIN/../addrlib:$ORIGIN/../../vulkan/wsi:$ORIGIN/../../vulkan/util:$ORIGIN/../../util:$ORIGIN/../../compiler/nir:$ORIGIN/../../compiler' -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/amd/common -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/amd/addrlib -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/vulkan/wsi -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/vulkan/util -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/util -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/compiler/nir -Wl,-rpath-link,/home/build/mesa3d-32/src/mesa-19.2.1/build/src/compiler /usr/bin/ld: src/amd/common/libamd_common.a(ac_llvm_helper.cpp.o): in function `llvm::MetadataTracking::track(llvm::Metadata*&)': /usr/include/llvm/IR/Metadata.h:222: undefined reference to `llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)' /usr/bin/ld: /usr/include/llvm/IR/Metadata.h:222: undefined reference to `llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. =======> ERROR: Building '/usr/ports/compat-32/mesa3d-32/mesa3d-32#19.2.1-2.pkg.tar.gz' failed.
-- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124
-- Dr Wawrzyniec Niewodniczański or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124
participants (1)
-
Wawrzek Niewodniczanski