From nobody Tue May 23 07:48:17 2023 X-Original-To: freebsd-arm@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 4QQRJZ60SPz4TCsg; Tue, 23 May 2023 07:48:30 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4QQRJZ4Kxnz4FxC; Tue, 23 May 2023 07:48:30 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684828110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4wMabLpJAjWS3we6GyL0EqZvoGhLb/Jo7ACkHrb++bE=; b=a7oJeWNShF0NJ9WlGp+FdPUb2jzELxsaYSJeN6De0EKmD+UyX1dW3nmPhzHlpiaqEqNYys 5H9r+DhUAPO0cg+tEGkCicWBfJjNlAnLRDQ2bfZU7dFFePvV8jXT3y3KDX1XtCw2oVDE6p dEG6cpRSe1Fb7f7CdP0rwfrA0jpZB1DZdJwEhmfg67KMejkUJGhf0863MSXwCLtOM9ZDsY 8vHgo0BQHxLE1r+u3hm/7Gv9llAM73FyoMhUPB76zvJwB91XkAsCwYKZCbI6p7bapthfMp sKuzGew0OqQH+mY91U2Y9KfmgD9k+CHly7IuKj+zM26Qtyg6m2Qg0jnGOSGRww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684828110; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4wMabLpJAjWS3we6GyL0EqZvoGhLb/Jo7ACkHrb++bE=; b=szFntrx6NfIX6ppzVr9QCreuqjdjmpO9lwIQB0lLag52AejBOljGYyd4vTpHwRIMD9UKqX kuCdIhnqt8B7LxBpdj7p2Sipk8iY5y8w++VbH4NBHd/UO3fEZ04FCYZ4yIbJzUXsRpQIxN Vr78Kpr93i1VmIDZQyzKAIO2zRP5tIEF+k67hYdElWLlRUXGToEyhgTOCeNRhkOGfewe+m YTuPWE/wJsw4zviOmL5/tPzPEnsQMnd6NaxdRMoAq6w0IUJkBlLtD6Zwsv7vG8AwnICrTV veF8+2OxQ2VDyjXVR9VWlLfalGSQdhW90CqEzO0kKVRW+bHcGKR10Gf2pzUtwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684828110; a=rsa-sha256; cv=none; b=TX5BMo1k8crboSs5SoiJ+4+HvfSmeRmz0F2BqriFlEA4gNanGwkjzIa2e7MpG5Lj7LzTGp /PSmIohUwbRjo5TUi3oy5KrhJPomE857cuuRLjAlOgxy5l8LZ0uk830u7Dmb8dd/6hqEgL oJSwEXbKngQzO92EDn4tJSrvp1lc/58jJB8WwFQjkG2TUrYAq9h/HkysSOwNaFNgvVs4oU oh3BUsFtdQBsGPLSNBOrHoI8TJxUlJGc0h740rbqtMnbXOkeVfIAfLo18I/zDf0uaZONHc +IGFS+PJgk9V2fR2na9cdZ46tdM2erc2rfX/D/BrwmPYEKDaADzQU8vX12uoAQ== Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (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 4QQRJZ3KLbzQsg; Tue, 23 May 2023 07:48:30 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-5208be24dcbso4950343a12.1; Tue, 23 May 2023 00:48:30 -0700 (PDT) X-Gm-Message-State: AC+VfDz7P4zoLOeQDz8IWtVjl9abVPK3WzPIGUGEJqkckQRC/33hvOPb /O9kMXNTITv0DuKp8p0i0JgGMw1bIG6ddH0bGfU= X-Google-Smtp-Source: ACHHUZ4UFfJxDR5auv7MybISfoQAjcUX817MAbgQz3s4SCjrJzEi1B4/FKiKvDkcdg+5OgMhI83tgBTQbK9yZPizus4= X-Received: by 2002:a17:902:ea01:b0:1ab:267e:2f2d with SMTP id s1-20020a170902ea0100b001ab267e2f2dmr16990889plg.48.1684828108878; Tue, 23 May 2023 00:48:28 -0700 (PDT) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Nuno Teixeira Date: Tue, 23 May 2023 08:48:17 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Improving www/chromium build time on arm64 To: FreeBSD Mailing List , freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="000000000000effcf005fc579cf5" X-ThisMailContainsUnwantedMimeParts: N --000000000000effcf005fc579cf5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (...) But I also found that poudriere: [88:53:28] Failed ports: www/chromium:build/timeout So I will search how do I increase build time to avoid timeout: --- # This defines the max time (in seconds) that a command may run for a build # before it is killed for taking too long. Default: 86400 #MAX_EXECUTION_TIME=3D86400 --- I suspect it can be the cause of build failure because build >24h. Nuno Teixeira escreveu no dia ter=C3=A7a, 23/05/2023 = =C3=A0(s) 08:31: > 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=3Dno > PARALLEL_JOBS=3D1 > ALLOW_MAKE_JOBS=3Dyes > > 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. > =3D=3D=3D> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failur= e 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) > --=20 Nuno Teixeira FreeBSD Committer (ports) --000000000000effcf005fc579cf5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(...)

But I also found that poudriere:<= /div>
[88:53:28] Failed ports: www/chromium:build/timeout

So I will search how do I increase build time to avoid time= out:
---
# This defines the max time (in seconds) that = a command may run for a build
# before it is killed for taking too long.= Default: 86400
#MAX_EXECUTION_TIME=3D86400
---
=
I suspect it can be the cause of build failure because build= >24h.

Nuno Teixeira <ed= uardo@freebsd.org> escreveu no dia ter=C3=A7a, 23/05/2023 =C3=A0(s) = 08:31:
Hello all,

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

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

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

rip4 v1.5 8= GB @ 2000Hz ~62 Celsius
zfs
poudriere:
USE_TM= PFS=3Dno
PARALLEL_JOBS=3D1
ALLOW_MAKE_JOBS=3Dye= s

Any hints on how to speed build? ccache?
Does cflags "-O -pipe" not present in compilation is relat= ed to build time?=C2=A0

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

Thanks!<= /div>

---
<SNIP>
In file i= ncluded from ../../base/check.h:11:
../../base/compiler_specific.h:8:10:= fatal error: 'build/build_config.h' file not found
#include &qu= ot;build/build_config.h"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~= ~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand fa= iled.
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_= JOBS_UNSAFE=3Dyes and rebuild before reporting the failure to
the mainta= iner.
*** Error code 1

Stop.
make: stopped in /usr/ports/www/c= hromium
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 encount= ered !!!
---
--
<= div dir=3D"ltr">Nuno Teixeira
Fre= eBSD Committer (ports)


--
Nuno Teixeira
Free= BSD Committer (ports)
--000000000000effcf005fc579cf5--