Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 2021 23:36:00 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        Kevin Oberman <rkoberman@gmail.com>, FreeBSD ports <freebsd-ports@freebsd.org>
Subject:   Re: Large builds with poudriere
Message-ID:  <20210520233600.GH60173@spindle.one-eyed-alien.net>
In-Reply-To: <51FBF726-0FD7-43CA-98D4-F24B5AE5D974@yahoo.com>
References:  <51FBF726-0FD7-43CA-98D4-F24B5AE5D974.ref@yahoo.com> <51FBF726-0FD7-43CA-98D4-F24B5AE5D974@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <marklmi at yahoo.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210520233600.GH60173>