After adding the 3 virtual packages opengl-driver vulkan-driver opencl-driver, build was running fine until I get this error:
FAILED: src/gallium/targets/dri/libgallium_dri.so
Any tips guys? thanks!
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) |
« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 12 13 14 .. 131 Next › Last »
After adding the 3 virtual packages opengl-driver vulkan-driver opencl-driver, build was running fine until I get this error:
FAILED: src/gallium/targets/dri/libgallium_dri.so
Any tips guys? thanks!
@ArchUsr1 : don't force, the PKGBUILD is missing some provides .
@reza: you need to add these 3 virtual packages opengl-driver vulkan-driver opencl-driver
(no particular order) to provides.
Looking into llvm-minimal-git building.
Getting this error. Is this expected? Should it be force installed?
error: failed to prepare transaction (could not satisfy dependencies)
:: installing mesa-git (24.1.0_devel.188025.4f5e9a21c5d.d41d8cd-1) breaks dependency 'opengl-driver' required by libglvnd
:: installing mesa-git (24.1.0_devel.188025.4f5e9a21c5d.d41d8cd-1) breaks dependency 'vulkan-driver' required by steam
:: installing mesa-git (24.1.0_devel.188025.4f5e9a21c5d.d41d8cd-1) breaks dependency 'opengl-driver' required by wlroots
PKGBUILD is pushed with nouveau and rusticl enabled. So far, I only built it with the default llvm option(4). Can someone review, build, and test it?
Edit:
llvm-minimal-git: Couldn't build llvm-minimal-git due to an outdated patch.
aur-llvm-git: mesa-git fails because it can't find libclc.
llvm-git (loadheavy): Haven't tried yet.
Thanks for confirming it works that way.
An issue with using --force-fallback-for is that the PKGBUILD no longer controls what is downloaded and from where.
In repo mesa 'meson subprojects' are used, like
# Rust crates for NVK, used as Meson subprojects
declare -A _crates=(
proc-macro2 1.0.70
quote 1.0.33
syn 2.0.39
unicode-ident 1.0.12
)
for _crate in "${!_crates[@]}"; do
source+=($_crate-${_crates[$_crate]}.tar.gz::https://crates.io/api/v1/crates/$_crate/${_crates[$_crate]}/download)
done
# Inject subproject packages
export MESON_PACKAGE_CACHE_DIR="$srcdir"
I was able to get it working completely by just adding a couple of stuff to the PKGBUILD: --force-fallback-for=syn,paste in the meson setup; adding nouveau to vulkan drivers to build; adding vulkan-nouveau to provides and conflicts fields;
For who is getting linker error building against the directx-headers-git. Try rebuild directx-headers-git with lto off. Worked for me at least.
i am still getting this error and am unable to build FAILED: src/gallium/targets/va/libgallium_drv_video.so
Will nvk ever be enabled for this and lib32-mesa-git?
directx-headers-git
produces the same error. Removing d3d12
from gallium-drivers
in PKGBUILD fixes build.
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.
Option A - best one
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.
Option B - 2nd best
Lone_Wolf commented on 2019-07-09 13:43 (UTC) (edited on 2023-04-18 10:41 (UTC) by Lone_Wolf)
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 ?
Lone_Wolf commented on 2018-01-30 14:06 (UTC) (edited on 2023-02-12 11:56 (UTC) by Lone_Wolf)
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 functionalitybuild lib32-mesa-git
run
glxinfo32 -B
to verify basic OpenGL functionality for multilib programs