From nobody Mon Nov 15 18:40:58 2021 X-Original-To: freebsd-current@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 065551850EF3; Mon, 15 Nov 2021 18:41:06 +0000 (UTC) (envelope-from dim@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 4HtJ1F6dG8z3vPC; Mon, 15 Nov 2021 18:41:05 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id A724C270E2; Mon, 15 Nov 2021 18:41:05 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id BECB05A022; Mon, 15 Nov 2021 19:41:03 +0100 (CET) From: Dimitry Andric Message-Id: <91AD337B-6D40-4639-A43C-688699981167@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_73807854-0A8A-41CA-A301-8309F9FC216B"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: armv7 targeting (on aarch64, via poudriere-devel): system's clang 13 rejected building devel/lllvm13 Date: Mon, 15 Nov 2021 19:40:58 +0100 In-Reply-To: <15A74B79-47CF-4743-A831-D7C0E9B1DD0E@yahoo.com> Cc: "brooks@freebsd.org" , FreeBSD Toolchain , freebsd-current , freebsd-ports@freebsd.org, "freebsd-arm@freebsd.org" To: Mark Millard References: <15A74B79-47CF-4743-A831-D7C0E9B1DD0E.ref@yahoo.com> <15A74B79-47CF-4743-A831-D7C0E9B1DD0E@yahoo.com> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-ThisMailContainsUnwantedMimeParts: N --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 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( ) 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--