Improving www/chromium build time on arm64

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Tue, 23 May 2023 07:31:24 UTC
Hello all,

I'm running 13-STABLE on rpi4 8 and since firefox{-esr} is constantly tab
crashing and seg faulting I decided to give chromium a try.
chromium pkg isn't available for arm64 and I didn't found error log at
https://pkg-status.freebsd.org/ so I decided to build it on poudriere.

It fails to build around 70% but my biggest concern is build time: 27 hours
for 70% compilation!

Just for comparison:
llvm15: 12h
rust: 9h
firefox: 6h

rip4 v1.5 8GB @ 2000Hz ~62 Celsius
zfs
poudriere:
USE_TMPFS=no
PARALLEL_JOBS=1
ALLOW_MAKE_JOBS=yes

Any hints on how to speed build? ccache?
Does cflags "-O -pipe" not present in compilation is related to build time?

Full log:
https://people.freebsd.org/~eduardo/logs/chromium/chromium-113.0.5672.126.log

Thanks!

---
<SNIP>
In file included from ../../base/check.h:11:
../../base/compiler_specific.h:8:10: fatal error: 'build/build_config.h'
file not found
#include "build/build_config.h"
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/chromium
build of www/chromium | chromium-113.0.5672.126 ended at Tue May 23
02:22:56 WEST 2023
build time: 27:15:37
!!! build failure encountered !!!
---
-- 
Nuno Teixeira
FreeBSD Committer (ports)