TCMalloc assumes a 48-bit virtual address space size; you may need to rebuild TCMalloc with TCMALLOC_ADDRESS_BITS
The issue:
16725 external/com_google_tcmalloc/tcmalloc/system-alloc.cc:769] MmapAligned() failed - unable to allocate with tag (hint=0x2d8200000000, size=1073741824, alignment=1073741824) - is something limiting address placement? 16725 external/com_google_tcmalloc/tcmalloc/system-alloc.cc:776] Note: the allocation may have failed because TCMalloc assumes a 48-bit virtual address space size; you may need to rebuild TCMalloc with TCMALLOC_ADDRESS_BITS defined to your system's virtual address space size 16725 external/com_google_tcmalloc/tcmalloc/arena.cc:56] CHECK in Alloc: FATAL ERROR: Out of memory trying to allocate internal tcmalloc data (bytes=131072, object-size=16384); is something preventing mmap from succeeding (sandbox, VSS limitations)?
My system: Termux on android with glibc enabled
Please address the issue and try to make a build for termux on android officially
Source: cloudflare/workerd