Yay -S pamac-aur returns A failure occurred in build()

Hi, I am new to arch Linux. I installed Arch today and when I try to install pamac this error shows:

[homeless@Spectre pamac-aur]$ yay -S pamac-aur
:: There are 3 providers available for pamac-aur:
:: Repository AUR
    1) pamac-aur 2) pamac-all 3) pamac-classic

Enter a number (default=1): 
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo:3]  vte-common-0.64.1-1  vte3-0.64.1-1  libhandy-1.2.2-1
[Repo Make:30]  itstool-1:2.0.6-2  glib2-docs-2.68.2-1  python-lxml-4.6.3-1  python-appdirs-1.4.4-3  python-more-itertools-8.7.0-1  python-ordered-set-4.0.2-3  python-pyparsing-2.4.7-3  python-six-1.16.0-1  python-packaging-20.9-1  python-setuptools-1:57.0.0-2  python-pygments-2.9.0-1  python-anytree-2.8.0-3  gtk-doc-1.33.2-1  netpbm-10.73.33-1  gts-0.7.6.121130-2  gsfonts-20200910-2  graphviz-2.47.2-1  vala-0.52.4-1  asciidoc-9.1.0-1  ninja-1.10.2-1  meson-0.58.0-2  python-markupsafe-2.0.1-1  python-beaker-1.11.0-6  python-mako-1.1.4-1  gobject-introspection-runtime-1.68.0-1  gobject-introspection-1.68.0-1  libdbusmenu-glib-16.04.0-4  libdbusmenu-gtk3-16.04.0-4  libindicator-gtk3-12.10.1-9  libappindicator-gtk3-12.10.0.r296-1
[Aur:1]  pamac-aur-10.1.2-1

