Package Details: mesa-git 24.3.0_devel.194818.d3429a7e00d.d41d8cd-1

Git Clone URL: https://aur.archlinux.org/mesa-git.git (read-only, click to copy)
Package Base: mesa-git
Description: an open-source implementation of the OpenGL specification, git version
Upstream URL: https://www.mesa3d.org
Keywords: mesa wayland X11
Licenses: custom
Conflicts: libva-mesa-driver, mesa, mesa-libgl, mesa-vdpau, opencl-clover-mesa, opencl-rusticl-mesa, vulkan-intel, vulkan-mesa-layers, vulkan-nouveau, vulkan-radeon, vulkan-swrast, vulkan-virtio
Provides: libva-mesa-driver, mesa, mesa-libgl, mesa-vdpau, opencl-driver, opencl-rusticl-mesa, opengl-driver, vulkan-driver, vulkan-intel, vulkan-mesa-layers, vulkan-nouveau, vulkan-radeon, vulkan-swrast, vulkan-virtio
Submitter: Krejzi
Maintainer: rjahanbakhshi (Lone_Wolf)
Last Packager: Lone_Wolf
Votes: 182
Popularity: 0.42
First Submitted: 2014-06-19 21:33 (UTC)
Last Updated: 2024-09-15 20:40 (UTC)

Required by (1315)

Sources (6)

Pinned Comments

Lone_Wolf commented on 2024-09-10 19:58 (UTC)

removed obsolete options, build now works again.

building opencl clover is disabled for now, see https://gitlab.freedesktop.org/mesa/mesa/-/issues/11863

Those that need opencl should use rusticl instead. Note that rusticl at runtime is disabled by default, see https://docs.mesa3d.org/envvars.html#rusticl-environment-variables for info about enabling it.

Lone_Wolf commented on 2020-04-23 12:26 (UTC) (edited on 2023-03-30 07:04 (UTC) by Lone_Wolf)

Mesa and llvm are closely tied together. Everytime the llvm mesa is built against changes/updates , mesa needs to be rebuilt.

I expect anyone building mesa-git against one of the llvm trunk variants to be able to do that themselves, but atleast some of the people that built against repo llvm don't understand how to deal with such a rebuild.

The rest of this post is meant for those people.

  • Verify if latest PKGBUILD requirements match llvm repo versions.
  • If they don't , post to alert the maintainer of this.
  • DELAY the update of llvm/clang suite and their lib32- counterparts
  • Once the PKGBUILD does match, download it.

Option A - best one

  • run pacman -Syu to ensure your system is in sync with your mirrror server
  • build mesa-git in a clean chroot

see https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_clean_chroot for the official way or https://aur.archlinux.org/packages/clean-chroot-manager for an alternative method.

  • install the newly built mesa-git
  • run pacman -Syu
  • ready

Option B - 2nd best

  • revert to repo mesa
  • pacman -Syu
  • build mesa-git
  • switch from mesa to mesa-git
  • ready

Lone_Wolf commented on 2019-07-09 13:43 (UTC) (edited on 2023-04-18 10:41 (UTC) by Lone_Wolf)

  • choosing which llvm variant to build against

WARNING : aur helpers don't support this method at all. They check .SRCINFO and that doesn't include this variable so it will use the default which is hardcoded to build against repo llvm.

Why would I want to use llvm development versions ?

For full functionality and latest features mesa trunk master needs to be build against llvm trunk master.
If you build against stable llvm things MAY work, but you're likely to lack some features and face stability issues.

Mesa-git uses a custom environment variable MESA_WHICH_LLVM for flexibility.
It has 4 values.
1 : aur llvm-minimal-git
2 : aur llvm-git
3: llvm-git from LordHeavy' unofficial repo
4: llvm from extra repo

I use value 1 95% of the time and set this in ~/.bash_rc .
If MESA_WHICH_LLVM is unset or empty, the default value of 4 (extra llvm) is used.

Lone_Wolf commented on 2018-01-30 14:06 (UTC) (edited on 2023-02-12 11:56 (UTC) by Lone_Wolf)

  • main difference with stable repo package
[extra]mesa is a split package, but aur mesa-git isn't.
Basically with aur mesa-git you get everything in one package, while [extra]/mesa allows you to leave out some parts if you don't want/need them.
Having a single package reduces maintenance and makes switching from stable to mesa-git rather easy, though reverting back to stable can be tricky.
  • meson settings
