Mesa-git dependency error

Hello,

i tried to install mesa-git from offical repo, but i got a dependencies error:

pamac install mesa-git lib32-mesa-git

Preparing...

Choose optional dependencies for mesa-git:
1:  opengl-man-pages: for the OpenGL API man pages
2:  clang: opencl
3:  compiler-rt: opencl

Enter a selection (default=none): 


Choose optional dependencies for lib32-mesa-git:
1:  opengl-man-pages: for the OpenGL API man pages

Enter a selection (default=none): 

Synchronizing package databases...
Error: Failed to prepare transaction:
could not satisfy dependencies:
- unable to satisfy dependency 'llvm-libs=11.0.1' required by mesa-git
- unable to satisfy dependency 'llvm-libs=11.0.1' required by mesa-git
- unable to satisfy dependency 'mesa-git' required by lib32-mesa-git
- unable to satisfy dependency 'lib32-elfutils' required by lib32-mesa-git
- unable to satisfy dependency 'lib32-llvm-libs=11.0.1' required by lib32-mesa-git
Resolving dependencies...
Warning: cannot resolve "llvm-libs=11.0.1", a dependency of "mesa-git"
Warning: cannot resolve "llvm-libs=11.0.1", a dependency of "mesa-git"
Warning: cannot resolve "mesa-git", a dependency of "lib32-mesa-git"
Warning: cannot resolve "lib32-elfutils", a dependency of "lib32-mesa-git"
Warning: cannot resolve "lib32-llvm-libs=11.0.1", a dependency of "lib32-mesa-git"
Error: Failed to prepare transaction:
could not satisfy dependencies:
- unable to satisfy dependency 'llvm-libs=11.0.1' required by mesa-git
- unable to satisfy dependency 'llvm-libs=11.0.1' required by mesa-git
- unable to satisfy dependency 'mesa-git' required by lib32-mesa-git
- unable to satisfy dependency 'lib32-elfutils' required by lib32-mesa-git
- unable to satisfy dependency 'lib32-llvm-libs=11.0.1' required by lib32-mesa-git

Try to refresh your mirrors and do it again, we definitely have lvm-libs v11.0.1 in our repo

