Failed to build pamac-all

Just installed a fresh, new endeavouros system. Went to install pamac and got this instead:

==> Making package: libpamac-full 1:11.5.0-1 (Sen 10 Apr 2023 04:23:23 )
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found libpamac-11.5.0.tar.bz2
==> Validating source files with sha256sums...
    libpamac-11.5.0.tar.bz2 ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting libpamac-11.5.0.tar.bz2 with bsdtar
==> Sources are ready.
==> Making package: libpamac-full 1:11.5.0-1 (Sen 10 Apr 2023 04:23:34 )
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true libpamac-11.5.0 build -Denable-snap=true -Denable-flatpak=true
The Meson build system
Version: 1.0.1
Source dir: /home/rev/.cache/yay/libpamac-full/src/libpamac-11.5.0
Build dir: /home/rev/.cache/yay/libpamac-full/src/build
Build type: native build
Project name: libpamac
Project version: 11.5.0
C compiler for the host machine: cc (gcc 12.2.1 "cc (GCC) 12.2.1 20230201")
C linker for the host machine: cc ld.bfd 2.40
Vala compiler for the host machine: valac (valac 0.56.6)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.1)
Run-time dependency gobject-2.0 found: YES 2.76.1
Run-time dependency gio-2.0 found: YES 2.76.1
Run-time dependency gthread-2.0 found: YES 2.76.1
Run-time dependency libalpm found: YES 13.0.2
Run-time dependency json-glib-1.0 found: YES 1.6.6
Run-time dependency libsoup-3.0 found: YES 3.4.0
Run-time dependency polkit-gobject-1 found: YES 122
Run-time dependency appstream-glib found: YES 0.8.2
Run-time dependency gmodule-2.0 found: YES 2.76.1
Library posix found: YES
Library m found: YES
Run-time dependency snapd-glib-2 found: YES 1.63
Run-time dependency flatpak found: YES 1.15.4
Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler)
Program msgfmt found: YES (/usr/bin/msgfmt)
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Configuring org.manjaro.pamac.daemon.service using configuration
Configuring pamac-daemon.service using configuration
Configuring pamac-cleancache.service using configuration
Program pacman-mirrors found: NO
Build targets in project: 108

libpamac 11.5.0

  User defined options
    auto_features : enabled
    buildtype     : plain
    libexecdir    : lib
    prefix        : /usr
    sbindir       : bin
    wrap_mode     : nodownload
    b_lto         : true
    b_pie         : true
    enable-flatpak: true
    enable-snap   : true

Found ninja-1.11.1 at /usr/bin/ninja
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/rev/.cache/yay/libpamac-full/src/build
ninja: Entering directory `/home/rev/.cache/yay/libpamac-full/src/build'
[1/150] Compiling Vala source ../libpamac-11.5.0/src/.../snap_plugin.vala ../libpamac-11.5.0/src/package.vala
FAILED: src/libpamac-snap.so.11.5.p/snap_interface.c src/libpamac-snap.so.11.5.p/snap_plugin.c src/libpamac-snap.so.11.5.p/package.c src/pamac-snap.h src/pamac-snap.vapi 
valac -C --pkg gmodule-2.0 --pkg snapd-glib-2 --pkg gio-2.0 --color=always --directory src/libpamac-snap.so.11.5.p --basedir ../libpamac-11.5.0/src --library pamac-snap --header src/pamac-snap.h --vapi ../pamac-snap.vapi --pkg=posix --target-glib=2.38 --vapidir=/home/rev/.cache/yay/libpamac-full/src/libpamac-11.5.0/vapi ../libpamac-11.5.0/src/snap_interface.vala ../libpamac-11.5.0/src/snap_plugin.vala ../libpamac-11.5.0/src/package.vala
gio-2.0.vapi:1769.96-1769.113: error: The type name `GLib.EqualFuncFull' could not be found
 1769 |                 public bool find_with_equal_func_full (GLib.Object item, [CCode (delegate_target_pos = 2.5)] GLib.EqualFuncFull equal_func, out uint position);
      |                                                                                                              ^~~~~~~~~~~~~~~~~~                                
