Can you update this so that it better matches the lib32-mesa package? For instance (note I added the new intel xe driver):
build () {
export PKG_CONFIG=/usr/bin/i686-pc-linux-gnu-pkg-config
meson setup mesa _build \
--cross-file lib32 \
-D b_lto=true \
-D b_ndebug=true \
-D buildtype=plain \
--wrap-mode=nofallback \
-D prefix=/usr \
-D sysconfdir=/etc \
--libdir=/usr/lib32 \
-D platforms=x11,wayland \
-D gallium-drivers=r300,r600,radeonsi,nouveau,virgl,svga,swrast,i915,iris,crocus,zink \
-D vulkan-drivers=amd,intel,swrast,virtio,intel_hasvk \
-D dri3=enabled \
-D egl=enabled \
-D gallium-extra-hud=true \
-D vulkan-layers=device-select,overlay,intel-nullhw \
-D gallium-nine=true \
-D gallium-omx=disabled \
-D gallium-opencl=disabled \
-D gallium-rusticl=true \
-D gallium-va=enabled \
-D gallium-vdpau=enabled \
-D gallium-xa=enabled \
-D gbm=enabled \
-D gles1=disabled \
-D gles2=enabled \
-D glvnd=true \
-D glx=dri \
-D libunwind=enabled \
-D llvm=enabled \
-D rust_std=2021 \
-D lmsensors=enabled \
-D intel-clc=enabled \
-D intel-xe-kmd=enabled \
-D osmesa=true \
-D opencl-spirv=true \
-D shared-glapi=enabled \
-D valgrind=disabled \
-D video-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc \
-D tools=[] \
-D zstd=enabled \
-D microsoft-clc=disabled
CFLAGS+=' -g1'
CXXFLAGS+=' -g1'
export BINDGEN_EXTRA_CLANG_ARGS="-m32"
meson configure --no-pager _build
# Evil: Hack build to make proc-macro crate native
sed -e '/^rule rust_COMPILER$/irule rust_HACK\n command = rustc -C linker=gcc $ARGS $in\n deps = gcc\n depfile = $targetdep\n description = Compiling native Rust source $in\n' \
-e '/^build src\/gallium\/frontends\/rusticl\/librusticl_proc_macros\.so:/s/rust_COMPILER/rust_HACK/' \
-e '/^ LINK_ARGS =/s/ src\/gallium\/frontends\/rusticl\/librusticl_proc_macros\.so//' \
-i _build/build.ninja
ninja $NINJAFLAGS -C _build
Pinned Comments
Lone_Wolf commented on 2024-02-14 11:49 (UTC)
Mesa commit b52e25d3 breaks intel iris & anv build UNLESS OpenCL support is present.
Incase you don't need those drivers, a temporary workaround is to disable them.
lib32-mesa-minimal-git is also affected.
Lone_Wolf commented on 2023-11-02 16:03 (UTC) (edited on 2023-11-02 16:05 (UTC) by Lone_Wolf)
@RPINerd in https://aur.archlinux.org/packages/lib32-mesa-git#comment-941648
Users of this package are supposed to (re)build lib32-mesa-git everytime mesa-git changes to avoid such issues.
I'm certain I have stated that in the past, but it may have been lost in the older pages of comments.
Lone_Wolf commented on 2019-05-09 13:30 (UTC)
This package now uses an environment variable to determine which llvm package it will be built against. Check PKGBUILD for details.