sudo pacman-mirrors -f 5
sudo pacman -Syyu
1 Like
  1. In the future, when providing code/output, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text so that the output looks like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
    Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    

    instead of like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`

    (as that makes both our lives much easier)

  2. No need to do anything right now as I’m an editor here on this site and have fixed it for you already. However, in the future I might not see your post so review my edits by pushing the orange pencil above the post I just fixed. :wink:

  3. Follow @realmain 's excellent advice!

:+1:

1 Like

I also am not able to install mesa-git because of this dependency error.
Mesa-git requires older llvm-libs 11.0.1 but llvm-libs version in repository is 11.1.0

Oh, woops, misplaced the 1 when I checked it. Sounds like the mesa-git package is out of date then.

You can always use the aur version though

Hello,

newbie here =D

I am experiencing the same after upgrading the stable version.

Current error:

could not satisfy dependencies:
- unable to satisfy dependency 'llvm-libs=11.0.1' required by mesa-git

After some back and forth I verified the following details:

This is the current repository available llvm-libs version:

$ sudo pacman -Si llvm-libs
Repository      : extra
Name            : llvm-libs
Version         : 11.1.0-1
Description     : LLVM runtime libraries
Architecture    : x86_64
URL             : https://llvm.org/
Licenses        : custom:Apache 2.0 with LLVM Exception
Groups          : None
Provides        : None
Depends On      : gcc-libs  zlib  libffi  libedit  ncurses  libxml2
Optional Deps   : None
Conflicts With  : None
Replaces        : None
Download Size   : 22,80 MiB
Installed Size  : 90,13 MiB
Packager        : Evangelos Foutras <foutrelis@archlinux.org>
Build Date      : qua 17 fev 2021 15:28:11
Validated By    : MD5 Sum  SHA-256 Sum  Signature

I checked my cached “upgrade path” and verified the following local files:

$ ls /var/cache/pacman/pkg/llvm-libs-11.*
/var/cache/pacman/pkg/llvm-libs-11.0.0-1-x86_64.pkg.tar.zst
/var/cache/pacman/pkg/llvm-libs-11.0.0-4-x86_64.pkg.tar.zst
/var/cache/pacman/pkg/llvm-libs-11.0.1-1-x86_64.pkg.tar.zst
/var/cache/pacman/pkg/llvm-libs-11.0.1-2-x86_64.pkg.tar.zst
/var/cache/pacman/pkg/llvm-libs-11.1.0-1-x86_64.pkg.tar.zst

I performed a manual downgrade to local version 11.0.1-1

$ sudo pacman -U /var/cache/pacman/pkg/llvm-libs-11.0.1-1-x86_64.pkg.tar.zst

Current installed version

$ sudo pacman -Qi llvm-libs
Name            : llvm-libs
Version         : 11.0.1-1
Description     : LLVM runtime libraries
Architecture    : x86_64
URL             : https://llvm.org/
Licenses        : custom:Apache 2.0 with LLVM Exception
Groups          : None
Provides        : None
Depends On      : gcc-libs  zlib  libffi  libedit  ncurses  libxml2
Optional Deps   : None
Required By     : clang  llvm  mesa
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 90,13 MiB
Packager        : Evangelos Foutras <foutrelis@archlinux.org>
Build Date      : sáb 09 jan 2021 22:47:39
Install Date    : sex 05 mar 2021 20:16:10
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : None

However, if I try to install mesa-git, I am getting the same error :\

$ sudo pacman -Si mesa-git
Repository      : community
Name            : mesa-git
Version         : 21.1.0_devel.133588.766538f83cb-1
Description     : an open-source implementation of the OpenGL specification, git version
Architecture    : x86_64
URL             : https://www.mesa3d.org
Licenses        : custom
Groups          : None
Provides        : mesa  opencl-mesa  vulkan-intel  vulkan-radeon  vulkan-mesa-layer  libva-mesa-driver  mesa-vdpau
                  vulkan-driver  opengl-driver  opencl-driver
Depends On      : libdrm  libxxf86vm  libxdamage  libxshmfence  libelf  libomxil-bellagio  libunwind  libglvnd
                  wayland  lm_sensors  libclc  vulkan-icd-loader  zstd  expat  llvm-libs=11.0.1
Optional Deps   : opengl-man-pages: for the OpenGL API man pages
                  clang: opencl
                  compiler-rt: opencl
Conflicts With  : mesa  opencl-mesa  vulkan-intel  vulkan-radeon  vulkan-mesa-layer  libva-mesa-driver  mesa-vdpau
Replaces        : None
Download Size   : 27,32 MiB
Installed Size  : 149,92 MiB
Packager        : Philip Mueller <philm@manjaro.org>
Build Date      : sex 15 jan 2021 21:02:42
Validated By    : MD5 Sum  SHA-256 Sum  Signature
sudo pacman -Syu mesa-git
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
:: mesa-git and mesa are in conflict. Remove mesa? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'llvm-libs=11.0.1' required by mesa-git

Any tips?
I did check the link you provided, but the issue seems to be finding the correct llvm-libs version that is accepted by mesa-git.
Also, the link/guide, does not cover on how to build a version from AUR.

I am new but eager to learn something, so a few pointers to make the journey less frustrating are really appreciated.

Thanks and stay safe.

pamac build mesa-git

Note: Always read the comments on the AUR page before installing.

1 Like

Just an update;

before doing the build, I tried the following with success:

$ sudo pacman -Syuu mesa-git --assume-installed llvm-libs=11.0.1

Current packages:

$ sudo pacman -Qi mesa-git
Name            : mesa-git
Version         : 21.1.0_devel.133588.766538f83cb-1
Description     : an open-source implementation of the OpenGL specification, git version
Architecture    : x86_64
URL             : https://www.mesa3d.org
Licenses        : custom
Groups          : None
Provides        : mesa  opencl-mesa  vulkan-intel  vulkan-radeon  vulkan-mesa-layer  libva-mesa-driver  mesa-vdpau
                  vulkan-driver  opengl-driver  opencl-driver
Depends On      : libdrm  libxxf86vm  libxdamage  libxshmfence  libelf  libomxil-bellagio  libunwind  libglvnd
                  wayland  lm_sensors  libclc  vulkan-icd-loader  zstd  expat  llvm-libs=11.0.1
Optional Deps   : opengl-man-pages: for the OpenGL API man pages
                  clang: opencl [installed]
                  compiler-rt: opencl [installed]
Required By     : gst-plugins-base-libs  gtk3  lib32-mesa  libglvnd  qt5-base  xf86-video-amdgpu-git
                  xf86-video-ati  xf86-video-intel  xf86-video-nouveau  xorg-server-devel
Optional For    : ocl-icd  steam-manjaro  vulkan-icd-loader
Conflicts With  : mesa  opencl-mesa  vulkan-intel  vulkan-radeon  vulkan-mesa-layer  libva-mesa-driver  mesa-vdpau
Replaces        : None
Installed Size  : 149,92 MiB
Packager        : Philip Mueller <philm@manjaro.org>
Build Date      : sex 15 jan 2021 21:02:42
Install Date    : ter 09 mar 2021 02:37:32
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
$ sudo pacman -Qi llvm-libs
Name            : llvm-libs
Version         : 11.1.0-1
Description     : LLVM runtime libraries
Architecture    : x86_64
URL             : https://llvm.org/
Licenses        : custom:Apache 2.0 with LLVM Exception
Groups          : None
Provides        : None
Depends On      : gcc-libs  zlib  libffi  libedit  ncurses  libxml2
Optional Deps   : None
Required By     : clang  llvm
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 90,13 MiB
Packager        : Evangelos Foutras <foutrelis@archlinux.org>
Build Date      : qua 17 fev 2021 15:28:11
Install Date    : seg 08 mar 2021 09:32:54
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
$ vulkaninfo | grep Mesa
VK_LAYER_MESA_overlay (Mesa Overlay layer) Vulkan version 1.1.73, layer version 1:
        driverInfo         = Mesa 21.1.0-devel (git-766538f83c) (ACO)
        driverInfo                                           = Mesa 21.1.0-devel (git-766538f83c) (ACO)
$ glxinfo | grep Mesa         
client glx vendor string: Mesa Project and SGI
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.1.0-devel (git-766538f83c)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.1.0-devel (git-766538f83c)
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.1.0-devel (git-766538f83c)

As you can see, I have the latest version of llvm-libs, however with the “-assume-installed llvm-libs=11.0.1” flag, it has bypassed the installation requirement.

Note: I’ve tested a couple of games that were having issues/poor performance; they are working and I do not notice any issues.

Hope this helps

1 Like