freedreno build error - freedreno_log.c:58:33: error: initializer element is not constant
freedreno fails to build on arm64 on Ubuntu 18.04. It builds fine in Ubuntu 19.10 and 20.04.
Full build log:
https://launchpadlibrarian.net/471882517/buildlog_ubuntu-bionic-arm64.mesa_20.1git2003310730.6e6720oibaf~b_BUILDING.txt.gz
Error:
../src/gallium/drivers/freedreno/freedreno_log.c:58:33: error: initializer element is not constant
const unsigned msgs_per_chunk = bo_size / sizeof(uint64_t);
^~~~~~~