Buiding devel/llvm12 with Synth on amd64 fails on packaging stage: -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for llvm12-12.0.0 pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.asan-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.asan-i386.so:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.asan-preinit-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.asan_cxx-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.builtins-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.cfi-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.cfi_diag-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.profile-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.safestack-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.stats-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.stats_client-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.ubsan_minimal-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.ubsan_minimal-i386.so:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.ubsan_standalone-i386.a:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.ubsan_standalone-i386.so:No such file or directory pkg-static: Unable to access file /construction/xports/devel/llvm12/work/stage/usr/local/llvm12/lib/clang/12.0.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-i386.a:No such file or directory *** Error code 1 Tried two times, both times failed. Ports tree from latest git. Most other things build fine.
Tried to do this using straightforward `make install`, and it's interesting that these *i386* things are indeed absent, there are only x86_64 things present in that directory. And my architecture is also x86_64, so why is it looking for i386 stuff?
Ok, the source is work/.PLIST.mktmp, for some reason it contains all these i386* files which are not present in the destination directory or in pkg-plist file of the port.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=6354328d5f77001b261a22475dbf4f465d3e4758 commit 6354328d5f77001b261a22475dbf4f465d3e4758 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2021-05-03 17:13:52 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2021-05-03 17:35:40 +0000 devel/llvm12: address build issues in some configs In some cases (notably when LLDB is not selected), COMPILER_RT fails to build owing to not finding unwind.h. Add USES=localbase to COMPILER_RT to address this.[0] When building on amd64 without /usr/lib32 compat libraries installed, COMPILER_RT doesn't build i386 sanitizer libs. Detect this case and don't add to plist.[1] Submitted by: Tatsuki Makino [0] PR: 254048 [0], 255527 [1] MFH: 2020Q2 devel/llvm12/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
I'd kept this open to track the merge to quarterly, but 2021Q3 includes it.