From nobody Mon Nov 15 19:40:49 2021 X-Original-To: freebsd-toolchain@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 BDA31189EA54 for ; Mon, 15 Nov 2021 19:40:52 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HtKLC5bdbz4pLy for ; Mon, 15 Nov 2021 19:40:51 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637005250; bh=+p2DghXewEsz34Ggp03Hl7+aPLMgnqmo5G2xRC2m2vc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ijCk5eDfDZwZbSII8rPf3AJdQ1GkAy3YZ9MX+2Ix12fjpMPUWtgz6o6e6dYiRQA2QrigLkrKjmRZpXLnRFUH7nwSeNpNUG2X0bPmtNMBFTWimE/ifQyyZe7yaUl7b+aArxuLBN3n7rjo4qdo0z+n7Etrk8Bt97rZ5Qdlh2f6uK2n0o/d7BKtbKhWbnbDvLvU6ptXQLGD9pHJo+idBi/Wrs0T5QsXnn6MvXY8GQDBKhpcjz4BpHN0qNdGhmiKG+58zGQoRHvrTEpLm9RK5UhYXy0PcgoSc4Cmk7fiqxfcVQNvDYhBGNdApBBMPrbvYyehpzselNVHbU+rclrrXtfWsw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637005250; bh=4mf6UxGYgvbdjmhW6+3l+S1mIpkobCA3ZcdB0ZqPvWB=; h=X-Sonic-MF:Subject:From:Date:To:From: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GTOz_O9kIz S7MY7_6uTqiA4EIcAcZNIy01Z7BCjghlzPWHBwNHNiO7kreWmndUJ0DKEJ1gbfRJaG9W3sWMdDkU ZdZZRI74uJyrUWrSCm7TjeAk4UwOu2blRX2jGJbl7jQtEgJtuCTQoDh.LxmCSd3U38LasEBVUErM DCLp6pLjCYVFiNnfzMa1l3a0YDecpBpBZJyXn1tJP5FHeTE08PMzfZaS99HBXLt3jbe0ODg6rft_ WIIo6EJ50imok4T7ZILA39en7FuWBwl9UZs71ILaJCtrqdLjW0ysXzTvlf48MI.s1RNK.YWjCsUw nWX7N_mWyu7gNhNK78a.dKKafJdjmcN8o1MQ02pXCiGYjL_ffug_.UZgrdRdT3s15W1bzEVtZ0tD eudeuw9AsZwcWty08PjIyDLDtvBtDoe5W.kPYnUXZm4TaD1TKedqTC5kz6hRZR771ZQ1tF8iEu_5 CA0G_RippaQrqkltFa90OsjXI76zbV3Fob5UGt2L463nho2scPgT2gmMHNgBt2Inznc2HBjjLhNr bi1.qqirmVwAnAKQJWH56BHhDzC0- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Mon, 15 Nov 2021 19:40:50 +0000 Received: by kubenode548.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d01971386b38a54d52fdea58f2d7e88f; Mon, 15 Nov 2021 19:40:50 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@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 In-Reply-To: <3F3F1A2B-87E2-47CA-A9C6-BC65B71F1DE7@yahoo.com> Date: Mon, 15 Nov 2021 11:40:49 -0800 Cc: "brooks@freebsd.org" , FreeBSD Toolchain , freebsd-current , freebsd-ports@freebsd.org, "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <15A74B79-47CF-4743-A831-D7C0E9B1DD0E.ref@yahoo.com> <15A74B79-47CF-4743-A831-D7C0E9B1DD0E@yahoo.com> <91AD337B-6D40-4639-A43C-688699981167@FreeBSD.org> <3F3F1A2B-87E2-47CA-A9C6-BC65B71F1DE7@yahoo.com> To: Dimitry Andric X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4HtKLC5bdbz4pLy X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=ijCk5eDf; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-1.50 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; RCPT_COUNT_FIVE(0.00)[6]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.148:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.148:from]; RCVD_COUNT_TWO(0.00)[2] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-toolchain X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Nov-15, at 11:35, Mark Millard wrote: > On 2021-Nov-15, at 10:40, Dimitry Andric wrote: >=20 >> 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( ) >>=20 >> 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. >>=20 >> So for now, I would advise to only turn on the flang option for amd64 = by default. >=20 > flang was not being built: >=20 > # more /usr/local/etc/poudriere.d/options/devel_llvm13/options=20 > # This file is auto-generated by 'make config'. > # Options for llvm13-13.0.0 > _OPTIONS_READ=3Dllvm13-13.0.0 > _FILE_COMPLETE_OPTIONS_LIST=3DBE_AMDGPU CLANG DOCS EXTRAS FLANG LIT = LLD LLDB MLIR OPENMP PYCLANG BE_FREEBSD BE_NATIVE BE_STANDARD > OPTIONS_FILE_SET+=3DBE_AMDGPU > OPTIONS_FILE_SET+=3DCLANG > OPTIONS_FILE_SET+=3DDOCS > OPTIONS_FILE_SET+=3DEXTRAS > OPTIONS_FILE_UNSET+=3DFLANG > OPTIONS_FILE_SET+=3DLIT > OPTIONS_FILE_SET+=3DLLD > OPTIONS_FILE_SET+=3DLLDB > OPTIONS_FILE_SET+=3DMLIR > OPTIONS_FILE_UNSET+=3DOPENMP > OPTIONS_FILE_UNSET+=3DPYCLANG > OPTIONS_FILE_UNSET+=3DBE_FREEBSD > OPTIONS_FILE_SET+=3DBE_NATIVE > OPTIONS_FILE_UNSET+=3DBE_STANDARD >=20 Hmm. I got that wrong, somehow the above was not used. =46rom the log file: ---Begin OPTIONS List--- =3D=3D=3D> The following configuration options are available for = llvm13-13.0.0_2: BE_AMDGPU=3Don: AMD GPU backend (required by mesa) CLANG=3Don: Build clang DOCS=3Don: Build and/or install documentation EXTRAS=3Don: Extra clang tools FLANG=3Don: Flang FORTRAN compiler LIT=3Don: Install lit and FileCheck test tools LLD=3Don: Install lld, the LLVM linker LLDB=3Don: Install lldb, the LLVM debugger MLIR=3Don: Multi-Level Intermediate Representation PYCLANG=3Don: Install python bindings to libclang =3D=3D=3D=3D> Options available for the single BACKENDS: you have to = select exactly one of them BE_FREEBSD=3Doff: Backends for FreeBSD architectures BE_NATIVE=3Doff: Backend(s) for this architecture (ARM) BE_STANDARD=3Don: All non-experimental backends =3D=3D=3D> Use 'make config' to modify these settings =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)