==> Remove make dependencies after install? [y/N] 
:: Downloaded PKGBUILD (1/1): pamac-aur
  1 pamac-aur                                (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: pamac-aur
[sudo] password for homeless: 
resolving dependencies...
looking for conflicting packages...

Packages (33) asciidoc-9.1.0-1  glib2-docs-2.68.2-1  gobject-introspection-1.68.0-1
              gobject-introspection-runtime-1.68.0-1  graphviz-2.47.2-1  gsfonts-20200910-2  gtk-doc-1.33.2-1
              gts-0.7.6.121130-2  itstool-1:2.0.6-2  libappindicator-gtk3-12.10.0.r296-1  libdbusmenu-glib-16.04.0-4
              libdbusmenu-gtk3-16.04.0-4  libhandy-1.2.2-1  libindicator-gtk3-12.10.1-9  meson-0.58.0-2
              netpbm-10.73.33-1  ninja-1.10.2-1  python-anytree-2.8.0-3  python-appdirs-1.4.4-3
              python-beaker-1.11.0-6  python-lxml-4.6.3-1  python-mako-1.1.4-1  python-markupsafe-2.0.1-1
              python-more-itertools-8.7.0-1  python-ordered-set-4.0.2-3  python-packaging-20.9-1
              python-pygments-2.9.0-1  python-pyparsing-2.4.7-3  python-setuptools-1:57.0.0-2  python-six-1.16.0-1
              vala-0.52.4-1  vte-common-0.64.1-1  vte3-0.64.1-1

Total Installed Size:  110.08 MiB

:: Proceed with installation? [Y/n] 
(33/33) checking keys in keyring                                       [########################################] 100%
(33/33) checking package integrity                                     [########################################] 100%
(33/33) loading package files                                          [########################################] 100%
(33/33) checking for file conflicts                                    [########################################] 100%
(33/33) checking available disk space                                  [########################################] 100%
:: Processing package changes...
( 1/33) installing vte-common                                          [########################################] 100%
( 2/33) installing vte3                                                [########################################] 100%
( 3/33) installing libhandy                                            [########################################] 100%
( 4/33) installing itstool                                             [########################################] 100%
( 5/33) installing glib2-docs                                          [########################################] 100%
( 6/33) installing python-lxml                                         [########################################] 100%
Optional dependencies for python-lxml
    python-beautifulsoup4: support for beautifulsoup parser to parse not well formed HTML
    python-cssselect: support for cssselect
    python-html5lib: support for html5lib parser
    python-lxml-docs: offline docs
( 7/33) installing python-appdirs                                      [########################################] 100%
( 8/33) installing python-more-itertools                               [########################################] 100%
( 9/33) installing python-ordered-set                                  [########################################] 100%
(10/33) installing python-pyparsing                                    [########################################] 100%
(11/33) installing python-six                                          [########################################] 100%
(12/33) installing python-packaging                                    [########################################] 100%
(13/33) installing python-setuptools                                   [########################################] 100%
(14/33) installing python-pygments                                     [########################################] 100%
(15/33) installing python-anytree                                      [########################################] 100%
(16/33) installing gtk-doc                                             [########################################] 100%
Optional dependencies for gtk-doc
    dblatex: PDF support
(17/33) installing netpbm                                              [########################################] 100%
(18/33) installing gts                                                 [########################################] 100%
(19/33) installing gsfonts                                             [########################################] 100%
(20/33) installing graphviz                                            [########################################] 100%
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gdk.so.6" - It was found, so perhaps one of its dependents was not.  Try ldd.
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gtk.so.6" - It was found, so perhaps one of its dependents was not.  Try ldd.
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gdk.so.6" - It was found, so perhaps one of its dependents was not.  Try ldd.
Warning: Could not load "/usr/lib/graphviz/libgvplugin_gtk.so.6" - It was found, so perhaps one of its dependents was not.  Try ldd.
Optional dependencies for graphviz
    mono: sharp bindings
    guile: guile bindings [installed]
    lua: lua bindings
    ocaml: ocaml bindings
    perl: perl bindings [installed]
    python: python bindings [installed]
    r: r bindings
    tcl: tcl bindings
    qt5-base: gvedit [installed]
    gtk2: gtk output plugin
    xterm: vimdot
(21/33) installing vala                                                [########################################] 100%
(22/33) installing asciidoc                                            [########################################] 100%
Optional dependencies for asciidoc
    graphviz: graphviz-filter [installed]
    lilypond: music-filter
    imagemagick: music-filter
    source-highlight: source-highlight-filter [installed]
    dblatex: pdf generation
    fop: alternative pdf generation
    w3m: text generation
    lynx: alternative text generation
(23/33) installing ninja                                               [########################################] 100%
(24/33) installing meson                                               [########################################] 100%
(25/33) installing python-markupsafe                                   [########################################] 100%
(26/33) installing python-beaker                                       [########################################] 100%
(27/33) installing python-mako                                         [########################################] 100%
(28/33) installing gobject-introspection-runtime                       [########################################] 100%
(29/33) installing gobject-introspection                               [########################################] 100%
(30/33) installing libdbusmenu-glib                                    [########################################] 100%
(31/33) installing libdbusmenu-gtk3                                    [########################################] 100%
(32/33) installing libindicator-gtk3                                   [########################################] 100%
(33/33) installing libappindicator-gtk3                                [########################################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating fontconfig configuration...
(3/4) Warn about old perl modules
(4/4) Updating fontconfig cache...
==> Making package: pamac-aur 10.1.2-1 (Sat 05 Jun 2021 10:18:54 AM +06)
==> Retrieving sources...
  -> Downloading pamac-10.1.2-1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  845k  100  845k    0     0   215k      0  0:00:03  0:00:03 --:--:--  215k
  -> Found fix-appstream-data.sh
  -> Found fix-appstream-data.hook
==> Validating source files with sha256sums...
    pamac-10.1.2-1.tar.gz ... Passed
    fix-appstream-data.sh ... Passed
    fix-appstream-data.hook ... Passed
 -> vte3>=0.38 not satisfied, flushing install queue
==> Making package: pamac-aur 10.1.2-1 (Sat 05 Jun 2021 10:19:00 AM +06)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found pamac-10.1.2-1.tar.gz
  -> Found fix-appstream-data.sh
  -> Found fix-appstream-data.hook
==> Validating source files with sha256sums...
    pamac-10.1.2-1.tar.gz ... Passed
    fix-appstream-data.sh ... Passed
    fix-appstream-data.hook ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting pamac-10.1.2-1.tar.gz with bsdtar
==> Starting prepare()...
==> Sources are ready.
==> Making package: pamac-aur 10.1.2-1 (Sat 05 Jun 2021 10:19:05 AM +06)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
The Meson build system
Version: 0.58.0
Source dir: /home/homeless/.cache/yay/pamac-aur/src/pamac-bd6b8e8cf727cf94a1c9f4467a9157d94cad781f
Build dir: /home/homeless/.cache/yay/pamac-aur/src/pamac-bd6b8e8cf727cf94a1c9f4467a9157d94cad781f/builddir
Build type: native build
WARNING: Unknown options: "enable-appindicator"
The value of new options can be set with:
meson setup <builddir> --reconfigure -Dnew_option=new_value ...
Project name: pamac
Project version: 10.0
C compiler for the host machine: cc (gcc 11.1.0 "cc (GCC) 11.1.0")
C linker for the host machine: cc ld.bfd 2.36.1
Vala compiler for the host machine: valac (valac 0.52.4)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency gobject-2.0 found: YES 2.68.2
Run-time dependency gio-2.0 found: YES 2.68.2
Run-time dependency gthread-2.0 found: YES 2.68.2
Run-time dependency libalpm found: YES 13.0.0
Run-time dependency json-glib-1.0 found: YES 1.6.2
Run-time dependency libsoup-2.4 found: YES 2.72.0
Run-time dependency polkit-gobject-1 found: YES 0.119
Run-time dependency libnotify found: YES 0.7.9
Run-time dependency appstream-glib found: YES 0.7.18
Run-time dependency gio-unix-2.0 found: YES 2.68.2
Run-time dependency gtk+-3.0 found: YES 3.24.29
Run-time dependency libhandy-1 found: YES 1.2.2
Run-time dependency gmodule-2.0 found: YES 2.68.2
Library posix found: YES
Library m found: YES
Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler)
Configuring org.manjaro.pamac.manager.service using configuration
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
Program a2x found: YES (/usr/bin/a2x)
Program gzip found: YES (/usr/bin/gzip)
Build targets in project: 24

Found ninja-1.10.2 at /usr/bin/ninja
[7/92] Compiling Vala source ../src/alpm_config.vala ../src/dependency_checker.vala
../src/alpm_config.vala:349.2-349.18: warning: Method `AlpmConfig.write' never used
        public void write (HashTable<string,Variant> new_conf) {
        ^^^^^^^^^^^^^^^^^
Compilation succeeded - 1 warning(s)
[8/92] Compiling Vala source ../src/alpm_config.vala ../src/outdated_checker.vala
../src/alpm_config.vala:349.2-349.18: warning: Method `AlpmConfig.write' never used
        public void write (HashTable<string,Variant> new_conf) {
        ^^^^^^^^^^^^^^^^^
Compilation succeeded - 1 warning(s)
[17/92] Compiling Vala source ../src/version.vala ../src/... ../src/snap_interface.vala ../src/flatpak_interface.vala
../src/alpm_package.vala:127.3-127.26: warning: Method `Pamac.AlpmPackage.set_as_app' never used
                internal void set_as_app (As.App? as_app) {
                ^^^^^^^^^^^^^^^^^^^^^^^^
../src/alpm_package.vala:1276.3-1276.36: warning: Method `Pamac.AURPackageLinked.initialise_from_json' never used
                internal void initialise_from_json (Json.Object? json_object, AUR? aur, Alpm.Package? local_pkg, bool is_update = false) {
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/aur.vala:119.3-119.50: warning: Method `Pamac.AUR.get_multi_infos' never used
                public GenericArray<Json.Object> get_multi_infos (string[] pkgnames) {
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/aur.vala:148.3-148.41: warning: Method `Pamac.AUR.search' never used
                public GenericArray<Json.Object> search (string search_string) {
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/alpm_utils.vala:903.3-903.33: warning: Method `Pamac.AlpmUtils.trans_check_prepare' never used
                public bool trans_check_prepare (bool sysupgrade,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:30.3-30.35: warning: Method `Pamac.SnapPlugin.search_snaps' never used
                public abstract void search_snaps (string search_string, ref GenericArray<unowned SnapPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:31.3-31.52: warning: Method `Pamac.SnapPlugin.search_uninstalled_snaps_sync' never used
                public abstract void search_uninstalled_snaps_sync (string search_string, ref GenericArray<unowned SnapPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:32.3-32.40: warning: Method `Pamac.SnapPlugin.is_installed_snap' never used
                public abstract bool is_installed_snap (string name);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:33.3-33.39: warning: Method `Pamac.SnapPlugin.get_snap' never used
                public abstract SnapPackage? get_snap (string name);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:34.3-34.49: warning: Method `Pamac.SnapPlugin.get_snap_by_app_id' never used
                public abstract SnapPackage? get_snap_by_app_id (string app_id);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:35.3-35.42: warning: Method `Pamac.SnapPlugin.get_installed_snaps' never used
                public abstract void get_installed_snaps (ref GenericArray<unowned SnapPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:36.3-36.48: warning: Method `Pamac.SnapPlugin.get_installed_snap_icon' never used
                public abstract string get_installed_snap_icon (string name) throws Error;
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:37.3-37.41: warning: Method `Pamac.SnapPlugin.get_category_snaps' never used
                public abstract void get_category_snaps (string category, ref GenericArray<unowned SnapPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:41.3-41.30: warning: Method `Pamac.SnapPlugin.refresh' never used
                public abstract void refresh ();
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:29.3-29.45: warning: Method `Pamac.FlatpakPlugin.refresh_appstream_data' never used
                public abstract bool refresh_appstream_data ();
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:30.3-30.42: warning: Method `Pamac.FlatpakPlugin.load_appstream_data' never used
                public abstract void load_appstream_data ();
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:31.3-31.40: warning: Method `Pamac.FlatpakPlugin.get_remotes_names' never used
                public abstract void get_remotes_names (ref GenericArray<unowned string> remotes_names);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:32.3-32.38: warning: Method `Pamac.FlatpakPlugin.search_flatpaks' never used
                public abstract void search_flatpaks (string search_string, ref GenericArray<unowned FlatpakPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:33.3-33.55: warning: Method `Pamac.FlatpakPlugin.search_uninstalled_flatpaks_sync' never used
                public abstract void search_uninstalled_flatpaks_sync (string[] search_terms, ref GenericArray<unowned FlatpakPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:34.3-34.43: warning: Method `Pamac.FlatpakPlugin.is_installed_flatpak' never used
                public abstract bool is_installed_flatpak (string name);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:35.3-35.55: warning: Method `Pamac.FlatpakPlugin.get_flatpak_by_app_id' never used
                public abstract FlatpakPackage? get_flatpak_by_app_id (string app_id);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:36.3-36.45: warning: Method `Pamac.FlatpakPlugin.get_flatpak' never used
                public abstract FlatpakPackage? get_flatpak (string id);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:37.3-37.45: warning: Method `Pamac.FlatpakPlugin.get_installed_flatpaks' never used
                public abstract void get_installed_flatpaks (ref GenericArray<unowned FlatpakPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:38.3-38.44: warning: Method `Pamac.FlatpakPlugin.get_category_flatpaks' never used
                public abstract void get_category_flatpaks (string category, ref GenericArray<unowned FlatpakPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:39.3-39.42: warning: Method `Pamac.FlatpakPlugin.get_flatpak_updates' never used
                public abstract void get_flatpak_updates (ref GenericArray<unowned FlatpakPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:42.3-42.30: warning: Method `Pamac.FlatpakPlugin.refresh' never used
                public abstract void refresh ();
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation succeeded - 26 warning(s)
[18/92] Linking target src/dependency-checker
FAILED: src/dependency-checker 
cc  -o src/dependency-checker src/dependency-checker.p/meson-generated_alpm_config.c.o src/dependency-checker.p/meson-generated_dependency_checker.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wl,--start-group /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libalpm.so /usr/lib/libgio-2.0.so -Wl,--end-group
/usr/bin/ld: src/dependency-checker.p/meson-generated_alpm_config.c.o: in function `alpm_config_get_handle':
alpm_config.c:(.text+0x23d3): undefined reference to `alpm_option_set_arch'
/usr/bin/ld: alpm_config.c:(.text+0x26a9): undefined reference to `alpm_option_get_arch'
collect2: error: ld returned 1 exit status
[23/92] Compiling C object src/pamac-daemon.p/meson-generated_alpm_utils.c.o
FAILED: src/pamac-daemon.p/meson-generated_alpm_utils.c.o 
cc -Isrc/pamac-daemon.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/json-glib-1.0 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/polkit-1 -I/usr/include/libappstream-glib -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/uuid -fdiagnostics-color=always -w -O3 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -pthread '-DGETTEXT_PACKAGE="pamac"' -D_FILE_OFFSET_BITS=64 -MD -MQ src/pamac-daemon.p/meson-generated_alpm_utils.c.o -MF src/pamac-daemon.p/meson-generated_alpm_utils.c.o.d -o src/pamac-daemon.p/meson-generated_alpm_utils.c.o -c src/pamac-daemon.p/alpm_utils.c
src/pamac-daemon.p/alpm_utils.c: In function ‘pamac_alpm_utils_get_handle’:
src/pamac-daemon.p/alpm_utils.c:1691:25: error: too few arguments to function ‘alpm_option_set_eventcb’
 1691 |                         alpm_option_set_eventcb (_tmp7_, (alpm_cb_event) cb_event);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1586:5: note: declared here
 1586 | int alpm_option_set_eventcb(alpm_handle_t *handle, alpm_cb_event cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:1693:25: error: too few arguments to function ‘alpm_option_set_progresscb’
 1693 |                         alpm_option_set_progresscb (_tmp8_, (alpm_cb_progress) cb_progress);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1626:5: note: declared here
 1626 | int alpm_option_set_progresscb(alpm_handle_t *handle, alpm_cb_progress cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:1695:25: error: too few arguments to function ‘alpm_option_set_questioncb’
 1695 |                         alpm_option_set_questioncb (_tmp9_, (alpm_cb_question) cb_question);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1606:5: note: declared here
 1606 | int alpm_option_set_questioncb(alpm_handle_t *handle, alpm_cb_question cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:1697:25: error: too few arguments to function ‘alpm_option_set_fetchcb’
 1697 |                         alpm_option_set_fetchcb (_tmp10_, (alpm_cb_fetch) cb_fetch);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1566:5: note: declared here
 1566 | int alpm_option_set_fetchcb(alpm_handle_t *handle, alpm_cb_fetch cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:1699:62: error: ‘alpm_cb_totaldl’ undeclared (first use in this function)
 1699 |                         alpm_option_set_totaldlcb (_tmp11_, (alpm_cb_totaldl) cb_totaldownload);
      |                                                              ^~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:1699:62: note: each undeclared identifier is reported only once for each function it appears in
src/pamac-daemon.p/alpm_utils.c:1699:78: error: expected ‘)’ before ‘cb_totaldownload’
 1699 |                         alpm_option_set_totaldlcb (_tmp11_, (alpm_cb_totaldl) cb_totaldownload);
      |                                                   ~                          ^~~~~~~~~~~~~~~~~
      |                                                                              )
src/pamac-daemon.p/alpm_utils.c:1701:25: error: too few arguments to function ‘alpm_option_set_logcb’
 1701 |                         alpm_option_set_logcb (_tmp12_, (alpm_cb_log) cb_log);
      |                         ^~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1526:5: note: declared here
 1526 | int alpm_option_set_logcb(alpm_handle_t *handle, alpm_cb_log cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c: In function ‘pamac_alpm_utils_update_dbs’:
src/pamac-daemon.p/alpm_utils.c:1962:21: error: too few arguments to function ‘alpm_db_update’
 1962 |                 if (alpm_db_update (force, _tmp6_) < 0) {
      |                     ^~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1373:5: note: declared here
 1373 | int alpm_db_update(alpm_handle_t *handle, alpm_list_t *dbs, int force);
      |     ^~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c: In function ‘pamac_alpm_utils_download_pkg_priv’:
src/pamac-daemon.p/alpm_utils.c:3190:18: error: too few arguments to function ‘alpm_fetch_pkgurl’
 3190 |         _tmp0_ = alpm_fetch_pkgurl (alpm_handle, url);
      |                  ^~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:2318:5: note: declared here
 2318 | int alpm_fetch_pkgurl(alpm_handle_t *handle, const alpm_list_t *urls,
      |     ^~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:3206:26: error: too few arguments to function ‘alpm_fetch_pkgurl’
 3206 |                 _tmp6_ = alpm_fetch_pkgurl (alpm_handle, _tmp5_);
      |                          ^~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:2318:5: note: declared here
 2318 | int alpm_fetch_pkgurl(alpm_handle_t *handle, const alpm_list_t *urls,
      |     ^~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:3212:18: error: too few arguments to function ‘alpm_fetch_pkgurl’
 3212 |         _tmp8_ = alpm_fetch_pkgurl (alpm_handle, url);
      |                  ^~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:2318:5: note: declared here
 2318 | int alpm_fetch_pkgurl(alpm_handle_t *handle, const alpm_list_t *urls,
      |     ^~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c: In function ‘pamac_alpm_utils_trans_check_prepare’:
src/pamac-daemon.p/alpm_utils.c:4321:9: error: too few arguments to function ‘alpm_option_set_questioncb’
 4321 |         alpm_option_set_questioncb (_tmp2_, (alpm_cb_question) cb_question);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1606:5: note: declared here
 1606 | int alpm_option_set_questioncb(alpm_handle_t *handle, alpm_cb_question cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c: In function ‘pamac_alpm_utils_trans_check_prepare_real’:
src/pamac-daemon.p/alpm_utils.c:4582:9: error: too few arguments to function ‘alpm_option_set_eventcb’
 4582 |         alpm_option_set_eventcb (tmp_handle, (alpm_cb_event) cb_event);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1586:5: note: declared here
 1586 | int alpm_option_set_eventcb(alpm_handle_t *handle, alpm_cb_event cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:4583:9: error: too few arguments to function ‘alpm_option_set_progresscb’
 4583 |         alpm_option_set_progresscb (tmp_handle, (alpm_cb_progress) cb_progress);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1626:5: note: declared here
 1626 | int alpm_option_set_progresscb(alpm_handle_t *handle, alpm_cb_progress cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:4584:9: error: too few arguments to function ‘alpm_option_set_logcb’
 4584 |         alpm_option_set_logcb (tmp_handle, (alpm_cb_log) cb_log);
      |         ^~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1526:5: note: declared here
 1526 | int alpm_option_set_logcb(alpm_handle_t *handle, alpm_cb_log cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c: In function ‘pamac_alpm_utils_trans_run_real’:
src/pamac-daemon.p/alpm_utils.c:4796:9: error: too few arguments to function ‘alpm_option_set_questioncb’
 4796 |         alpm_option_set_questioncb (_tmp2_, (alpm_cb_question) cb_question);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1606:5: note: declared here
 1606 | int alpm_option_set_questioncb(alpm_handle_t *handle, alpm_cb_question cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:4825:33: error: too few arguments to function ‘alpm_option_set_eventcb’
 4825 |                                 alpm_option_set_eventcb (_tmp10_, (alpm_cb_event) cb_event);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1586:5: note: declared here
 1586 | int alpm_option_set_eventcb(alpm_handle_t *handle, alpm_cb_event cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:4827:33: error: too few arguments to function ‘alpm_option_set_progresscb’
 4827 |                                 alpm_option_set_progresscb (_tmp11_, (alpm_cb_progress) cb_progress);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1626:5: note: declared here
 1626 | int alpm_option_set_progresscb(alpm_handle_t *handle, alpm_cb_progress cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:4829:33: error: too few arguments to function ‘alpm_option_set_fetchcb’
 4829 |                                 alpm_option_set_fetchcb (_tmp12_, (alpm_cb_fetch) cb_fetch);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1566:5: note: declared here
 1566 | int alpm_option_set_fetchcb(alpm_handle_t *handle, alpm_cb_fetch cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:4831:70: error: ‘alpm_cb_totaldl’ undeclared (first use in this function)
 4831 |                                 alpm_option_set_totaldlcb (_tmp13_, (alpm_cb_totaldl) cb_totaldownload);
      |                                                                      ^~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c:4831:86: error: expected ‘)’ before ‘cb_totaldownload’
 4831 |                                 alpm_option_set_totaldlcb (_tmp13_, (alpm_cb_totaldl) cb_totaldownload);
      |                                                           ~                          ^~~~~~~~~~~~~~~~~
      |                                                                                      )
src/pamac-daemon.p/alpm_utils.c:4833:33: error: too few arguments to function ‘alpm_option_set_logcb’
 4833 |                                 alpm_option_set_logcb (_tmp14_, (alpm_cb_log) cb_log);
      |                                 ^~~~~~~~~~~~~~~~~~~~~
In file included from src/pamac-daemon.p/alpm_utils.c:30:
/usr/include/alpm.h:1526:5: note: declared here
 1526 | int alpm_option_set_logcb(alpm_handle_t *handle, alpm_cb_log cb, void *ctx);
      |     ^~~~~~~~~~~~~~~~~~~~~
src/pamac-daemon.p/alpm_utils.c: In function ‘pamac_alpm_utils_download_files’:
src/pamac-daemon.p/alpm_utils.c:7653:60: error: ‘ALPM_EVENT_RETRIEVE_START’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_DB_RETRIEVE_START’?
 7653 |                 pamac_alpm_utils_emit_event (self, (guint) ALPM_EVENT_RETRIEVE_START, (guint) 0, _tmp14_, (gint) 0);
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                            ALPM_EVENT_DB_RETRIEVE_START
src/pamac-daemon.p/alpm_utils.c:7767:60: error: ‘ALPM_EVENT_RETRIEVE_DONE’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_DB_RETRIEVE_DONE’?
 7767 |                 pamac_alpm_utils_emit_event (self, (guint) ALPM_EVENT_RETRIEVE_DONE, (guint) 0, _tmp37_, (gint) 0);
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                                            ALPM_EVENT_DB_RETRIEVE_DONE
src/pamac-daemon.p/alpm_utils.c: In function ‘cb_event’:
src/pamac-daemon.p/alpm_utils.c:10812:22: error: ‘ALPM_EVENT_PKGDOWNLOAD_START’ undeclared (first use in this function); did you mean ‘ALPM_EVENT_KEY_DOWNLOAD_START’?
10812 |                 case ALPM_EVENT_PKGDOWNLOAD_START:
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                      ALPM_EVENT_KEY_DOWNLOAD_START
[25/92] Compiling Vala source ../src/package.vala ../src/... ../src/snap_interface.vala ../src/flatpak_interface.vala
../src/alpm_config.vala:349.2-349.18: warning: Method `AlpmConfig.write' never used
        public void write (HashTable<string,Variant> new_conf) {
        ^^^^^^^^^^^^^^^^^
../src/alpm_utils.vala:637.3-637.28: warning: Method `Pamac.AlpmUtils.download_pkg' never used
                public string download_pkg (string sender, string url) {
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:31.3-31.52: warning: Method `Pamac.SnapPlugin.search_uninstalled_snaps_sync' never used
                public abstract void search_uninstalled_snaps_sync (string search_string, ref GenericArray<unowned SnapPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:38.3-38.32: warning: Method `Pamac.SnapPlugin.trans_run' never used
                public abstract bool trans_run (string sender, string[] to_install, string[] to_remove);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:39.3-39.37: warning: Method `Pamac.SnapPlugin.switch_channel' never used
                public abstract bool switch_channel (string sender, string name, string channel);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/snap_interface.vala:40.3-40.35: warning: Method `Pamac.SnapPlugin.trans_cancel' never used
                public abstract void trans_cancel (string sender);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:33.3-33.55: warning: Method `Pamac.FlatpakPlugin.search_uninstalled_flatpaks_sync' never used
                public abstract void search_uninstalled_flatpaks_sync (string[] search_terms, ref GenericArray<unowned FlatpakPackage> pkgs);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:40.3-40.32: warning: Method `Pamac.FlatpakPlugin.trans_run' never used
                public abstract bool trans_run (string sender, string[] to_install, string[] to_remove, string[] to_upgrade);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../src/flatpak_interface.vala:41.3-41.35: warning: Method `Pamac.FlatpakPlugin.trans_cancel' never used
                public abstract void trans_cancel (string sender);
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation succeeded - 9 warning(s)
[27/92] Compiling C object src/pamac-daemon.p/meson-generated_alpm_package.c.o
ninja: build stopped:

subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error making: pamac-aur

Hello,
And why do you ask about Arch in Manjaro forum?
If you look at this comment on AUR (en) - pamac-aur page, you will find the answer.

How do i delete post?.. I was on manjaro before installing arch so I totally forgot about that

You don’t have to delete anything. I’m quite sure you got the answer to your question in the AUR link, and till Pamac will be made available to use Pacman 6, there will be no way to compile it successfully, regardless is if on Arch or even Manjaro.

Yeah I got my answer. Thanks a lot.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.