Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2021 11:40:49 -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:  <DA43AD8B-EBB7-45FE-BB26-39E8158A33BA@yahoo.com>
In-Reply-To: <3F3F1A2B-87E2-47CA-A9C6-BC65B71F1DE7@yahoo.com>
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>

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


On 2021-Nov-15, at 11:35, Mark Millard <marklmi@yahoo.com> wrote:

> On 2021-Nov-15, at 10:40, Dimitry Andric <dim@FreeBSD.org> wrote:
>=20
>> 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.
>=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)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DA43AD8B-EBB7-45FE-BB26-39E8158A33BA>