Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2023 08:31:24 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD Mailing List <freebsd-ports@freebsd.org>, freebsd-arm@freebsd.org
Subject:   Improving www/chromium build time on arm64
Message-ID:  <CAFDf7U%2B1p5HSEmXzSKU62ULgAevGK-g93nBqix2hzafEDs4F-Q@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--0000000000008b4bd305fc57600e
Content-Type: text/plain; charset="UTF-8"

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)

--0000000000008b4bd305fc57600e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello all,<div><br></div><div>I&#39;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.</div><div>chromium pkg isn&#39;t availab=
le for arm64 and I didn&#39;t found error log at=C2=A0<a href=3D"https://pk=
g-status.freebsd.org/">https://pkg-status.freebsd.org/</a>; so I decided to =
build it on poudriere.</div><div><br></div><div>It fails to build around 70=
% but my biggest concern is build time: 27 hours for 70% compilation!</div>=
<div><br></div><div>Just for comparison:</div><div>llvm15: 12h</div><div>ru=
st: 9h</div><div>firefox: 6h</div><div><br></div><div>rip4 v1.5 8GB @ 2000H=
z ~62 Celsius</div><div>zfs</div><div>poudriere:</div><div>USE_TMPFS=3Dno<b=
r></div><div>PARALLEL_JOBS=3D1<br></div><div>ALLOW_MAKE_JOBS=3Dyes<br></div=
><div><br></div><div>Any hints on how to speed build? ccache?</div><div>Doe=
s cflags &quot;-O -pipe&quot; not present in compilation is related to buil=
d time?=C2=A0<br></div><div><br></div><div>Full log:</div><div><a href=3D"h=
ttps://people.freebsd.org/~eduardo/logs/chromium/chromium-113.0.5672.126.lo=
g">https://people.freebsd.org/~eduardo/logs/chromium/chromium-113.0.5672.12=
6.log</a><br></div><div><br></div><div>Thanks!</div><div><br></div><div>---=
<br></div><div>&lt;SNIP&gt;</div><div>In file included from ../../base/chec=
k.h:11:<br>../../base/compiler_specific.h:8:10: fatal error: &#39;build/bui=
ld_config.h&#39; file not found<br>#include &quot;build/build_config.h&quot=
;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~~~~~~~~<br>1 error ge=
nerated.<br>ninja: build stopped: subcommand failed.<br>=3D=3D=3D&gt; Compi=
lation failed unexpectedly.<br>Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuil=
d before reporting the failure to<br>the maintainer.<br>*** Error code 1<br=
><br>Stop.<br>make: stopped in /usr/ports/www/chromium<br>build of www/chro=
mium | chromium-113.0.5672.126 ended at Tue May 23 02:22:56 WEST 2023<br>bu=
ild time: 27:15:37<br>!!! build failure encountered !!!<br></div><div><div>=
---</div><span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"l=
tr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=
=3D"ltr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Co=
mmitter (ports)</span></div></div></div></div>

--0000000000008b4bd305fc57600e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7U%2B1p5HSEmXzSKU62ULgAevGK-g93nBqix2hzafEDs4F-Q>