Date: Mon, 15 Nov 2021 19:40:58 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Mark Millard <marklmi@yahoo.com> Cc: "brooks@freebsd.org" <brooks@FreeBSD.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, freebsd-current <freebsd-current@freebsd.org>, freebsd-ports@freebsd.org, "freebsd-arm@freebsd.org" <arm@freebsd.org> Subject: Re: armv7 targeting (on aarch64, via poudriere-devel): system's clang 13 rejected building devel/lllvm13 Message-ID: <91AD337B-6D40-4639-A43C-688699981167@FreeBSD.org> In-Reply-To: <15A74B79-47CF-4743-A831-D7C0E9B1DD0E@yahoo.com> References: <15A74B79-47CF-4743-A831-D7C0E9B1DD0E.ref@yahoo.com> <15A74B79-47CF-4743-A831-D7C0E9B1DD0E@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_73807854-0A8A-41CA-A301-8309F9FC216B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 15 Nov 2021, at 19:14, Mark Millard via arm <arm@freebsd.org> wrote: >=20 > There error was: >=20 > error: non-constant-expression cannot be narrowed from type 'long = long' to 'std::size_t' (aka 'unsi > gned int') in initializer list [-Wc++11-narrowing] > std::size_t resultBytes{size * elementBytes}; > ^~~~~~~~~~~~~~~~~~~ > = /wrkdirs/usr/ports/devel/llvm13/work/llvm-project-13.0.0.src/flang/runtime= /misc-intrinsic.cpp:50:27: note: insert an explicit cast to silence this = issue > std::size_t resultBytes{size * elementBytes}; > ^~~~~~~~~~~~~~~~~~~ > static_cast<size_t>( ) The flang subproject does quite a lot of mixing of size_t and uint64_t, = assuming in various places that they are the same. You will also = encounter similar errors when attempting to build it for e.g. i386, or = other 32 bit architectures. I think it is quite a lot of work to get all = of these right, and it should really be discussed upstream. So for now, I would advise to only turn on the flang option for amd64 by = default. -Dimitry --Apple-Mail=_73807854-0A8A-41CA-A301-8309F9FC216B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYZKpugAKCRCwXqMKLiCW o68qAKDP8WfByS2UovTvl8L2lHFYdYuBFwCgqi2aK0EdPp2/jZ8CuDTUGX2s+Bg= =xxGf -----END PGP SIGNATURE----- --Apple-Mail=_73807854-0A8A-41CA-A301-8309F9FC216B--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?91AD337B-6D40-4639-A43C-688699981167>