Package Details: mesa-git 24.1.0_devel.184903.c6635c09d0d.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-radeon, vulkan-swrast
Provides: libva-mesa-driver, mesa, mesa-libgl, mesa-vdpau, opengl-driver, vulkan-driver, vulkan-intel, vulkan-mesa-layers, vulkan-radeon, vulkan-swrast
Submitter: Krejzi
Maintainer: rjahanbakhshi (Lone_Wolf)
Last Packager: rjahanbakhshi
Votes: 176
Popularity: 1.68
First Submitted: 2014-06-19 21:33 (UTC)
Last Updated: 2024-03-07 21:15 (UTC)

Required by (1187)

Sources (2)

Pinned Comments

Lone_Wolf commented on 2024-02-20 00:09 (UTC) (edited on 2024-02-20 00:11 (UTC) by Lone_Wolf)

@Beiruty, those have the same cause as the other recent build failures : changes in intel drivers.

The build issues caused by changes in intel drivers are now solved for MESA_WHICH_LLVM 1, 3 and 4 (llvm-minimal-git , llvm from lordheavy unofficial repo and offical repo llvm )

MESA_WHICH_LLVM 2 (aur llvm-git) build is still broken, but I MAY have a solution for that without having to create new packages.

The good news is that once all 4 variants built again, only minor changes should be needed to add opencl clover & opencl rusticl support.

(A lot of the work required to built the intel drivers is also useful for clover & rusticl)

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

1 2 3 4 5 6 .. 122 Next › Last »

Beiruty commented on 2024-03-16 19:25 (UTC) (edited on 2024-03-16 19:26 (UTC) by Beiruty)

@dcommpoze disable gallium-xa in line 136 of the PKGBLUID

   -D gallium-xa=disabled \

dcompoze commented on 2024-03-16 18:24 (UTC)

Also got a similar build error:

[3005/3024] Linking target src/gallium/targets/xa/libxatracker.so.2.5.0
FAILED: src/gallium/targets/xa/libxatracker.so.2.5.0
...

Beiruty commented on 2024-03-15 22:44 (UTC)

Building today, I got a failed build.

