I tried building Bazel on my machine in a chroot with QEMU user mode, with
16GB of RAM. The build seemed to fail at the same point it did on the
buildd's, indeed due to running out of memory:
By the way, trying to rebuild 3.5.1 fails when cleaning with
rm -f output
/bin/rm: cannot remove 'output': Is a directory