From owner-freebsd-ports@freebsd.org Thu May 20 23:36:08 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5057664B2DB for ; Thu, 20 May 2021 23:36:08 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FmR2H4M1Sz4X8v for ; Thu, 20 May 2021 23:36:07 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id DFC803C0199; Thu, 20 May 2021 23:36:00 +0000 (UTC) Date: Thu, 20 May 2021 23:36:00 +0000 From: Brooks Davis To: Mark Millard Cc: Kevin Oberman , FreeBSD ports Subject: Re: Large builds with poudriere Message-ID: <20210520233600.GH60173@spindle.one-eyed-alien.net> References: <51FBF726-0FD7-43CA-98D4-F24B5AE5D974.ref@yahoo.com> <51FBF726-0FD7-43CA-98D4-F24B5AE5D974@yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vmttodhTwj0NAgWp" Content-Disposition: inline In-Reply-To: <51FBF726-0FD7-43CA-98D4-F24B5AE5D974@yahoo.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Rspamd-Queue-Id: 4FmR2H4M1Sz4X8v X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of brooks@spindle.one-eyed-alien.net has no SPF policy when checking 199.48.129.229) smtp.mailfrom=brooks@spindle.one-eyed-alien.net X-Spamd-Result: default: False [0.09 / 15.00]; ARC_NA(0.00)[]; FORGED_SENDER(0.30)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; FREEFALL_USER(0.00)[brooks]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[freebsd.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[199.48.129.229:from]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[199.48.129.229:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_SPAM_LONG(0.99)[0.992]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[yahoo.com]; RCVD_COUNT_ZERO(0.00)[0]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:36236, ipnet:199.48.128.0/22, country:US]; FROM_NEQ_ENVFROM(0.00)[brooks@freebsd.org,brooks@spindle.one-eyed-alien.net]; MAILMAN_DEST(0.00)[freebsd-ports]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2021 23:36:08 -0000 --vmttodhTwj0NAgWp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 20, 2021 at 03:09:32PM -0700, Mark Millard wrote: > Kevin Oberman rkoberman at gmail.com wrote on > Thu May 20 21:37:28 UTC 2021 : >=20 > > On Thu, May 20, 2021 at 12:48 PM Mark Millard wr= ote: > >=20 > > > Kevin Oberman rkoberman at gmail.com wrote on > > > Thu May 20 19:21:24 UTC 2021 : > > > > > > > You can greatly reduce the build-time for devel/llvm* by changing t= he > > > > config to BE_NATIVE to avoid building backends for all FreeBSD supp= orted > > > > platforms. Obviously this is not acceptable for many cases, but if = you > > > > never cross-compile for other platforms, it's a really big win. > > > > > > > > > Unfortunately, using something like (llvm10 is just one example, > > > llvm11 showed the same sort of problem at the time): > > > > > > /usr/local/etc/poudriere.d/options/devel_llvm10/options:_FILE_COMPLET= E_OPTIONS_LIST=3DBE_AMDGPU > > > CLANG DOCS EXTRAS LIT LLD LLDB LLD_LINK OPENMP PYCLANG BE_FREEBSD BE_= NATIVE > > > BE_STANDARD > > > > > > /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_= SET+=3DBE_AMDGPU > > > > > > /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_= UNSET+=3DBE_FREEBSD > > > > > > /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_= SET+=3DBE_NATIVE > > > > > > /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_= UNSET+=3DBE_STANDARD > > > > > > does not work for all platforms/targets. On a Cortex-A57 > > > this lead to: > > > > > > Registered Targets: > > > amdgcn - AMD GCN GPUs > > > r600 - AMD GPUs HD2XXX-HD6XXX > > > > > > In other words, aarch64 was missing. I had to pick > > > BE_STANDARD or BE_FREEBSD to get something that > > > would target aarch64 on aarch64. > > > > > > =3D=3D=3D > > > Mark Millard > > > marklmi at yahoo.com > > > ( dsl-only.net went > > > away in early 2018-Mar) > > > > > Looks like the Makefile might need some work. I see stuff for handling > > aach64/arm64, so it SHOULD work, but there are things I don't understand > > about AARCH64 to figure it all out. Still, it should be detected. > >=20 > > Out of curiosity, if you do a "make -C /usr/ports/devel/llvm10 config", > > the line for BE_NATIVE should show the architecture you are running on.= If > > it's missing/something else, maybe you should ask brooks@ about it. >=20 >=20 > On two types of Cortex-A72 context > # make -C /usr/ports/devel/llvm10 config >=20 > produced: >=20 > BE_NATIVE Backend(s) for this architecture () >=20 > The same for each of: >=20 > # make -C /usr/ports/devel/llvm80 config > # make -C /usr/ports/devel/llvm90 config > # make -C /usr/ports/devel/llvm11 config > # make -C /usr/ports/devel/llvm12 config >=20 > But this turns out to be because: >=20 > # make -C /usr/ports/devel/llvm10 -V ARCH > aarch64 >=20 > yet the Makefiles have a test for arm64 instead: >=20 > .elif ${ARCH} =3D=3D arm64 > _NATIVE_BACKENDS=3D AAarch64 Ah, that's the key point. I've fixed the ARCH value and fixed the spelling of AArch64 in older ports where it was wrong. -- Brooks --vmttodhTwj0NAgWp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJgpvJgAAoJEKzQXbSebgfAHFMIAKZVI/4aFFFAwkl6eRCy6nYC MlYxg0qK9wWQIdk3O5xzftrMJH2f8x+4ulggJ08kGpd1XNBcLsRzSq4FkffhJ9Iy CaeDyU7MElyykEh3P+M9WQ14R3FIRjza4+KkL1lNIbe2h+Fq5QiYUhCAIH7cd+Lc yC8FenAPMCL7lDnToHk+y4nT/2kYeE5E0wnwr7SBp8kP6iBfUceBFUxlZVsA5oXt oBNM5B3EAz4HTqnNl8MQdzGpbZ2nYn514vl/RkK9QCeKl7xStBim/yj4TVeHa7BL 4td/d8BjJs6wcVMPxGdKi0eQVPFRXVOM7Yfyh8BfDfpeX+XqYzrwzPzzQ+/CrUc= =lzup -----END PGP SIGNATURE----- --vmttodhTwj0NAgWp--