Compilation failed: 1 error(s), 0 warning(s)
[2/150] Compiling Vala source ../libpamac-11.5.0/src/...atpak_plugin.vala ../libpamac-11.5.0/src/package.vala
FAILED: src/libpamac-flatpak.so.11.5.p/flatpak_interface.c src/libpamac-flatpak.so.11.5.p/flatpak_plugin.c src/libpamac-flatpak.so.11.5.p/package.c src/pamac-flatpak.h src/pamac-flatpak.vapi 
valac -C --pkg gmodule-2.0 --pkg appstream-glib --pkg flatpak --pkg gio-2.0 --color=always --directory src/libpamac-flatpak.so.11.5.p --basedir ../libpamac-11.5.0/src --library pamac-flatpak --header src/pamac-flatpak.h --vapi ../pamac-flatpak.vapi --pkg=posix --target-glib=2.38 --vapidir=/home/rev/.cache/yay/libpamac-full/src/libpamac-11.5.0/vapi --define=ENABLE_SNAP ../libpamac-11.5.0/src/flatpak_interface.vala ../libpamac-11.5.0/src/flatpak_plugin.vala ../libpamac-11.5.0/src/package.vala
gio-2.0.vapi:1769.96-1769.113: error: The type name `GLib.EqualFuncFull' could not be found
 1769 |                 public bool find_with_equal_func_full (GLib.Object item, [CCode (delegate_target_pos = 2.5)] GLib.EqualFuncFull equal_func, out uint position);
      |                                                                                                              ^~~~~~~~~~~~~~~~~~                                
Compilation failed: 1 error(s), 0 warning(s)
[3/150] Compiling Vala source ../libpamac-11.5.0/src/...face.vala ../libpamac-11.5.0/src/updates_checker.vala
FAILED: src/libpamac.so.11.5.p/package.c src/libpamac.so.11.5.p/alpm_package.c src/libpamac.so.11.5.p/plugin_loader.c src/libpamac.so.11.5.p/alpm_config.c src/libpamac.so.11.5.p/pamac_config.c src/libpamac.so.11.5.p/version.c src/libpamac.so.11.5.p/aur.c src/libpamac.so.11.5.p/database.c src/libpamac.so.11.5.p/transaction.c src/libpamac.so.11.5.p/transaction_interface.c src/libpamac.so.11.5.p/alpm_utils.c src/libpamac.so.11.5.p/transaction_interface_root.c src/libpamac.so.11.5.p/daemon_interface.c src/libpamac.so.11.5.p/transaction_interface_daemon.c src/libpamac.so.11.5.p/snap_interface.c src/libpamac.so.11.5.p/flatpak_interface.c src/libpamac.so.11.5.p/updates_checker.c src/pamac.h src/pamac.vapi src/Pamac-11.gir 
valac -C --pkg gmodule-2.0 --pkg libsoup-3.0 --pkg appstream-glib --pkg json-glib-1.0 --pkg posix --pkg gio-2.0 --pkg libalpm --color=always --directory src/libpamac.so.11.5.p --basedir ../libpamac-11.5.0/src --library pamac --header src/pamac.h --vapi ../pamac.vapi --gir ../Pamac-11.gir --pkg=posix --target-glib=2.38 --vapidir=/home/rev/.cache/yay/libpamac-full/src/libpamac-11.5.0/vapi --define=ENABLE_SNAP --define=ENABLE_FLATPAK ../libpamac-11.5.0/src/package.vala ../libpamac-11.5.0/src/alpm_package.vala ../libpamac-11.5.0/src/plugin_loader.vala ../libpamac-11.5.0/src/alpm_config.vala ../libpamac-11.5.0/src/pamac_config.vala ../libpamac-11.5.0/src/version.vala ../libpamac-11.5.0/src/aur.vala ../libpamac-11.5.0/src/database.vala ../libpamac-11.5.0/src/transaction.vala ../libpamac-11.5.0/src/transaction_interface.vala ../libpamac-11.5.0/src/alpm_utils.vala ../libpamac-11.5.0/src/transaction_interface_root.vala ../libpamac-11.5.0/src/daemon_interface.vala ../libpamac-11.5.0/src/transaction_interface_daemon.vala ../libpamac-11.5.0/src/snap_interface.vala ../libpamac-11.5.0/src/flatpak_interface.vala ../libpamac-11.5.0/src/updates_checker.vala
gio-2.0.vapi:1769.96-1769.113: error: The type name `GLib.EqualFuncFull' could not be found
 1769 |                 public bool find_with_equal_func_full (GLib.Object item, [CCode (delegate_target_pos = 2.5)] GLib.EqualFuncFull equal_func, out uint position);
      |                                                                                                              ^~~~~~~~~~~~~~~~~~                                
Compilation failed: 1 error(s), 0 warning(s)
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: libpamac-full-exit status 4
==> Making package: pamac-all 10.5.0-1 (Sen 10 Apr 2023 04:23:42 )
==> Checking runtime dependencies...
==> Missing dependencies:
  -> libpamac-full
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
 -> error making: pamac-all-exit status 8
 -> Failed to install the following packages. Manual intervention is required:
libpamac-full - exit status 4
pamac-all - exit status 8
[rev@archlinux ~]$ yay -R flatpak snapd snapd-lib
error: target not found: snapd-lib
 -> exit status 1

(theres a lot more but konsole can’t handle the upper page) What cause the problem?

don’t use graphical package managers myself as I believe they are bloat and garbage however from what I can see you have some parts of the package that are missing

could be a bad download and may just need to re run the command to get it to install

might be glib, but i had tried it and it still didnt work

i tried it multiple times, didn’t work either

This is pretty normal. pamac is built for Manjaro. On Arch, sometimes it builds, sometimes it doesn’t.

3 Likes

pamac-aur should be built, at least I had no trouble with it, until I grew up and no longer needed it for anything

GUI package managers are not supported on EndeavourOS. Pamac is not developed or packaged by the EndeavourOS team.

