Just as an FYI for anyone (like me) ignoring the advice to build in an Ubuntu container!
Using gawk version 5 on Arch Linux x86_64 building for Rpi4, the build fails (master, checked out to version 9.1.501) for libgpg-error with:
gawk: fatal: cannot use gawk builtin `namespace' as variable name
make[3]: *** [Makefile:1617: errnos-sym.h] Error 2
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/mnt/hdd/crypt/sdc7/simon/git/http://LibreELEC.tv/build.LibreELEC-RPi4.arm-9.1-devel/libgpg-error-1.36/.armv8a-libreelec-linux-gnueabi/src'
make[2]: *** [Makefile:509: all-recursive] Error 1
make[2]: Leaving directory '/mnt/hdd/crypt/sdc7/simon/git/http://LibreELEC.tv/build.LibreELEC-RPi4.arm-9.1-devel/libgpg-error-1.36/.armv8a-libreelec-linux-gnueabi'
make[1]: *** [Makefile:441: all] Error 2
make[1]: Leaving directory '/mnt/hdd/crypt/sdc7/simon/git/http://LibreELEC.tv/build.LibreELEC-RPi4.arm-9.1-devel/libgpg-error-1.36/.armv8a-libreelec-linux-gnueabi'
FAILURE: scripts/install libgpg-error has failed!
[208/251] [FAIL] install libgpg-error
Downgrading gawk to version 4.2.1 fixed this particular issue.