Compiling: Build tools and dependencies fails



As instructed here, I am trying to cross-compile Kodi Omega build tools and dependencies for Android ARM architecture on latest Ubuntu 22.04.4 LTS jammy x86_64. Everything goes flawlessly until step no. 5, where after 15 minutes of compiling it fails here:

https://pastebin.com/zP4PKb65

I already tried to compile on another clean Ubuntu installation, but the result is the same.
Any help on how to troubleshoot would be very appreciated.
Thank you in advance!