Compilation error when installing on Drupal8
It turns out this compilation error is related to composer versions:

Using default composer version of 1.10 on Ubuntu 20.04 produces this fatal error.
Manually upgrading to composer 2.0 resolves this issue.