Problem in installing zsh-theme-powerlevel10k from AUR

Hi,
i am a newbie to EndeavourOS. i want to use zsh and zsh-theme-powerlevel10k. i could install zsh-theme-powerlevel10k-git or zsh-theme-powerlevel10k-bin-git, but building zsh-theme-powerlevel10k results in error!!!

[reza@home-lin ~]$ yay zsh-theme-powerlevel10k
3 aur/zsh-theme-powerlevel10k-bin-git r3896.4bcc519-1 (+2 1.00) 
    Powerlevel10k is a theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience.
2 aur/zsh-theme-powerlevel10k-git r3918.25e5f59-1 (+71 1.93) (Installed: r4281.bde5ca4c-1)
    Powerlevel10k is a theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience.
1 aur/zsh-theme-powerlevel10k 1.20.0-2 (+10 3.71) 
    Powerlevel10k is a theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience.
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
AUR Explicit (1): zsh-theme-powerlevel10k-1.20.0-2
:: PKGBUILD up to date, skipping download: zsh-theme-powerlevel10k
  1 zsh-theme-powerlevel10k          (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 zsh-theme-powerlevel10k          (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)

and here is the final messages:

src/tag_db.cc: In member function ‘std::string gitstatus::TagDb::TagForCommit(const git_oid&)’:
src/tag_db.cc:133:43: error: ignoring return value of ‘std::unique_lock<_Mutex>::unique_lock(mutex_type&) [with _Mutex = std::mutex; mutex_type = std::mutex]’, declared with attribute ‘nodiscard’ [-Werror=unused-result]
  133 |   if ((std::unique_lock<std::mutex>(mutex_), id2name_dirty_)) {
      |                                           ^
In file included from /usr/include/c++/14.1.1/condition_variable:43,
                 from src/tag_db.h:27,
                 from src/tag_db.cc:18:
/usr/include/c++/14.1.1/bits/unique_lock.h:70:16: note: declared here
   70 |       explicit unique_lock(mutex_type& __m)
      |                ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:32: obj/tag_db.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: zsh-theme-powerlevel10k-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
zsh-theme-powerlevel10k - exit status 4

how can i fix the errors?

Hello and welcome,

It looks someone had the same error and posted a message on the package page :
https://aur.archlinux.org/packages/zsh-theme-powerlevel10k

1 Like