Try enabling LTO. Test built for me on armv7h but not on aarch64. While
it didn't error out, it did simply stop:
...
INSTALL build/kodi-rpi-git/src/kodi-build/build/ffmpeg/src/ffmpeg/libavutil/tx.h
INSTALL build/kodi-rpi-git/src/kodi-build/build/ffmpeg/src/ffmpeg/libavutil/film_grain_params.h
INSTALL libavutil/avconfig.h
INSTALL libavutil/ffversion.h
INSTALL libavutil/libavutil.pc
(no further output after the above line)
It seems that kodi now requires pipewire not just libpipewire. Without it,
it coredumps upon launching. Adding the following to /etc/conf.d/kodi-standalone
gives some insights in journalctl: PIPEWIRE_DEBUG=4
kodi-standalone[1920]: [D] pw.context [pipewire.c:229 load_spa_handle()] load lib:'support/libspa-support' factory-name:'support.log'
kodi-standalone[1920]: [D] pw.context [pipewire.c:113 open_plugin()] can't load /usr/lib/spa-0.2/support/libspa-support.so: /usr/lib/spa-0.2/support/libspa-support.so: cannot open shared object file: No such file or directory
kodi-standalone[1920]: [D] pw.context [pipewire.c:229 load_spa_handle()] load lib:'support/libspa-journal' factory-name:'support.log'
kodi-standalone[1920]: [D] pw.context [pipewire.c:113 open_plugin()] can't load /usr/lib/spa-0.2/support/libspa-journal.so: /usr/lib/spa-0.2/support/libspa-journal.so: cannot open shared object file: No such file or directory
kodi-standalone[1920]: [D] pw.context [pipewire.c:229 load_spa_handle()] load lib:'support/libspa-support' factory-name:'support.cpu'
kodi-standalone[1920]: [D] pw.context [pipewire.c:113 open_plugin()] can't load /usr/lib/spa-0.2/support/libspa-support.so: /usr/lib/spa-0.2/support/libspa-support.so: cannot open shared object file: No such file or directory
kodi-standalone[1920]: [I] pw.context [pipewire.c:647 pw_init()] version 0.3.70
kodi-standalone[1920]: [D] pw.thread-loop [thread-loop.c:145 loop_new()] 0x55d4113840: new name:pipewire
kodi-standalone[1920]: [D] pw.context [pipewire.c:229 load_spa_handle()] load lib:'support/libspa-support' factory-name:'support.system'
kodi-standalone[1920]: [D] pw.context [pipewire.c:113 open_plugin()] can't load /usr/lib/spa-0.2/support/libspa-support.so: /usr/lib/spa-0.2/support/libspa-support.so: cannot open shared object file: No such file or directory
kodi-standalone[1920]: [E] pw.loop [loop.c:67 pw_loop_new()] 0x55d42460c0: can't make support.system handle: No such file or directory
kodi-standalone[1920]: terminate called after throwing an instance of 'std::runtime_error'
kodi-standalone[1920]: what(): CPipewireThreadLoop: failed to create main loop
That lib is provided by pipewire so add it to depends.