[2889/3024] Linking target src/gallium/targets/xa/libxatracker.so.2.5.0 FAILED: src/gallium/targets/xa/libxatracker.so.2.5.0 c++ -o src/gallium/targets/xa/libxatracker.so.2.5.0 src/gallium/targets/xa/libxatracker.so.2.5.0.p/target.c.o -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,-soname,libxatracker.so.2 -Wl,--whole-archive -Wl,--start-group src/gallium/frontends/xa/libxa_st.a -Wl,--no-whole-archive -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 src/gallium/auxiliary/libgalliumvl_stub.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/libgallium.a src/compiler/nir/libnir.a src/compiler/libcompiler.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/nouveau/codegen/libnouveau_codegen.a src/gallium/drivers/nouveau/libnouveau.a src/gallium/winsys/nouveau/drm/libnouveauwinsys.a src/gallium/auxiliary/libgalliumvl.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_per_hw_ver200.a src/intel/isl/libisl_tiled_memcpy.a src/intel/isl/libisl_tiled_memcpy_sse41.a src/intel/common/libintel_clflushopt.a src/gallium/drivers/svga/libsvga.a src/compiler/glsl/libglsl.a src/compiler/glsl/glcpp/libglcpp.a src/gallium/winsys/svga/drm/libsvgadrm.a -Wl,--version-script /mnt/eos_more/.cache/yay/mesa-git/src/mesa/src/gallium/targets/xa/xa.sym -Wl,--gc-sections /usr/lib/libz.so -pthread -lm /usr/lib/libzstd.so /usr/lib/libunwind.so /usr/lib/libdrm.so -lLLVM-17 -lsensors /usr/lib/libexpat.so /usr/lib/libxcb.so /usr/lib/libxcb-randr.so /usr/lib/libdrm_intel.so -Wl,--end-group /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_profile_supported': vl_stubs.c:(.text.vl_profile_supported+0x0): multiple definition ofvl_profile_supported'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_decoder.c.o:vl_decoder.c:(.text.vl_profile_supported+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_level_supported': vl_stubs.c:(.text.vl_level_supported+0x0): multiple definition ofvl_level_supported'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_decoder.c.o:vl_decoder.c:(.text.vl_level_supported+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_create_decoder': vl_stubs.c:(.text.vl_create_decoder+0x0): multiple definition ofvl_create_decoder'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_decoder.c.o:vl_decoder.c:(.text.vl_create_decoder+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_get_video_buffer_formats': vl_stubs.c:(.text.vl_get_video_buffer_formats+0x0): multiple definition ofvl_get_video_buffer_formats'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_video_buffer.c.o:vl_video_buffer.c:(.text.vl_get_video_buffer_formats+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_video_buffer_is_format_supported': vl_stubs.c:(.text.vl_video_buffer_is_format_supported+0x0): multiple definition ofvl_video_buffer_is_format_supported'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_video_buffer.c.o:vl_video_buffer.c:(.text.vl_video_buffer_is_format_supported+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_video_buffer_max_size': vl_stubs.c:(.text.vl_video_buffer_max_size+0x0): multiple definition ofvl_video_buffer_max_size'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_video_buffer.c.o:vl_video_buffer.c:(.text.vl_video_buffer_max_size+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_video_buffer_set_associated_data': vl_stubs.c:(.text.vl_video_buffer_set_associated_data+0x0): multiple definition ofvl_video_buffer_set_associated_data'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_video_buffer.c.o:vl_video_buffer.c:(.text.vl_video_buffer_set_associated_data+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_video_buffer_get_associated_data': vl_stubs.c:(.text.vl_video_buffer_get_associated_data+0x0): multiple definition ofvl_video_buffer_get_associated_data'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_video_buffer.c.o:vl_video_buffer.c:(.text.vl_video_buffer_get_associated_data+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_video_buffer_template': vl_stubs.c:(.text.vl_video_buffer_template+0x0): multiple definition ofvl_video_buffer_template'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_video_buffer.c.o:vl_video_buffer.c:(.text.vl_video_buffer_template+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_video_buffer_create': vl_stubs.c:(.text.vl_video_buffer_create+0x0): multiple definition ofvl_video_buffer_create'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_video_buffer.c.o:vl_video_buffer.c:(.text.vl_video_buffer_create+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_video_buffer_create_ex2': vl_stubs.c:(.text.vl_video_buffer_create_ex2+0x0): multiple definition ofvl_video_buffer_create_ex2'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_video_buffer.c.o:vl_video_buffer.c:(.text.vl_video_buffer_create_ex2+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_video_buffer_destroy': vl_stubs.c:(.text.vl_video_buffer_destroy+0x0): multiple definition ofvl_video_buffer_destroy'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_video_buffer.c.o:vl_video_buffer.c:(.text.vl_video_buffer_destroy+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_mpg12_bs_init': vl_stubs.c:(.text.vl_mpg12_bs_init+0x0): multiple definition ofvl_mpg12_bs_init'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_mpeg12_bitstream.c.o:vl_mpeg12_bitstream.c:(.text.vl_mpg12_bs_init+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_mpg12_bs_decode': vl_stubs.c:(.text.vl_mpg12_bs_decode+0x0): multiple definition ofvl_mpg12_bs_decode'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_mpeg12_bitstream.c.o:vl_mpeg12_bitstream.c:(.text.vl_mpg12_bs_decode+0x0): first defined here /usr/bin/ld: src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o: in function vl_create_mpeg12_decoder': vl_stubs.c:(.text.vl_create_mpeg12_decoder+0x0): multiple definition ofvl_create_mpeg12_decoder'; src/gallium/auxiliary/libgalliumvl.a.p/vl_vl_mpeg12_decoder.c.o:vl_mpeg12_decoder.c:(.text.vl_create_mpeg12_decoder+0x0): first defined here /usr/bin/ld: src/util/libmesa_util.a.p/vl_zscan_data.c.o:(.rodata.vl_zscan_alternate+0x0): multiple definition of vl_zscan_alternate'; src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o:(.rodata.vl_zscan_alternate+0x0): first defined here /usr/bin/ld: src/util/libmesa_util.a.p/vl_zscan_data.c.o:(.rodata.vl_zscan_normal+0x0): multiple definition ofvl_zscan_normal'; src/gallium/auxiliary/libgalliumvl_stub.a.p/vl_vl_stubs.c.o:(.rodata.vl_zscan_normal+0x0): first defined here collect2: error: ld returned 1 exit status [2898/3024] Compiling C++ object src/gallium/drivers/zink/libzink.a.p/zink_draw.cpp.o ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build(). Aborting...

nyae commented on 2024-03-12 14:47 (UTC)

Could you please add Nouveau NVK to the PKGBUILD?

ZephyrCheez commented on 2024-03-08 22:53 (UTC)

Since NVK has been declared no longer experimental, it should be added to the PKGBUILD

yurikoles commented on 2024-03-08 09:07 (UTC)

Why don't you set gallium-drivers, vulkan-drivers, tools and video-codecs to all?

Beiruty commented on 2024-03-06 19:01 (UTC) (edited on 2024-03-06 19:02 (UTC) by Beiruty)

The latest llvm update breaks mesa-git.

warning: downgrading package llvm-libs (17.0.6-2 => 16.0.6-1)
warning: downgrading package clang (17.0.6-1 => 16.0.6-2)
warning: downgrading package llvm (17.0.6-2 => 16.0.6-1)
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing clang (16.0.6-2) breaks dependency 'clang=17.0.6' required by kdevelop
:: installing clang (16.0.6-2) breaks dependency 'clang=17.0.6' required by shiboken6
 -> Failed to install layer, rolling up to next layer.error:error installing repo packages
warning: downgrading package clang (17.0.6-1 => 16.0.6-2)
warning: downgrading package llvm (17.0.6-2 => 16.0.6-1)
warning: downgrading package llvm-libs (17.0.6-2 => 16.0.6-1)
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing clang (16.0.6-2) breaks dependency 'clang=17.0.6' required by kdevelop
:: installing clang (16.0.6-2) breaks dependency 'clang=17.0.6' required by shiboken6
 -> error installing repo packages
error installing repo packages