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.37
First Submitted: 2014-06-19 21:33 (UTC)
Last Updated: 2024-09-15 20:40 (UTC)

Required by (1302)

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 .. 40 41 42 43 44 45 46 47 48 49 50 .. 131 Next › Last »

tb0n3 commented on 2020-04-28 23:28 (UTC) (edited on 2020-04-28 23:29 (UTC) by tb0n3)

I've never been able to use the opencl that builds with mesa-git in the applications I have. I've tried running GPU calculations with Folding@Home, and benchmarking hashcat and they both fail unless I use the amdgpu driver version in the opencl-amd package. The failure message I get is in the code block below. Have you seen similar results? clinfo reports the mesa version is OpenCL 1.1.


clBuildProgram(): CL_BUILD_PROGRAM_FAILURE

fatal error: cannot open file '/usr/lib/clc/gfx1010-amdgcn-mesa-mesa3d.bc': No such file or directory

* Device #1: Kernel /usr/share/hashcat/OpenCL/shared.cl build failed.

clinfo results in a very similar error.


=== CL_PROGRAM_BUILD_LOG ===
fatal error: cannot open file '/usr/lib/clc/gfx1010-amdgcn-mesa-mesa3d.bc': No such file or directory
  Preferred work group size multiple              <getWGsizes:1200: create kernel : error -46>

Lone_Wolf commented on 2020-04-27 23:57 (UTC)

Build failure solved, see https://gitlab.freedesktop.org/mesa/mesa/-/commit/42b1696ef627a5bfee29911a780fa0a4dbf04610

Lone_Wolf commented on 2020-04-26 15:26 (UTC)

mesa master fails to build against lastest llvm trunk

https://gitlab.freedesktop.org/mesa/mesa/-/issues/2826

Lone_Wolf commented on 2020-04-26 13:22 (UTC)

tb0n3, the --nocheck is not the cause of that error.

I see the same errors you get. I have just checked and latest mesa-git does build against older llvm-minimal-git (11.0.0_r352002.cd8e9e8fcd3-1 from apr 21) .

It does look like recently something changed in llvm that requires adjustments in mesa .

tb0n3 commented on 2020-04-26 02:09 (UTC) (edited on 2020-04-26 02:52 (UTC) by tb0n3)

Since the big LLVM update that broke a few things I've been unable to build mesa-git. It fails due to LLVMVectorTypeKind being undefined. As the llvm checks always fail I was running --nocheck. Is it possible there's something in there that I'm missing because of this? This occurs with both llvm-git and llvm-minimal-git.

Having tried with the regular llvm packages from the regular repositories it built fine.


FAILED: src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_nir_to_llvm.c.o 
cc -Isrc/amd/llvm/ce8261c@@amd_common_llvm@sta -Isrc/amd/llvm -I../mesa/src/amd/llvm -Iinclude -I../mesa/include -Isrc -I../mesa/src -Isrc/mapi -I../mesa/src/mapi -Isrc/mesa -I../mesa/src/mesa -I../mesa/src/gallium/include -Isrc/gallium/auxiliary -I../mesa/src/gallium/auxiliary -Isrc/compiler -I../mesa/src/compiler -Isrc/amd -I../mesa/src/amd -Isrc/amd/common -I../mesa/src/amd/common -Isrc/compiler/nir -I../mesa/src/compiler/nir -I/usr/include -I/usr/include/libdrm -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -std=c99 '-DPACKAGE_VERSION="20.1.0-devel"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/issues"' -DUSE_ELF_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=1 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_UINT128 -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAVE_SYS_SYSCTL_H -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="11.0.0"' -DUSE_LIBGLVND=1 -DHAVE_LIBUNWIND -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_GALLIUM_EXTRA_HUD=1 -DHAVE_LIBSENSORS=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -march=native -O2 -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -pthread -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -fvisibility=hidden -MD -MQ 'src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_nir_to_llvm.c.o' -MF 'src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_nir_to_llvm.c.o.d' -o 'src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_nir_to_llvm.c.o' -c ../mesa/src/amd/llvm/ac_nir_to_llvm.c
../mesa/src/amd/llvm/ac_nir_to_llvm.c: In function ‘load_tess_varyings’:
../mesa/src/amd/llvm/ac_nir_to_llvm.c:2189:36: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
 2189 |  if (LLVMGetTypeKind(dest_type) == LLVMVectorTypeKind)
      |                                    ^~~~~~~~~~~~~~~~~~
      |                                    LLVMVectorType
