Date: Mon, 15 Nov 2021 11:35:30 -0800 From: Mark Millard via freebsd-toolchain <freebsd-toolchain@freebsd.org> To: Dimitry Andric <dim@FreeBSD.org> 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: <3F3F1A2B-87E2-47CA-A9C6-BC65B71F1DE7@yahoo.com> In-Reply-To: <91AD337B-6D40-4639-A43C-688699981167@FreeBSD.org> References: <15A74B79-47CF-4743-A831-D7C0E9B1DD0E.ref@yahoo.com> <15A74B79-47CF-4743-A831-D7C0E9B1DD0E@yahoo.com> <91AD337B-6D40-4639-A43C-688699981167@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-Nov-15, at 10:40, Dimitry Andric <dim@FreeBSD.org> wrote: > 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>( ) >=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. flang was not being built: # 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 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F3F1A2B-87E2-47CA-A9C6-BC65B71F1DE7>