I built all successfully.
My host Ubuntu kernel version is 5.19.
It seems that the mmap of the host linux kernel might not be compatible with Android runtime source.
The link mentions kernel 5.18.
For the explanation, please check the links below.
https://groups.google.com/g/android-building/c/ZfUQQWt_ABI
Workaround for mmap error when building.
https://android-review.googlesource.com/c/platform/art/+/2226578
( modify art/runtime/mem_map.cc )
BTW, The Google Play is not available in the self built images?
Is that available in Khadas official images only?
Thanks,