Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Mar 2022 17:01:37 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        freebsd-ports@freebsd.org, Brooks Davis <brooks@FreeBSD.org>
Cc:        FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   Re: aarch64 native context, devel/llvm14 build via poudriere-devel: build fails during "Building package for llvm14-14.0.0.r2" (armv7 too)
Message-ID:  <E141ED4F-77E4-4377-AACD-62E6856EDD44@yahoo.com>
In-Reply-To: <54357179-F400-4D67-9636-E05D2171BAC5@yahoo.com>
References:  <54357179-F400-4D67-9636-E05D2171BAC5@yahoo.com>

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


On 2022-Mar-15, at 17:47, Mark Millard <marklmi@yahoo.com> wrote:

> Based on trying to update to (from before devel/llvm-14 was present):
>=20
> # ~/fbsd-based-on-what-commit.sh -C /usr/ports/
> branch: main
> merge-base: 0c4fe38bd1b9e3ede128751db17a8a2d1bdffe6f
> merge-base: CommitDate: 2022-03-15 16:15:33 +0000
> 0c4fe38bd1b9 (HEAD -> main, freebsd/main, freebsd/HEAD) misc/urh: =
Update 2.9.2 -> 2.9.3
> n577366 (--first-parent --count for merge-base)
>=20
> via:
> # poudriere jail -j13_0R-CA72 -i
> Jail name:         13_0R-CA72
> Jail version:      13.0-RELEASE-p7
> Jail arch:         arm64.aarch64
> Jail method:       null
> Jail mount:        /usr/obj/DESTDIRs/13_0R-CA72-poud
> Jail fs:          =20
> Jail updated:      2022-03-13 22:41:31
> Jail pkgbase:      disabled
>=20
> Using:
>=20
> ---Begin OPTIONS List---
> =3D=3D=3D> The following configuration options are available for =
llvm14-14.0.0.r2:
>     BE_AMDGPU=3Don: AMD GPU backend (required by mesa)
>     BE_WASM=3Doff: WebAssembly backend (required by firefox via wasi)
>     CLANG=3Don: Build clang
>     DOCS=3Don: Build and/or install documentation
>     EXTRAS=3Don: Extra clang tools
>     FLANG=3Doff: 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
>     OPENMP=3Don: Install libomp, the LLVM OpenMP runtime library
>     PYCLANG=3Doff: 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=3Don: Backend(s) for this architecture (AArch64)
>     BE_STANDARD=3Doff: All non-experimental backends
>=20
> the build failed with:
>=20
> =3D=3D=3D>  Building package for llvm14-14.0.0.r2
> pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/clang/14.0=
.0/include/riscv_vector.h:No such file or directory
> pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVEA=
smParser.a:No such file or directory
> pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVEC=
odeGen.a:No such file or directory
> pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVED=
esc.a:No such file or directory
> pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVED=
isassembler.a:No such file or directory
> pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVEI=
nfo.a:No such file or directory
> *** Error code 1

main [so:  14] also got that:

# poudriere jail -jmain-CA72 -i
Jail name:         main-CA72
Jail version:      14.0-CURRENT
Jail arch:         arm64.aarch64
Jail method:       null
Jail mount:        /usr/obj/DESTDIRs/main-CA72-poud
Jail fs:          =20
Jail updated:      2021-06-27 17:48:11
Jail pkgbase:      disabled


Targeting armv7 (on harware that supports aarch32/armv7
directly, in addition to aarch64) also got that result:

# poudriere jail -jmain-CA7 -i
Jail name:         main-CA7
Jail version:      14.0-CURRENT
Jail arch:         arm.armv7
Jail method:       null
Jail mount:        /usr/obj/DESTDIRs/main-CA7-poud
Jail fs:          =20
Jail updated:      2021-06-27 17:58:33
Jail pkgbase:      disabled

The armv7 style build failed with:

=3D=3D=3D>  Building package for llvm14-14.0.0.r2
pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/clang/14.0=
.0/include/riscv_vector.h:No such file or directory
pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVEA=
smParser.a:No such file or directory
pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVEC=
odeGen.a:No such file or directory
pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVED=
esc.a:No such file or directory
pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVED=
isassembler.a:No such file or directory
pkg-static: Unable to access file =
/wrkdirs/usr/ports/devel/llvm14/work/stage/usr/local/llvm14/lib/libLLVMVEI=
nfo.a:No such file or directory
*** Error code 1

For reference:

These were all based on the same OPTIONS selections,
although armv7 contexts likely ignore ones that do not
apply. So, looking in armv7's log file:

---Begin OPTIONS List---
=3D=3D=3D> The following configuration options are available for =
llvm14-14.0.0.r2:
     BE_AMDGPU=3Don: AMD GPU backend (required by mesa)
     BE_WASM=3Doff: WebAssembly backend (required by firefox via wasi)
     CLANG=3Don: Build clang
     DOCS=3Don: Build and/or install documentation
     EXTRAS=3Don: Extra clang tools
     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=3Doff: 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=3Don: Backend(s) for this architecture (ARM)
     BE_STANDARD=3Doff: All non-experimental backends


=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E141ED4F-77E4-4377-AACD-62E6856EDD44>