Those who compare PKGBUILDs will notice I don't use arch-meson, but meson setup.
I disagree with some of the settings made by arch-meson (especially the buildtype and enabling LTO by default) and feel using meson setup is cleaner.
  • how to update

run pacman Syu update non-repo packages for llvm if you use them

build mesa-git, log out , update mesa-git and restart X .

run glxinfo -B to verify basic OpenGL functionality

build lib32-mesa-git

run glxinfo32 -B to verify basic OpenGL functionality for multilib programs

Latest Comments

« First ‹ Previous 1 .. 17 18 19 20 21 22 23 24 25 26 27 .. 131 Next › Last »

galeksandrp commented on 2023-04-23 12:55 (UTC) (edited on 2023-04-23 13:01 (UTC) by galeksandrp)

Anyone building mesa-git with -D vulkan-drivers=microsoft-experimental (Dozen driver provides Vulkan on top of Direct3D12, D3D12 dxgkrnl kernel driver available mainly on WSL2):

you need rmdir --ignore-fail-on-non-empty "${pkgdir}/usr/bin" instead of rmdir "${pkgdir}/usr/bin", or your build will fail on package(),

because in this build case "${pkgdir}/usr/bin" contains spirv2dxil.

diff --git a/PKGBUILD b/PKGBUILD
index 7e67928..4419f0b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -126,7 +126,7 @@ build () {
        -D b_lto=false \
        -D platforms=x11,wayland \
        -D gallium-drivers=r300,r600,radeonsi,nouveau,virgl,svga,swrast,i915,iris,crocus,zink,d3d12 \
-       -D vulkan-drivers=amd,intel,swrast,virtio-experimental,intel_hasvk \
+       -D vulkan-drivers=amd,intel,swrast,virtio-experimental,intel_hasvk,microsoft-experimental \
        -D vulkan-layers=device-select,overlay \
        -D dri3=enabled \
        -D egl=enabled \
@@ -168,7 +168,7 @@ package() {
     # remove script file from /usr/bin
     # https://gitlab.freedesktop.org/mesa/mesa/issues/2230
     rm "${pkgdir}/usr/bin/mesa-overlay-control.py"
-    rmdir "${pkgdir}/usr/bin"
+    rmdir --ignore-fail-on-non-empty "${pkgdir}/usr/bin"

     # indirect rendering
     ln -s /usr/lib/libGLX_mesa.so.0 "${pkgdir}/usr/lib/libGLX_indirect.so.0"

Lone_Wolf commented on 2023-04-22 13:58 (UTC)

@matrikslee : this is caused by an incorrect setting in the directx-headers-git pkgbuild . Wait for the maintainer to apply the change I mention in https://aur.archlinux.org/packages/directx-headers-git#comment-911329 or apply it yourself to the directx-headers-git PKGBUILD.

matrikslee commented on 2023-04-21 14:04 (UTC)

hello, the latest build is broken on gallium d3d12 drivers.

/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_video_dec.cpp.o: in function `d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile(pipe_video_profile)':
d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x23): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_H264'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x3b): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x53): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x63): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x73): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x83): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2'
/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_video_dec.cpp.o: in function `d3d12_video_decoder_resolve_profile(d3d12_video_decode_profile_type, DXGI_FORMAT)':
d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x13): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_H264'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x23): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x38): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x50): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x63): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x73): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN'
/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_dxcore_screen.cpp.o: in function `d3d12_init_dxcore_screen(d3d12_screen*)':
d3d12_dxcore_screen.cpp:(.text._ZL24d3d12_init_dxcore_screenP12d3d12_screen+0x5c): undefined reference to `IID_IDXCoreAdapterFactory'
/usr/bin/ld: d3d12_dxcore_screen.cpp:(.text._ZL24d3d12_init_dxcore_screenP12d3d12_screen+0xc4): undefined reference to `DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS'
/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_screen.cpp.o: in function `get_debug_interface(util_dl_library*, ID3D12DeviceFactory*)':
d3d12_screen.cpp:(.text._ZL19get_debug_interfaceP15util_dl_libraryP19ID3D12DeviceFactory+0x2d): undefined reference to `CLSID_D3D12Debug'
/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_screen.cpp.o: in function `d3d12_init_screen(d3d12_screen*, IUnknown*)':
d3d12_screen.cpp:(.text._Z17d3d12_init_screenP12d3d12_screenP8IUnknown+0x5c): undefined reference to `CLSID_D3D12DeviceFactory'
collect2: error: ld returned 1 exit status
[6/19] 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,--start-group -Wl,-soname,libgallium_dri.so -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -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 '-Wl,-rpath,$ORIGIN/../../../mapi/shared-glapi' -Wl,-rpath-link,/home/matrikslee/.cache/paru/clone/mesa-git/src/_build/src/mapi/shared-glapi src/gallium/frontends/dri/libdri.a src/util/libmesa_util.a src/util/format/libmesa_format.a src/util/libmesa_util_sse41.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/gallium/auxiliary/libgalliumvl.a src/gallium/auxiliary/libgallium.a src/mapi/shared-glapi/libglapi.so.0.0.0 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/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/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.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/gallium/winsys/nouveau/drm/libnouveauwinsys.a src/nouveau/codegen/libnouveau_codegen.a src/gallium/drivers/nouveau/libnouveau.a src/gallium/drivers/i915/libi915.a src/gallium/winsys/i915/drm/libi915drm.a src/intel/common/libintel_common.a src/intel/isl/libisl.a src/intel/isl/libisl_per_hw_ver40.a src/intel/dev/libintel_dev.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_tiled_memcpy.a src/intel/isl/libisl_tiled_memcpy_sse41.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/iris/libiris.a src/gallium/drivers/iris/libiris_per_hw_ver80.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/intel/compiler/libintel_compiler.a src/intel/blorp/libblorp.a src/intel/perf/libintel_perf.a src/intel/ds/libintel-driver-ds.a src/gallium/winsys/iris/drm/libiriswinsys.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/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 /home/matrikslee/.cache/paru/clone/mesa-git/src/mesa/src/gallium/targets/dri/dri.sym -Wl,--dynamic-list /home/matrikslee/.cache/paru/clone/mesa-git/src/mesa/src/gallium/targets/dri/../dri-vdpau.dyn /usr/lib/libdrm.so -lLLVM-15 -pthread /usr/lib/libexpat.so /usr/lib/libz.so -lm /usr/lib/libzstd.so /usr/lib/libunwind.so -lLLVM-15 -lsensors -lLLVM-15 /usr/lib/libdrm_radeon.so -lLLVM-15 /usr/lib/libelf.so -lLLVM-15 -lLLVM-15 -lLLVM-15 -lLLVM-15 -lLLVM-15 -lLLVM-15 -lLLVM-15 -lLLVM-15 -lLLVM-15 -lLLVM-15 /usr/lib/libdrm_amdgpu.so -lLLVM-15 /usr/lib/libdrm_nouveau.so /usr/lib/libdrm_intel.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 /usr/lib/libd3dx12-format-properties.a /usr/lib/libDirectX-Guids.a -Wl,--end-group
/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_video_dec.cpp.o: in function `d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile(pipe_video_profile)':
d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x23): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_H264'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x3b): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x53): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x63): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x73): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z63d3d12_video_decoder_convert_pipe_video_profile_to_d3d12_profile18pipe_video_profile+0x83): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2'
/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_video_dec.cpp.o: in function `d3d12_video_decoder_resolve_profile(d3d12_video_decode_profile_type, DXGI_FORMAT)':
d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x13): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_H264'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x23): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_AV1_PROFILE0'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x38): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN10'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x50): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9_10BIT_PROFILE2'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x63): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_VP9'
/usr/bin/ld: d3d12_video_dec.cpp:(.text._Z35d3d12_video_decoder_resolve_profile31d3d12_video_decode_profile_type11DXGI_FORMAT+0x73): undefined reference to `D3D12_VIDEO_DECODE_PROFILE_HEVC_MAIN'
/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_dxcore_screen.cpp.o: in function `d3d12_init_dxcore_screen(d3d12_screen*)':
d3d12_dxcore_screen.cpp:(.text._ZL24d3d12_init_dxcore_screenP12d3d12_screen+0x5c): undefined reference to `IID_IDXCoreAdapterFactory'
/usr/bin/ld: d3d12_dxcore_screen.cpp:(.text._ZL24d3d12_init_dxcore_screenP12d3d12_screen+0xc4): undefined reference to `DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS'
/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_screen.cpp.o: in function `get_debug_interface(util_dl_library*, ID3D12DeviceFactory*)':
d3d12_screen.cpp:(.text._ZL19get_debug_interfaceP15util_dl_libraryP19ID3D12DeviceFactory+0x2d): undefined reference to `CLSID_D3D12Debug'
/usr/bin/ld: src/gallium/drivers/d3d12/libd3d12.a.p/d3d12_screen.cpp.o: in function `d3d12_init_screen(d3d12_screen*, IUnknown*)':
d3d12_screen.cpp:(.text._Z17d3d12_init_screenP12d3d12_screenP8IUnknown+0x5c): undefined reference to `CLSID_D3D12DeviceFactory'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Lone_Wolf commented on 2023-04-18 10:36 (UTC) (edited on 2023-04-18 10:37 (UTC) by Lone_Wolf)

Reza can't use his archlinux systems for the time being and has asked me to help out maintaining mesa-git & lib32-mesa-git .He expects to be back fully in a few weeks.

bittin commented on 2023-04-17 16:08 (UTC)

23.1.0-rc1 released

viktorjk commented on 2023-04-15 14:30 (UTC)

@Lone_Wolf Thanks, but I forgot that I was building with --shared-llvm=disabled and it seems that this is no longer possible with extra/llvm because of https://github.com/archlinux/svntogit-packages/commit/bc5ab1d4b61a7d2221cfdd9154e01ccd14073333.

Lone_Wolf commented on 2023-04-15 13:31 (UTC) (edited on 2023-04-15 13:39 (UTC) by Lone_Wolf)

@viktorjk Try removing cmake from your system so mesa is forced to use llvm-config to find llvm/clang .

see https://bugs.archlinux.org/task/77691 for some background info.

viktorjk commented on 2023-04-15 13:21 (UTC) (edited on 2023-04-15 19:30 (UTC) by viktorjk)

I'm trying to build with extra/llvm (currently 15.0.7-2), but the build fails during configuration with

llvm-config found: YES (/usr/bin/llvm-config) 15.0.7
Run-time dependency LLVM (modules: amdgpu, asmparser, bitreader, bitwriter, core, engine, executionengine, instcombine, ipo, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines, lto) found: NO (tried cmake and config-tool)
Not looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, amdgpu, bitreader, ipo, asmparser, native) because:
Use of fallback dependencies is disabled.

mesa/meson.build:1649:2: ERROR: Dependency 'llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, amdgpu, bitreader, ipo, asmparser, native)' is required but not found.

Since the PKGBUILD uses --wrap-mode=nofallback, I also tried --wrap-mode=nodownload because I believe this is what extra/mesa uses with arch-meson. But the build still fails with

llvm-config found: YES (/usr/bin/llvm-config) 15.0.7
Run-time dependency LLVM (modules: amdgpu, asmparser, bitreader, bitwriter, core, engine, executionengine, instcombine, ipo, mcdisassembler, mcjit, native, scalaropts, transformutils, coroutines, lto) found: NO (tried cmake and config-tool)
Looking for a fallback subproject for the dependency llvm (modules: bitwriter, engine, mcdisassembler, mcjit, core, executionengine, scalaropts, transformutils, instcombine, amdgpu, bitreader, ipo, asmparser, native)
Building fallback subproject with default_library=static

mesa/meson.build:1649:2: ERROR: Neither a subproject directory nor a llvm.wrap file was found.

So I looked for changes in the extra/llvm and found: https://github.com/archlinux/svntogit-packages/commit/bc5ab1d4b61a7d2221cfdd9154e01ccd14073333

What am I supposed to do now to build with extra/llvm?

Grimish commented on 2023-04-14 17:02 (UTC)

Trying to build and getting a dependency runtime error for directx-headers. The current provided version of directx-headers looks like its a little behind. Guessing that will be resolved soon enough though.

Lone_Wolf commented on 2023-04-13 08:26 (UTC) (edited on 2023-04-13 08:28 (UTC) by Lone_Wolf)

In order to build spirv-llvm-translator against any llvm version you need the source code of that exact llvm version. Since the source used in a VCS package changes with every new commit this requires special treatment.

Ubuntu / debian development packages (like oibaf ppa) are not VCS pacakges but take a snapshot of the sourcecode. Once in a while (every few eeeks) they switch to a newer snapshot and make a new release..

This method works well for binary packages in an unofficial repo but very porrly in AUR. Also AUR rules forbid uploading / distributing binaries.

There are possible workarounds for the issues, so an AUR llvm development package using snapshots could be created. Maintaining it is more work then a vcs package and would be a nightmare in my opinion .

The llvm in-tree build method for spirv llvm translator does work with VCS packages, it just requires changes to the llvm vcs package similar to those I made in llvm-minimal-git.