From nobody Tue May 23 07:31:24 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QQQx50yVmz4TBnS; Tue, 23 May 2023 07:31:37 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QQQx50RBYz4CgC; Tue, 23 May 2023 07:31:37 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684827097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=oYSaeE3Bsu2n44V+Kf2gmTKb/OzZg8tn3WkjfeDJIEo=; b=JSPOLD6166Zx/VVgYb814WK+4mK52otZCtIx0W300mLj9q1BFQ+Zl2KtAmu+vOs7Bq0d6j jZ4lQOV08I6CA9Un2Car934F7nV/0C4se7UkFvKr/wlY8/pti7eDyONDEYnODYfVuxOV3g bzUv+UI8RSVXvPbVIa6xbOydbpVwhWeq7kr/U/YPuoMAGK9mM8x4eL4RUfy370XUnMkLzV YvNfl/3fkPD5lvcunN2bwVVKd4Z8gVTlgYObzAG+RCWdreCAPIweySgzx8DTK41xSGlSCC +pJWXLgm6YBI6jwNGN2l8WT3k9MI9QmlntjHTIvdItB2+6qkkRgybZM+VmL4IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684827097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=oYSaeE3Bsu2n44V+Kf2gmTKb/OzZg8tn3WkjfeDJIEo=; b=E7s32t4WuNFXSfC030iZGY0Pmc7wJDlJLahX6qefG/OsktS4Sm5HkEt2rdG8kheVhoz+ba Uon7LBzlNxKCWkr+cAh9uRj0BlVWfJ53qF+ECNgLJhpzT8HjlsuWsx2bMIOtOAXFFhC5r3 z+LHE2x8YeFmQ2gBfDBaMLk2hujwRu+FhHCPYEUjaO1J3VJpgwmXbaM7HZE80Szj4QRmcv aFTUwgUE7EfjLor5Cb3re+uTKAW9WuF+mC3bl/JaLqD8mJxVlohLKiAV1p2ilsMK0fEWGF /zLDDeCVwXCOKPQ3b8bw+i41H+mfY5nOOeyt4muPiRY/pNlNveWdifFvf1g/rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684827097; a=rsa-sha256; cv=none; b=gBybLywNyokVWkN3dxmEnfuyuhUOBh8tJvg6tpAGMfZ7zLl+42uJRcnhRm7vJnFWeK3BCC a8r0eVTdZ56LBiMeZDUyOcbVsdam4Np0KsJx/o8sTTlvvQfa3M5GZ57HsbWDkNaCWEDSH/ 7cj/R7WdVmnq2rhb+2xdT7aL8RN9QU7MsIUEcmb9KxPIrwUIEwiKni+GG6ocUaz+vi//0e KNbIWRqjCEN8Ce/dq6/UqrI8NOqsZJWNWMKm0+nXCiuN/kT0PxjXd5lIkeeAar4fOacyyH VeawvbVZpBD+UWbZOSmZ/WJdMyhtbSW4C3qAxEm8zKVMVvQBg3rTsaKHGBfp5A== Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QQQx46VkZzQVH; Tue, 23 May 2023 07:31:36 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-528dd896165so4941856a12.2; Tue, 23 May 2023 00:31:36 -0700 (PDT) X-Gm-Message-State: AC+VfDxDlaP6NoGo1z80K+2eJpKfw5vCFAcEP5KFdCMyGyzs8a+LCjbn TolTmAsCRg+JcVoBmo5J3ZfJ58TkesFgH9Flcro= X-Google-Smtp-Source: ACHHUZ6OeE0AAUQhTCk4+47yKvLDea9Yq1FYDbTtoODmyjyPdq+J1yrPQ8pLu6fX/Ng9zB3gsYuLZAShNWGGrZXoxtc= X-Received: by 2002:a17:90a:4ec5:b0:250:acb7:21da with SMTP id v5-20020a17090a4ec500b00250acb721damr12947163pjl.38.1684827095646; Tue, 23 May 2023 00:31:35 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 From: Nuno Teixeira Date: Tue, 23 May 2023 08:31:24 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Improving www/chromium build time on arm64 To: FreeBSD Mailing List , freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="0000000000008b4bd305fc57600e" X-ThisMailContainsUnwantedMimeParts: N --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! --- 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
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 availab= le for arm64 and I didn't found error log at=C2=A0https://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
ru= st: 9h
firefox: 6h

rip4 v1.5 8GB @ 2000H= z ~62 Celsius
zfs
poudriere:
USE_TMPFS=3Dno
PARALLEL_JOBS=3D1
ALLOW_MAKE_JOBS=3Dyes

Any hints on how to speed build? ccache?
Doe= s cflags "-O -pipe" not present in compilation is related to buil= d time?=C2=A0

Full log:

Thanks!

---=
<SNIP>
In file included from ../../base/chec= k.h:11:
../../base/compiler_specific.h:8:10: fatal error: 'build/bui= ld_config.h' file not found
#include "build/build_config.h"= ;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~~~~~~~~
1 error ge= nerated.
ninja: build stopped: subcommand failed.
=3D=3D=3D> Compi= lation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuil= d before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/ports/www/chromium
build of www/chro= mium | chromium-113.0.5672.126 ended at Tue May 23 02:22:56 WEST 2023
bu= ild time: 27:15:37
!!! build failure encountered !!!
= ---
--
Nuno Teixeira
FreeBSD Co= mmitter (ports)
--0000000000008b4bd305fc57600e--