../mesa/src/amd/llvm/ac_nir_to_llvm.c:2189:36: note: each undeclared identifier is reported only once for each function it appears in
../mesa/src/amd/llvm/ac_nir_to_llvm.c: In function ‘visit_load_var’:
../mesa/src/amd/llvm/ac_nir_to_llvm.c:2349:40: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
 2349 |    if (LLVMGetTypeKind(result_type) == LLVMVectorTypeKind)
      |                                        ^~~~~~~~~~~~~~~~~~
      |                                        LLVMVectorType
../mesa/src/amd/llvm/ac_nir_to_llvm.c: In function ‘visit_store_var’:
../mesa/src/amd/llvm/ac_nir_to_llvm.c:2525:44: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
 2525 |    if (LLVMGetTypeKind(LLVMTypeOf(val)) == LLVMVectorTypeKind)
      |                                            ^~~~~~~~~~~~~~~~~~
      |                                            LLVMVectorType
../mesa/src/amd/llvm/ac_nir_to_llvm.c: In function ‘visit_deref’:
../mesa/src/amd/llvm/ac_nir_to_llvm.c:4953:47: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
 4953 |    if (LLVMGetTypeKind(LLVMTypeOf(result)) == LLVMVectorTypeKind) {
      |                                               ^~~~~~~~~~~~~~~~~~
      |                                               LLVMVectorType
[1421/2408] Compiling C object 'src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_llvm_build.c.o'
FAILED: src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_llvm_build.c.o 
cc -Isrc/amd/llvm/ce8261c@@amd_common_llvm@sta -Isrc/amd/llvm -I../mesa/src/amd/llvm -Iinclude -I../mesa/include -Isrc -I../mesa/src -Isrc/mapi -I../mesa/src/mapi -Isrc/mesa -I../mesa/src/mesa -I../mesa/src/gallium/include -Isrc/gallium/auxiliary -I../mesa/src/gallium/auxiliary -Isrc/compiler -I../mesa/src/compiler -Isrc/amd -I../mesa/src/amd -Isrc/amd/common -I../mesa/src/amd/common -Isrc/compiler/nir -I../mesa/src/compiler/nir -I/usr/include -I/usr/include/libdrm -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -std=c99 '-DPACKAGE_VERSION="20.1.0-devel"' '-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/issues"' -DUSE_ELF_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=1 -DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_UINT128 -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAVE_SYS_SYSCTL_H -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING="11.0.0"' -DUSE_LIBGLVND=1 -DHAVE_LIBUNWIND -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_GALLIUM_EXTRA_HUD=1 -DHAVE_LIBSENSORS=1 -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=empty-body -Werror=incompatible-pointer-types -Werror=int-conversion -Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno -fno-trapping-math -fno-common -Werror=format -Wformat-security -march=native -O2 -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -pthread -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -fvisibility=hidden -MD -MQ 'src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_llvm_build.c.o' -MF 'src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_llvm_build.c.o.d' -o 'src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_llvm_build.c.o' -c ../mesa/src/amd/llvm/ac_llvm_build.c
../mesa/src/amd/llvm/ac_llvm_build.c: In function ‘ac_get_llvm_num_components’:
../mesa/src/amd/llvm/ac_llvm_build.c:147:53: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
  147 |  unsigned num_components = LLVMGetTypeKind(type) == LLVMVectorTypeKind
      |                                                     ^~~~~~~~~~~~~~~~~~
      |                                                     LLVMVectorType
../mesa/src/amd/llvm/ac_llvm_build.c:147:53: note: each undeclared identifier is reported only once for each function it appears in
../mesa/src/amd/llvm/ac_llvm_build.c: In function ‘ac_llvm_extract_elem’:
../mesa/src/amd/llvm/ac_llvm_build.c:158:44: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
  158 |  if (LLVMGetTypeKind(LLVMTypeOf(value)) != LLVMVectorTypeKind) {
      |                                            ^~~~~~~~~~~~~~~~~~
      |                                            LLVMVectorType
../mesa/src/amd/llvm/ac_llvm_build.c: In function ‘ac_get_elem_bits’:
../mesa/src/amd/llvm/ac_llvm_build.c:170:31: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
  170 |  if (LLVMGetTypeKind(type) == LLVMVectorTypeKind)
      |                               ^~~~~~~~~~~~~~~~~~
      |                               LLVMVectorType
../mesa/src/amd/llvm/ac_llvm_build.c: In function ‘ac_get_type_size’:
../mesa/src/amd/llvm/ac_llvm_build.c:209:7: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
  209 |  case LLVMVectorTypeKind:
      |       ^~~~~~~~~~~~~~~~~~
      |       LLVMVectorType
../mesa/src/amd/llvm/ac_llvm_build.c: In function ‘ac_to_integer_type’:
../mesa/src/amd/llvm/ac_llvm_build.c:238:28: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
  238 |  if (LLVMGetTypeKind(t) == LLVMVectorTypeKind) {
      |                            ^~~~~~~~~~~~~~~~~~
      |                            LLVMVectorType
../mesa/src/amd/llvm/ac_llvm_build.c: In function ‘ac_to_float_type’:
../mesa/src/amd/llvm/ac_llvm_build.c:293:28: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
  293 |  if (LLVMGetTypeKind(t) == LLVMVectorTypeKind) {
      |                            ^~~~~~~~~~~~~~~~~~
      |                            LLVMVectorType
../mesa/src/amd/llvm/ac_llvm_build.c: In function ‘ac_build_type_name_for_intr’:
../mesa/src/amd/llvm/ac_llvm_build.c:355:31: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
  355 |  if (LLVMGetTypeKind(type) == LLVMVectorTypeKind) {
      |                               ^~~~~~~~~~~~~~~~~~
      |                               LLVMVectorType
../mesa/src/amd/llvm/ac_llvm_build.c: In function ‘ac_build_expand’:
../mesa/src/amd/llvm/ac_llvm_build.c:630:44: error: ‘LLVMVectorTypeKind’ undeclared (first use in this function); did you mean ‘LLVMVectorType’?
  630 |  if (LLVMGetTypeKind(LLVMTypeOf(value)) == LLVMVectorTypeKind) {
      |                                            ^~~~~~~~~~~~~~~~~~
      |                                            LLVMVectorType
[1441/2408] Compiling C object 'src/intel/perf/e2ff93e@@intel_perf@sta/meson-generated_.._gen_perf_metrics.c.o'
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

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

aigen31 commented on 2020-04-23 07:42 (UTC)

I have a problem with package update. I get this command output:

error: failed to prepare transaction (could not satisfy dependencies) :: installing lib32-llvm-libs (10.0.0-1) breaks dependency 'lib32-llvm-libs=9.0.1' required by lib32-mesa-git :: installing llvm-libs (10.0.0-1) breaks dependency 'llvm-libs=9.0.1' required by mesa-git

Lone_Wolf commented on 2020-04-22 18:12 (UTC)

mesa-git and llvm-git again build fine with opencl.

This package is not out of date. broken repository deps is incorrect as the PKGBUILD has uptodate dependency requirements.

As an error report it's vague and lacks information .

Mesa-git is tied closely to the llvm variant it is built against. Whenever that llvm variant is updated, mesa-git needs to be rebuild.

The comment I made wrt mesa-aco-git at https://bbs.archlinux.org/viewtopic.php?pid=1900009#p1900009 is also valid for mesa-git.

krompus commented on 2020-04-19 21:30 (UTC) (edited on 2020-04-19 21:31 (UTC) by krompus)

For anyone still stuck with the llvm dependency issue, I fixed it by downgrading to standard mesa and lib32-mesa, updating everything with sudo pacman -Syu, and then installing mesa-git and lib32-mesa-git again.

Lone_Wolf commented on 2020-04-19 14:40 (UTC)

Thank you, updated .