A faliure occurred when I try to install chromium-wayland-vaapi

    ~  yay -S chromium-wayland-vaapi
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  chromium-wayland-vaapi-97.0.4692.99-1

  1 chromium-wayland-vaapi                   (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: PKGBUILD up to date, Skipping (1/0): chromium-wayland-vaapi
  1 chromium-wayland-vaapi                   (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: (1/1) Parsing SRCINFO: chromium-wayland-vaapi
==> Making package: chromium-wayland-vaapi 97.0.4692.99-1 (Wed Apr 13 18:28:30 2022)
==> Retrieving sources...
  -> Found chromium-97.0.4692.99.tar.xz
  -> Found chromium-launcher-8.tar.gz
  -> Found chromium-97-patchset-4.tar.xz
  -> Found sql-make-VirtualCursor-standard-layout-type.patch
  -> Found chromium-93-ffmpeg-4.4.patch
  -> Found unbundle-ffmpeg-av_stream_get_first_dts.patch
  -> Found unexpire-accelerated-video-decode-flag.patch
  -> Found use-oauth2-client-switches-as-default.patch
  -> Found 0001-ozone-wayland-add-VA-API-support.patch
==> Validating source files with sha256sums...
    chromium-97.0.4692.99.tar.xz ... Passed
    chromium-launcher-8.tar.gz ... Passed
    chromium-97-patchset-4.tar.xz ... Passed
    sql-make-VirtualCursor-standard-layout-type.patch ... Passed
    chromium-93-ffmpeg-4.4.patch ... Passed
    unbundle-ffmpeg-av_stream_get_first_dts.patch ... Passed
    unexpire-accelerated-video-decode-flag.patch ... Passed
    use-oauth2-client-switches-as-default.patch ... Passed
    0001-ozone-wayland-add-VA-API-support.patch ... Passed
==> Making package: chromium-wayland-vaapi 97.0.4692.99-1 (Wed Apr 13 18:28:32 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found chromium-97.0.4692.99.tar.xz
  -> Found chromium-launcher-8.tar.gz
  -> Found chromium-97-patchset-4.tar.xz
  -> Found sql-make-VirtualCursor-standard-layout-type.patch
  -> Found chromium-93-ffmpeg-4.4.patch
  -> Found unbundle-ffmpeg-av_stream_get_first_dts.patch
  -> Found unexpire-accelerated-video-decode-flag.patch
  -> Found use-oauth2-client-switches-as-default.patch
  -> Found 0001-ozone-wayland-add-VA-API-support.patch
==> Validating source files with sha256sums...
    chromium-97.0.4692.99.tar.xz ... Passed
    chromium-launcher-8.tar.gz ... Passed
    chromium-97-patchset-4.tar.xz ... Passed
    sql-make-VirtualCursor-standard-layout-type.patch ... Passed
    chromium-93-ffmpeg-4.4.patch ... Passed
    unbundle-ffmpeg-av_stream_get_first_dts.patch ... Passed
    unexpire-accelerated-video-decode-flag.patch ... Passed
    use-oauth2-client-switches-as-default.patch ... Passed
    0001-ozone-wayland-add-VA-API-support.patch ... Passed
==> Removing existing $srcdir/ directory...
yuyh]jbnbnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnb^[[C==> Extracting sources...
  -> Extracting chromium-97.0.4692.99.tar.xz with bsdtar
  -> Extracting chromium-launcher-8.tar.gz with bsdtar
  -> Extracting chromium-97-patchset-4.tar.xz with bsdtar
==> Starting prepare()...
patching file google_apis/google_api_keys.cc
Hunk #1 succeeded at 164 (offset 10 lines).
patching file media/filters/ffmpeg_demuxer.cc
Hunk #1 succeeded at 405 (offset -22 lines).
Hunk #2 succeeded at 421 (offset -22 lines).
Hunk #3 succeeded at 482 (offset -22 lines).
patching file build/linux/unbundle/ffmpeg.gn
patching file chrome/browser/flag-metadata.json
Hunk #1 succeeded at 1365 (offset 80 lines).
patching file sql/recover_module/btree.cc
Hunk #1 succeeded at 136 (offset 1 line).
patching file sql/recover_module/btree.h
Hunk #1 succeeded at 103 (offset 1 line).
Hunk #2 succeeded at 151 (offset 1 line).
Hunk #3 succeeded at 173 (offset 1 line).
patching file sql/recover_module/cursor.cc
Hunk #1 succeeded at 28 (offset 2 lines).
Hunk #2 succeeded at 38 (offset 2 lines).
Hunk #3 succeeded at 101 (offset 2 lines).
Hunk #4 succeeded at 115 (offset 2 lines).
patching file sql/recover_module/cursor.h
patching file sql/recover_module/pager.cc
patching file sql/recover_module/pager.h
Hunk #1 succeeded at 5 with fuzz 1.
Hunk #2 succeeded at 72 (offset 1 line).
Hunk #3 succeeded at 139 (offset 1 line).
patching file media/gpu/vaapi/vaapi_picture_factory.cc
Hunk #1 succeeded at 101 (offset -1 lines).
patching file media/gpu/vaapi/vaapi_picture_native_pixmap.cc
patching file media/gpu/vaapi/vaapi_video_decode_accelerator.cc
patching file ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc
patching file ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.h
patching file ui/ozone/platform/wayland/ozone_platform_wayland.cc
Hunk #1 succeeded at 312 with fuzz 1 (offset -2 lines).
==> Sources are ready.
==> Making package: chromium-wayland-vaapi 97.0.4692.99-1 (Wed Apr 13 18:30:01 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make: Entering directory '/home/kimiblock/.cache/yay/chromium-wayland-vaapi/src/chromium-launcher-8'
cc -o chromium -DLAUNCHER_VERSION=\"v8\" -DCHROMIUM_NAME=\"chromium\" -DCHROMIUM_BINARY=\"/usr/lib/chromium/chromium\" -DCHROMIUM_VENDOR="\"Manjaro Linux\"" -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now launcher.c -lglib-2.0 
make: Leaving directory '/home/kimiblock/.cache/yay/chromium-wayland-vaapi/src/chromium-launcher-8'
Done. Made 16868 targets from 2943 files in 2895ms
ninja: Entering directory `out/Release'
[3375/48999] CXX obj/third_party/angle..._backend/vk_internal_shaders_autogen.o
../../third_party/angle/src/libANGLE/renderer/vulkan/vk_internal_shaders_autogen.cpp:13:9: warning: 'USE_SYSTEM_ZLIB' macro redefined [-Wmacro-redefined]
#define USE_SYSTEM_ZLIB
        ^
<command line>:33:9: note: previous definition is here
#define USE_SYSTEM_ZLIB 1
        ^
1 warning generated.
[4156/48999] CXX obj/third_party/breakpad/client/exception_handler.o
FAILED: obj/third_party/breakpad/client/exception_handler.o 
clang++ -MMD -MF obj/third_party/breakpad/client/exception_handler.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-14-init-8033-gabb2a91b-2\" -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../third_party/breakpad -I../../third_party/breakpad/breakpad/src -I../../third_party/breakpad/breakpad/src/client -I../../third_party/breakpad/breakpad/src/third_party/linux/include -I../.. -Igen -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -flto=thin -fsplit-lto-unit -fwhole-program-vtables -m64 -march=x86-64 -msse3 -ffile-compilation-dir=. -no-canonical-prefixes -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -ftrivial-auto-var-init=pattern -fprofile-instr-use=../../chrome/build/pgo_profiles/chrome-linux-4692-1641404809-2e9cd7e4fa1c8c41d8f32f8bc0dd52e2646c649a.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -fsanitize=cfi-vcall -fsanitize-ignorelist=../../tools/cfi/ignores.txt -fsanitize=cfi-icall -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -fvisibility-inlines-hidden  -D__DATE__=  -D__TIME__=  -D__TIMESTAMP__= -march=x86-64 -mtune=generic -O2 -pipe -fno-plt          -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security            -Wno-builtin-macro-redefined -Wno-unknown-warning-option -c ../../third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -o obj/third_party/breakpad/client/exception_handler.o
../../third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:41: error: no matching function for call to 'max'
  static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
                                        ^~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/algorithmfwd.h:407:5: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long')
    max(const _Tp&, const _Tp&);
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/stl_algo.h:3467:5: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'int'
    max(initializer_list<_Tp> __l, _Compare __comp)
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/stl_algo.h:3461:5: note: candidate function template not viable: requires single argument '__l', but 2 arguments were provided
    max(initializer_list<_Tp> __l)
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/algorithmfwd.h:412:5: note: candidate function template not viable: requires 3 arguments, but 2 were provided
    max(const _Tp&, const _Tp&, _Compare);
    ^
1 error generated.
[4173/48999] ACTION //third_party/blin...uild/toolchain/linux/unbundle:default)
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: chromium-wayland-vaapi

System info:

OS: Manjaro Linux x86_64
Host: ZenBook UX425UG_UM425UG 1.0
Kernel: 5.15.28-1-MANJARO
Uptime: 4 hours, 24 mins
Packages: 1390 (pacman)
Shell: zsh 5.8.1
Resolution: 1920x1080
DE: GNOME 41.4
WM: Mutter
WM Theme: Adwaita
Theme: Adwaita-maia-dark [GTK2/3]
Icons: Papirus-Dark [GTK2/3
Terminal: gnome-terminal
CPU: AMD Ryzen 7 5700U with Radeon Graphics (16
GPU: NVIDIA GeForce MX450
GPU: AMD ATI 05:00.0 Lucienne
Memory: 5469MiB / 15457MiB

Hi @Kimiblock, and welcome!

In order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

Hope you manage!


Tip:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Thereby improving legibility and making it much easier for those trying to be of assistance.

Please edit your post accordingly.

Sorry, I’m new to here
Here’s the output of inxi:

System:
  Kernel: 5.15.28-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=aef45bfc-6e4a-4be8-bd93-d15e5c9d6014 rw nvidia-drm.modeset=1
    quiet splash apparmor=1 security=apparmor udev.log_priority=3
  Desktop: GNOME v: 41.4 tk: GTK v: 3.24.33 wm: gnome-shell dm: GDM v: 41.3
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: ZenBook UX425UG_UM425UG v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: UX425UG v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: UX425UG.300 date: 05/25/2021
Battery:
  ID-1: BATT charge: 58.1 Wh (100.0%) condition: 58.1/63.1 Wh (92.1%)
    volts: 12.0 min: 12.0 model: ASUSTeK UX425 type: Li-ion serial: <filter>
    status: full cycles: 46
Memory:
  RAM: total: 15.1 GiB used: 6.99 GiB (46.3%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 2 family: 0x17 (23) model-id: 0x68 (104) stepping: 1
    microcode: 0x8608103
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
    desc: 2x4 MiB
  Speed (MHz): avg: 1441 high: 1651 min/max: 1400/4370 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 1397 2: 1397
    3: 1397 4: 1397 5: 1397 6: 1397 7: 1397 8: 1397 9: 1611 10: 1651 11: 1397
    12: 1397 13: 1636 14: 1397 15: 1397 16: 1397 bogomips: 57504
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
    f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs
    irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
    msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
    pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a
    rdtscp rep_good sep sha_ni skinit smap smca smep ssbd sse sse2 sse4_1
    sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext tsc
    tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall
    wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU117M [GeForce MX450] vendor: ASUSTeK driver: nvidia
    v: 510.54 alternate: nouveau,nvidia_drm pcie: gen: 1 speed: 2.5 GT/s
    lanes: 4 link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 03:00.0
    chip-ID: 10de:1f9c class-ID: 0302
  Device-2: AMD Lucienne vendor: ASUSTeK driver: amdgpu v: kernel pcie:
    gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s ports:
    active: eDP-1 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 05:00.0 chip-ID: 1002:164c
    class-ID: 0300
  Device-3: Quanta USB2.0 HD UVC WebCam type: USB driver: uvcvideo
    bus-ID: 1-3:2 chip-ID: 0408:30c0 class-ID: fe01 serial: <filter>
  Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.0
    compositor: gnome-shell driver: X: loaded: amdgpu,nvidia
    unloaded: modesetting,nouveau,radeon alternate: fbdev,nv,vesa gpu: amdgpu
    display-ID: 0
  Monitor-1: eDP-1 model: Najing CEC Panda 0x0035 built: 2019 res: 1920x1080
    dpi: 158 gamma: 1.2 size: 309x174mm (12.17x6.85") diag: 355mm (14")
    ratio: 16:9 modes: max: 1920x1080 min: 640x480
  OpenGL: renderer: AMD RENOIR (DRM 3.42.0 5.15.28-1-MANJARO LLVM 13.0.1)
    v: 4.6 Mesa 21.3.7 direct render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: ASUSTeK
    driver: snd_rn_pci_acp3x v: kernel alternate: snd_pci_acp3x,snd_pci_acp5x
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
    bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.28-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 01:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp1s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-4:3
    chip-ID: 8087:0029 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 953.87 GiB used: 37.56 GiB (3.9%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: PC SN530 SDBPNPZ-1T00-1002 size: 953.87 GiB block-size:
    physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 21106000 temp: 40.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 643.51 GiB size: 632.34 GiB (98.26%)
    used: 37.53 GiB (5.9%) fs: ext4 dev: /dev/nvme0n1p4 maj-min: 259:4
    label: N/A uuid: aef45bfc-6e4a-4be8-bd93-d15e5c9d6014
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%)
    used: 31.9 MiB (33.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: N/A uuid: 440E-8AD2
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 309.54 GiB fs: bitlocker
    label: N/A uuid: N/A
  ID-3: /dev/nvme0n1p5 maj-min: 259:5 size: 716 MiB fs: ntfs label: N/A
    uuid: C4F4991AF4991032
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: Quanta USB2.0 HD UVC WebCam type: Video
    driver: uvcvideo interfaces: 5 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0408:30c0 class-ID: fe01 serial: <filter>
  Device-2: 1-4:3 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029
    class-ID: e001
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: Darfon HP Wireless Keyboard and Mouse
    type: Keyboard,HID,Mouse driver: hid-generic,usbhid interfaces: 3 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 0d62:0d99 class-ID: 0301
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 0.0 C mobo: N/A gpu: amdgpu temp: 44.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 403 Uptime: 5h 40m wakeups: 1764 Init: systemd v: 250
  tool: systemctl Compilers: gcc: 11.2.0 clang: 13.0.1 Packages: pacman: 1390
  lib: 456 flatpak: 0 Shell: Zsh v: 5.8.1 running-in: gnome-terminal
  inxi: 3.3.15

Thanks for your reply!

I’ve installed base-devel correctly
I build the AUR package chromium-wayland-vaapi manually by running:

export LANG=C
git clone https://aur.archlinux.org/chromium-wayland-vaapi.git
cd chromium-wayland-vaapi
makepkg -si

Unfortunately it gives me a similiar error.

    ~/chromium-wayland-vaapi    master ?1  makepkg -si               ✔ 
==> Making package: chromium-wayland-vaapi 97.0.4692.99-1 (2022年04月13日 星期三 21时53分55秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found chromium-97.0.4692.99.tar.xz
  -> Downloading chromium-launcher-8.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   141    0   141    0     0    133      0 --:--:--  0:00:01 --:--:--   133
100  4725    0  4725    0     0   2422      0 --:--:--  0:00:01 --:--:--  5826
  -> Downloading chromium-97-patchset-4.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   668  100   668    0     0    289      0  0:00:02  0:00:02 --:--:--   289
100  4240  100  4240    0     0    426      0  0:00:09  0:00:09 --:--:--   604
  -> Found sql-make-VirtualCursor-standard-layout-type.patch
  -> Found chromium-93-ffmpeg-4.4.patch
  -> Found unbundle-ffmpeg-av_stream_get_first_dts.patch
  -> Found unexpire-accelerated-video-decode-flag.patch
  -> Found use-oauth2-client-switches-as-default.patch
  -> Found 0001-ozone-wayland-add-VA-API-support.patch
==> Validating source files with sha256sums...
    chromium-97.0.4692.99.tar.xz ... Passed
    chromium-launcher-8.tar.gz ... Passed
    chromium-97-patchset-4.tar.xz ... Passed
    sql-make-VirtualCursor-standard-layout-type.patch ... Passed
    chromium-93-ffmpeg-4.4.patch ... Passed
    unbundle-ffmpeg-av_stream_get_first_dts.patch ... Passed
    unexpire-accelerated-video-decode-flag.patch ... Passed
    use-oauth2-client-switches-as-default.patch ... Passed
    0001-ozone-wayland-add-VA-API-support.patch ... Passed
==> Extracting sources...
  -> Extracting chromium-97.0.4692.99.tar.xz with bsdtar
  -> Extracting chromium-launcher-8.tar.gz with bsdtar
  -> Extracting chromium-97-patchset-4.tar.xz with bsdtar
==> Starting prepare()...
patching file google_apis/google_api_keys.cc
Hunk #1 succeeded at 164 (offset 10 lines).
patching file media/filters/ffmpeg_demuxer.cc
Hunk #1 succeeded at 405 (offset -22 lines).
Hunk #2 succeeded at 421 (offset -22 lines).
Hunk #3 succeeded at 482 (offset -22 lines).
patching file build/linux/unbundle/ffmpeg.gn
patching file chrome/browser/flag-metadata.json
Hunk #1 succeeded at 1365 (offset 80 lines).
patching file sql/recover_module/btree.cc
Hunk #1 succeeded at 136 (offset 1 line).
patching file sql/recover_module/btree.h
Hunk #1 succeeded at 103 (offset 1 line).
Hunk #2 succeeded at 151 (offset 1 line).
Hunk #3 succeeded at 173 (offset 1 line).
patching file sql/recover_module/cursor.cc
Hunk #1 succeeded at 28 (offset 2 lines).
Hunk #2 succeeded at 38 (offset 2 lines).
Hunk #3 succeeded at 101 (offset 2 lines).
Hunk #4 succeeded at 115 (offset 2 lines).
patching file sql/recover_module/cursor.h
patching file sql/recover_module/pager.cc
patching file sql/recover_module/pager.h
Hunk #1 succeeded at 5 with fuzz 1.
Hunk #2 succeeded at 72 (offset 1 line).
Hunk #3 succeeded at 139 (offset 1 line).
patching file media/gpu/vaapi/vaapi_picture_factory.cc
Hunk #1 succeeded at 101 (offset -1 lines).
patching file media/gpu/vaapi/vaapi_picture_native_pixmap.cc
patching file media/gpu/vaapi/vaapi_video_decode_accelerator.cc
patching file ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.cc
patching file ui/ozone/platform/wayland/gpu/gbm_pixmap_wayland.h
patching file ui/ozone/platform/wayland/ozone_platform_wayland.cc
Hunk #1 succeeded at 312 with fuzz 1 (offset -2 lines).
==> Starting build()...
make: Entering directory '/home/kimiblock/chromium-wayland-vaapi/src/chromium-launcher-8'
cc -o chromium -DLAUNCHER_VERSION=\"v8\" -DCHROMIUM_NAME=\"chromium\" -DCHROMIUM_BINARY=\"/usr/lib/chromium/chromium\" -DCHROMIUM_VENDOR="\"Manjaro Linux\"" -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now launcher.c -lglib-2.0 
make: Leaving directory '/home/kimiblock/chromium-wayland-vaapi/src/chromium-launcher-8'
Done. Made 16868 targets from 2943 files in 3167ms
ninja: Entering directory `out/Release'
[209/48999] CXX obj/third_party/breakpad/client/exception_handler.o
FAILED: obj/third_party/breakpad/client/exception_handler.o 
clang++ -MMD -MF obj/third_party/breakpad/client/exception_handler.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-14-init-8033-gabb2a91b-2\" -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../third_party/breakpad -I../../third_party/breakpad/breakpad/src -I../../third_party/breakpad/breakpad/src/client -I../../third_party/breakpad/breakpad/src/third_party/linux/include -I../.. -Igen -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -flto=thin -fsplit-lto-unit -fwhole-program-vtables -m64 -march=x86-64 -msse3 -ffile-compilation-dir=. -no-canonical-prefixes -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -ftrivial-auto-var-init=pattern -fprofile-instr-use=../../chrome/build/pgo_profiles/chrome-linux-4692-1641404809-2e9cd7e4fa1c8c41d8f32f8bc0dd52e2646c649a.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -fsanitize=cfi-vcall -fsanitize-ignorelist=../../tools/cfi/ignores.txt -fsanitize=cfi-icall -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-c++11-narrowing -Wno-unused-but-set-variable -Wno-misleading-indentation -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -fvisibility-inlines-hidden  -D__DATE__=  -D__TIME__=  -D__TIMESTAMP__= -march=x86-64 -mtune=generic -O2 -pipe -fno-plt          -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security            -Wno-builtin-macro-redefined -Wno-unknown-warning-option -c ../../third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -o obj/third_party/breakpad/client/exception_handler.o
../../third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:41: error: no matching function for call to 'max'
  static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
                                        ^~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/algorithmfwd.h:407:5: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long')
    max(const _Tp&, const _Tp&);
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/stl_algo.h:3467:5: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'int'
    max(initializer_list<_Tp> __l, _Compare __comp)
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/stl_algo.h:3461:5: note: candidate function template not viable: requires single argument '__l', but 2 arguments were provided
    max(initializer_list<_Tp> __l)
    ^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/algorithmfwd.h:412:5: note: candidate function template not viable: requires 3 arguments, but 2 were provided
    max(const _Tp&, const _Tp&, _Compare);
    ^
1 error generated.
[226/48999] CXX obj/skia/skia_opts_hsw/SkOpts_hsw.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...