Here’s the starting point:
paru waydroid
sudo systemcl enable --now waydroid-container
Waiting for waydroid container service...
Failed to load binder driver
modprobe: FATAL: Module binder_linux not found in directory /lib/modules/6.2.2-arch1-1
Binder node "binder" for waydroid not found
https://wiki.archlinux.org/title/Waydroid says install either of anbox-modules-dkms-git or linux-zen. Installation of the first fails, that of the second succeeds, but does not remedy the problem above.
:: Packages to install (eg: 1 2 3, 1-3):
:: 4
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...
Repo (1) Old Version New Version Make Only
extra/dkms 3.0.10-1 No
Aur (1) Old Version New Version Make Only
aur/anbox-modules-dkms 5.19-1 No
:: Proceed to review? [Y/n]: Y
:: Downloading PKGBUILDs...
(1/1) anbox-modules-dkms-5.19-1 [--------------------------------------------]
/home/erw1/.cache/paru/clone/anbox-modules-dkms/PKGBUILD
# Maintainer: Sick Codes <info at sick dot codes>
# Maintainer: Christian Hoff <https://github.com/choff>
# Contributor: Tobias Martin <tm-x at gmx dot net>
pkgname=anbox-modules-dkms
_pkgname=anbox-modules
pkgver=5.19
arch="$(uname -r)"
url='https://github.com/choff/anbox-modules'
pkgrel=1
pkgdesc='Android kernel driver fork by @choff (binder/binderfs & ashmem) in DKMS format'
arch=('x86_64' 'aarch64' 'i386')
license=('GPL3')
provides=("${pkgname}")
depends=('dkms')
makedepends=('git')
source=("git+https://github.com/choff/${_pkgname}.git#commit=8148a162755bf5500a07cf41a65a02c8f3eb0a>
"https://github.com/sickcodes/anbox-modules/commit/7c19d3c66758747d854c63e4c34ef127ce201fa6.patch"
"https://github.com/choff/anbox-modules/pull/4.patch"
"linux-6.patch")
sha256sums=('SKIP'
'7589f311fd9a503c30a214b54f1f687c26a2f160d4339098c65f655e9b1e3556'
'fced11f849692dd1f0f36b50bb859d85aa244a536c2cef529a14bb73f568bb5e'
:: Proceed with installation? [Y/n]: Y
[sudo] password for erw1:
resolving dependencies...
looking for conflicting packages...
Package (1) New Version Net Change Download Size
extra/dkms 3.0.10-1 0.11 MiB 0.04 MiB
Total Download Size: 0.04 MiB
Total Installed Size: 0.11 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
dkms-3.0.10-1-any 37.5 KiB 25.9 KiB/s 00:01 [--------------------------------] 100%
(1/1) checking keys in keyring [--------------------------------] 100%
(1/1) checking package integrity [--------------------------------] 100%
(1/1) loading package files [--------------------------------] 100%
(1/1) checking for file conflicts [--------------------------------] 100%
:: Processing package changes...
(1/1) installing dkms [--------------------------------] 100%
Optional dependencies for dkms
linux-headers: build modules against the Arch kernel [installed]
linux-lts-headers: build modules against the LTS kernel
linux-zen-headers: build modules against the ZEN kernel
linux-hardened-headers: build modules against the HARDENED kernel
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
fetching devel info...
==> Making package: anbox-modules-dkms 5.19-1 (Fri 03 Mar 2023 10:08:38 PM EST)
==> Retrieving sources...
-> Cloning anbox-modules git repo...
Cloning into bare repository '/home/erw1/.cache/paru/clone/anbox-modules-dkms/anbox-modules'...
remote: Enumerating objects: 231, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 231 (delta 32), reused 20 (delta 11), pack-reused 176
Receiving objects: 100% (231/231), 199.88 KiB | 2.10 MiB/s, done.
Resolving deltas: 100% (104/104), done.
-> Downloading 7c19d3c66758747d854c63e4c34ef127ce201fa6.patch...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3188 100 3188 0 0 11962 0 --:--:-- --:--:-- --:--:-- 12075
-> Downloading 4.patch...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3648 0 3648 0 0 2001 0 --:--:-- 0:00:01 --:--:-- 11580
-> Found linux-6.patch
==> Validating source files with sha256sums...
anbox-modules ... Skipped
7c19d3c66758747d854c63e4c34ef127ce201fa6.patch ... Passed
4.patch ... Passed
linux-6.patch ... Skipped
==> Making package: anbox-modules-dkms 5.19-1 (Fri 03 Mar 2023 10:08:45 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating anbox-modules git repo...
-> Found 7c19d3c66758747d854c63e4c34ef127ce201fa6.patch
-> Found 4.patch
-> Found linux-6.patch
==> Validating source files with sha256sums...
anbox-modules ... Skipped
7c19d3c66758747d854c63e4c34ef127ce201fa6.patch ... Passed
4.patch ... Passed
linux-6.patch ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Creating working copy of anbox-modules git repo...
Cloning into 'anbox-modules'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file binder/binder.c
patching file binder/binder.c
patching file binder/deps.c
Hunk #2 succeeded at 69 (offset -1 lines).
Hunk #3 succeeded at 89 (offset -1 lines).
patching file binder/binder.c
patching file binder/deps.c
Hunk #1 succeeded at 69 (offset -1 lines).
patching file ashmem/ashmem.c
patching file binder/binder_alloc.c
==> Sources are ready.
anbox-modules-dkms-5.19-1: parsing pkg list...
==> Making package: anbox-modules-dkms 5.19-1 (Fri 03 Mar 2023 10:08:54 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Entering fakeroot environment...
==> Starting package()...
make -C /lib/modules/6.2.2-arch1-1/build V=0 M=$PWD
CC [M] /home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/deps.o
CC [M] /home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/binder.o
/home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/binder.c: In function ‘binder_wait_for_work’:
/home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/binder.c:4112:9: error: implicit declaration of function ‘freezer_do_not_count’ [-Werror=implicit-function-declaration]
4112 | freezer_do_not_count();
| ^~~~~~~~~~~~~~~~~~~~
/home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/binder.c:4132:9: error: implicit declaration of function ‘freezer_count’; did you mean ‘preempt_count’? [-Werror=implicit-function-declaration]
4132 | freezer_count();
| ^~~~~~~~~~~~~
| preempt_count
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:252: /home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder/binder.o] Error 1
make[1]: *** [Makefile:2021: /home/erw1/.cache/paru/clone/anbox-modules-dkms/src/anbox-modules/binder] Error 2
make: *** [Makefile:8: all] Error 2
==> ERROR: A failure occurred in package().
Aborting...
error: failed to build 'anbox-modules-dkms-5.19-1':
error: packages failed to build: anbox-modules-dkms-5.19-1
Package (1) New Version Net Change Download Size
extra/linux-zen 6.2.2.zen1-1 180.88 MiB 180.48 MiB
Total Download Size: 180.48 MiB
Total Installed Size: 180.88 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
linux-zen-6.2.2.zen1-1-x86_64 180.5 MiB 25.9 MiB/s 00:07 [--------------------------------] 100%
(1/1) checking keys in keyring [--------------------------------] 100%
(1/1) checking package integrity [--------------------------------] 100%
(1/1) loading package files [--------------------------------] 100%
(1/1) checking for file conflicts [--------------------------------] 100%
:: Processing package changes...
(1/1) installing linux-zen [--------------------------------] 100%
Optional dependencies for linux-zen
wireless-regdb: to set the correct wireless channels of your country [installed]
linux-firmware: firmware images needed for some devices [installed]
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: 6.2.2-zen1-1-zen
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
-> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: 6.2.2-zen1-1-zen
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img
==> Image generation successful
What can I do?