Bug 258897 - devel/llvm13: fails to build package with BE_NATIVE=on
Summary: devel/llvm13: fails to build package with BE_NATIVE=on
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-03 20:49 UTC by Kamigishi Rei
Modified: 2021-10-05 21:46 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 Kamigishi Rei 2021-10-03 20:49:14 UTC
pkg attempts to add the non-native libraries (that were not built) to the package. These are directly listed in the port's pkg-plist. I have not tested this with BE_FREEBSD=on.

Poudriere log:

=======================<phase: package        >============================
===>  Building package for llvm13-13.0.0.r4
pkg-static: Unable to access file /wrkdirs/usr/ports/devel/llvm13/work/stage/usr/local/llvm13/lib/libLLVMExegesisAArch64.a:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/devel/llvm13/work/stage/usr/local/llvm13/lib/libLLVMExegesisMips.a:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/devel/llvm13/work/stage/usr/local/llvm13/lib/libLLVMExegesisPowerPC.a:No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/llvm13

pkg-plist:

% grep libLLVMExegesis pkg-plist
llvm%%LLVM_SUFFIX%%/lib/libLLVMExegesis.a
llvm%%LLVM_SUFFIX%%/lib/libLLVMExegesisAArch64.a
llvm%%LLVM_SUFFIX%%/lib/libLLVMExegesisMips.a
llvm%%LLVM_SUFFIX%%/lib/libLLVMExegesisPowerPC.a
llvm%%LLVM_SUFFIX%%/lib/libLLVMExegesisX86.a
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-10-05 18:54:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1fca16446ff2ff675ee3cfd6284fa46016a7d498

commit 1fca16446ff2ff675ee3cfd6284fa46016a7d498
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2021-10-05 18:53:10 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2021-10-05 18:53:10 +0000

    devel/llvm13: fix BE_NATIVE build

    Handle new per-backend Exegesis libraries.  Awkwardly, they use the
    opposite convention of all other per-arch binaries so add (hopefuly
    temporary) machinery to support libLLVM<Foo><Arch>.a libraries.

    PR:             258897
    MFH:            2021Q4
    Sponsored by:   DARPA

 devel/llvm13/Makefile  | 7 ++++++-
 devel/llvm13/pkg-plist | 4 ----
 2 files changed, 6 insertions(+), 5 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-10-05 18:56:10 UTC
A commit in branch 2021Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=31aaf91a386e85ec001ea334e80ce1dc32961142

commit 31aaf91a386e85ec001ea334e80ce1dc32961142
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2021-10-05 18:53:10 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2021-10-05 18:55:05 +0000

    devel/llvm13: fix BE_NATIVE build

    Handle new per-backend Exegesis libraries.  Awkwardly, they use the
    opposite convention of all other per-arch binaries so add (hopefuly
    temporary) machinery to support libLLVM<Foo><Arch>.a libraries.

    PR:             258897
    Sponsored by:   DARPA

    (cherry picked from commit 1fca16446ff2ff675ee3cfd6284fa46016a7d498)

 devel/llvm13/Makefile  | 7 ++++++-
 devel/llvm13/pkg-plist | 4 ----
 2 files changed, 6 insertions(+), 5 deletions(-)
Comment 3 Brooks Davis freebsd_committer freebsd_triage 2021-10-05 21:46:43 UTC
Should be fixed now.  Thanks for the report.