Package Details: mesa-kraid-git 26.3.0_devel.r230526.gd16ba52c381-1

Git Clone URL: https://aur.archlinux.org/mesa-kraid-git.git (read-only, click to copy)
Package Base: mesa-kraid-git
Description: Mesa (git main): Panfrost OpenGL + PanVK Vulkan with the KRAID shader compiler, for Arm Mali Valhall (RK3588 / Mali-G610)
Upstream URL: https://gitlab.freedesktop.org/mesa/mesa
Licenses: MIT AND BSD-3-Clause AND SGI-B-2.0
Conflicts: mesa, mesa-git, vulkan-mesa-implicit-layers, vulkan-mesa-layers, vulkan-panfrost
Provides: mesa, mesa-libgl, opengl-driver, vulkan-driver, vulkan-mesa-implicit-layers, vulkan-mesa-layers, vulkan-panfrost
Submitter: Grimish
Maintainer: Grimish
Last Packager: Grimish
Votes: 0
Popularity: 0.000000
First Submitted: 2026-09-27 02:20 (UTC)
Last Updated: 2026-10-07 03:01 (UTC)

Required by (2398)

Sources (4)

Pinned Comments

Grimish commented on 2026-10-07 03:02 (UTC) (edited on 2026-10-07 03:07 (UTC) by Grimish)

Build requirement on clang ≥ 23: patched rust-bindgen

With clang 23.x, stock rust-bindgen 0.73.2 turns libc size_t (e.g. strlen, memcpy) into __BindgenOpaqueArray8, which breaks the KRAID Rust bindings — rust-bindgen#3509. The fix, PR #3510, is merged upstream but not in a release yet.

prepare() checks for this and stops with an error before the build starts.

To fix it, rebuild rust-bindgen with the fix commit applied:

git clone https://gitlab.archlinux.org/archlinux/packaging/packages/rust-bindgen.git && cd rust-bindgen
curl -fsSL https://github.com/rust-lang/rust-bindgen/commit/296449e41098847039e091e304404436d9b2144a.patch -o bindgen-pr3510.patch

In the PKGBUILD: - add 'bindgen-pr3510.patch' to source=() and run updpkgsums - in prepare(), right after cd $pkgname-$pkgver, add patch -Np1 -i ../bindgen-pr3510.patch - set pkgrel=1.1

Then run makepkg -si.

Check it worked (should print 0):

printf '#include <string.h>\n' > /tmp/p.h && bindgen /tmp/p.h --allowlist-function strlen | grep -c __BindgenOpaque

This comment will be removed once a rust-bindgen release containing #3510 reaches the repos.

Latest Comments

Grimish commented on 2026-10-07 03:02 (UTC) (edited on 2026-10-07 03:07 (UTC) by Grimish)

Build requirement on clang ≥ 23: patched rust-bindgen

With clang 23.x, stock rust-bindgen 0.73.2 turns libc size_t (e.g. strlen, memcpy) into __BindgenOpaqueArray8, which breaks the KRAID Rust bindings — rust-bindgen#3509. The fix, PR #3510, is merged upstream but not in a release yet.

prepare() checks for this and stops with an error before the build starts.

To fix it, rebuild rust-bindgen with the fix commit applied:

git clone https://gitlab.archlinux.org/archlinux/packaging/packages/rust-bindgen.git && cd rust-bindgen
curl -fsSL https://github.com/rust-lang/rust-bindgen/commit/296449e41098847039e091e304404436d9b2144a.patch -o bindgen-pr3510.patch

In the PKGBUILD: - add 'bindgen-pr3510.patch' to source=() and run updpkgsums - in prepare(), right after cd $pkgname-$pkgver, add patch -Np1 -i ../bindgen-pr3510.patch - set pkgrel=1.1

Then run makepkg -si.

Check it worked (should print 0):

printf '#include <string.h>\n' > /tmp/p.h && bindgen /tmp/p.h --allowlist-function strlen | grep -c __BindgenOpaque

This comment will be removed once a rust-bindgen release containing #3510 reaches the repos.