If I were to make a wild guess, the reason why it doesn’t build is probably because you have newer dependencies than what it expects. You could try to post about your issue on the AUR page of pamac-all:

https://aur.archlinux.org/packages/pamac-all

You could also try bulding the version from git.

Or you could learn how to use pacman, the only package manager that is supported on EndeavourOS, or even yay.

Or you could distrohop to Manjaro, it comes with Pamac out of the box.

1 Like

I had the same exact problem on Artix. (Neither Arch nor Artix provide support for AUR packages, that’s done by the maintainer of each individual package…) Plus pamac is developed for Manjaro, its prone to breaking too. Best way would be to install by terminal using pacman or yay…

Anywa… problem you described I have solved it myself by installing pamac-gtk (via pacman in terminal from the Artix “Universe” repo)

Hope it helps you out.

From the AUR, the pamac-all-git version will not work either. I have tested that. It fails because of pamac-all and the deprecated dependency pamac-cli.
See here:

Summary
~> yay pamac
21 aur/libpamac-full-dev 11.1.0beta2-1 (+0 0.00) (Verwaist) (Veraltet: 2022-10-17) 
    Library for Pamac package manager based on libalpm - flatpak and snap support enabled - development version
20 aur/libpamac-full-git 1:11.4.1.r0.g29d7180-1 (+0 0.00) 
    Library for Pamac package manager based on libalpm - flatpak and snap support enabled
19 aur/libpamac-flatpak 11.4.1-1 (+1 0.03) 
    Library for Pamac package manager based on libalpm - flatpak support enabled
18 aur/libpamac-git 1.5.0.r0.ge76e49d-1 (+3 0.00) 
    Library for Pamac package manager based on libalpm - git version
17 aur/libpamac 11.3.1-1 (+4 0.00) (Verwaist) 
    Library for Pamac package manager based on libalpm
16 aur/libpamac-nosnap 1:11.4.1-2 (+5 0.20) 
    Library for Pamac package manager based on libalpm - flatpak support enabled
15 aur/libpamac-full 1:11.5.0-1 (+6 0.38) 
    Library for Pamac package manager based on libalpm - flatpak and snap support enabled
14 aur/archlinux-appstream-data-pamac 1:20230220-1 (+24 1.56) 
    Arch Linux application database for AppStream-based software centers (Fixed for pamac-aur and pamac-all packages)
13 aur/pamac-appstream-hook 1-1 (+1 0.00) 
    Pacman hook for cleaning up Appstream data from tags that Pamac can't handle.
12 aur/libpamac-aur 11.5.0-1 (+26 1.26) 
    Pamac package manager library based on libalpm
11 aur/pamac-zsh-completions 0.7-1 (+4 0.00) 
    ZSH completions for pamac
10 aur/pamac-all-git 1:10.4.3.r0.gd314d70-1 (+6 0.00) 
    A Gtk3 frontend for libalpm (everything in one package - snap, flatpak, appindicator)
9 aur/pamac-tray-icon-plasma 0.1.3-1 (+16 0.11) 
    Pamac tray icon for plasma users
8 aur/pamac-flatpak-gnome 10.4.3-1 (+2 0.02) 
    A Gtk3 frontend for libalpm (with AUR, Flatpak,AppIndicator support, and GNOME integration)
7 aur/pamac-all 10.5.0-1 (+32 0.41) 
    A Gtk3 frontend for libalpm (everything in one package - snap, flatpak, appindicator)
6 aur/pamac-flatpak 10.4.3-1 (+6 0.25) 
    A Gtk3 frontend for libalpm (with AUR, Flatpak and AppIndicator support)
5 aur/pamac-nosnap 10.4.3-3 (+13 0.28) 
    A Gtk3 frontend from Manjaro Linux for libalpm with AUR, flatpak, and appindicator support.
4 aur/pamac-cli 10.1.2-1 (+9 0.00) (Veraltet: 2021-08-07) 
    Pamac cli frontend for libalpm
3 aur/pamac-classic 7.3.0-2 (+16 0.00) 
    A Gtk3 frontend for libalpm - classic version
2 aur/pamac-aur-git 10.5.0.r0.g400dc79-1 (+29 0.01) 
    A Gtk3 frontend for libalpm - git version
1 aur/pamac-aur 10.5.0-1 (+379 3.44) 
    A Gtk3 frontend, Package Manager based on libalpm with AUR and Appstream support
==> Zu installierende Pakete: (z.B. 1 2 3, 1-3 oder ^4)
==> 

There is a manual for the Chaotic-AUR where the guys from Garuda LInux had taken care of it. But Garuda-Linux has officially decided against Snap and Flatpak and so this is not a solution anymore. There pamac will probably disappear too.
See here:
https://itsfoss.com/install-pamac-arch-linux/
https://wiki.garudalinux.org/ru/how-to-snap-flatpak

@ imnotrev There is certainly a way to install pamac and scrap your system.

valid point ngl

yeah its pretty great

:0

yeah pamac have a high chance to disappear from the aur.

yes.

thx for all the suggestion and help guys, appreciated it :smiley:

1 Like