Bug 255527 - devel/llvm12 build fails on packaging
Summary: devel/llvm12 build fails on packaging
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-01 11:03 UTC by bergerkos
Modified: 2021-08-11 22:24 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bergerkos 2021-05-01 11:03:58 UTC
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.
Comment 1 bergerkos 2021-05-01 13:42:35 UTC
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?
Comment 2 bergerkos 2021-05-01 14:14:45 UTC
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.
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-05-03 17:39:34 UTC
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(-)
Comment 4 Brooks Davis freebsd_committer freebsd_triage 2021-08-11 22:24:48 UTC
I'd kept this open to track the merge to quarterly, but 2021Q3 includes it.