I guess that should be possible, though i'm not sure of the benefits.
Maybe glamor / modesetting improvements ?
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: | rjahanbakhshi |
Votes: | 188 |
Popularity: | 2.00 |
First Submitted: | 2014-06-19 21:33 (UTC) |
Last Updated: | 2025-04-16 20:46 (UTC) |
« First ‹ Previous 1 .. 43 44 45 46 47 48 49 50 51 52 53 .. 134 Next › Last »
I guess that should be possible, though i'm not sure of the benefits.
Maybe glamor / modesetting improvements ?
adding 'mesa-libgl' to 'provides' allows me to compile and install package 'xorg-server' without having to install official packages 'mesa' and 'lib32-mesa'
libclc requires hardware specific files in /usr/lib/clc .
My card is a RX 580 of polaris 10 family.
The gfx1010 suggest you have an RX 5xxx / Navi videocard ? libclc doesn't support those and may never do that.
Unfortunately rocm also doesn't seem to support them, so amd proprietary driver from opencl-amd is your only choice for opencl.
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>
Build failure solved, see https://gitlab.freedesktop.org/mesa/mesa/-/commit/42b1696ef627a5bfee29911a780fa0a4dbf04610
mesa master fails to build against lastest llvm trunk
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 .
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...
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
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
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