This log message:
| Killed
suggests me it may be resource exhaustion on your VM, I saw such things in the past when builds were failing with mysterious errors just because of that. Adding resources to the VM or decreasing amount of threads and tasks in the local.conf always helped for such errors.
Default compilation settings in the uocto_build/conf/local.conf are rather aggressive and require something like at least 2 vCPU VM with 4GB vRAM (at least that's the config which worked for me and e.g. 2GB vRAM were failing). The easiest way to fix this type of errors is to tweak two variables in local.conf:
BB_NUMBER_THREADS = "12"
PARALLEL_MAKE = "-j 14"
The above are defaults, the rule of thumb is to set 2 threads and make processes per vCPU, that is safe conservative setting. WIth such settings 2GB vRAM worked fine for me, AFAIR.
As far as dependencies are concerned - the BSP Build Guide has them all, I didn't need anything else after carefully installing all what's mentioned there.
BTW, a while ago I've created a VM image, which has all the necessary prerequisites installed and checked to compile fine, check this thread out, maybe it will be of use for you: