Bug 258062 - devel/llvm13: files missing from pkg-plist/STAGEDIR
Summary: devel/llvm13: files missing from pkg-plist/STAGEDIR
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-08-26 14:57 UTC by Philipp Ost
Modified: 2021-08-27 17:16 UTC (History)
1 user (show)

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


Attachments
poudriere testport logfile for llvm13 (301.14 KB, application/x-xz)
2021-08-26 14:57 UTC, Philipp Ost
no flags Details
logfile of poudriere testport run with default options (314.43 KB, application/x-xz)
2021-08-26 18:46 UTC, Philipp Ost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Ost 2021-08-26 14:57:03 UTC
Created attachment 227447 [details]
poudriere testport logfile for llvm13

Trying to install devel/llvm13 on my 12.2-Stable amd64 machine fails as follows:

# make install
===>  Installing for llvm13-13.0.0.r1
===>  Checking if llvm13 is already installed
===>   Registering installation for llvm13-13.0.0.r1
pkg-static: Unable to access file /usr/ports/devel/llvm13/work/stage/usr/local/l
lvm13/lib/libLLVMWebAssemblyUtils.a:No such file or directory
*** Error code 1
 
Stop.
make[1]: stopped in /usr/ports/devel/llvm13
*** Error code 1
 
Stop.
make: stopped in /usr/ports/devel/llvm13
#

I selected the BE_FREEBSD option, all others are unchanged:
# make showconfig
===> The following configuration options are available for llvm13-13.0.0.r1:
     BE_AMDGPU=on: AMD GPU backend (required by mesa)
     CLANG=on: Build clang
     COMPILER_RT=on: Sanitizer libraries
     DOCS=on: Build and/or install documentation
     EXTRAS=on: Extra clang tools
     FLANG=off: Flang FORTRAN compiler
     GOLD=on: Build the LLVM Gold plugin for LTO
     LIT=on: Install lit and FileCheck test tools
     LLD=on: Install lld, the LLVM linker
     LLDB=on: Install lldb, the LLVM debugger
     MLIR=on: Multi-Level Intermediate Representation
     OPENMP=on: Install libomp, the LLVM OpenMP runtime library
     PYCLANG=on: Install python bindings to libclang
====> Options available for the single BACKENDS: you have to select exactly one of them
     BE_FREEBSD=on: Backends for FreeBSD architectures
     BE_NATIVE=off: Backend(s) for this architecture (X86)
     BE_STANDARD=off: All non-experimental backends
===> Use 'make config' to modify these settings
#

`poudriere testport` shows the same problem, the log is attached.
Comment 1 Philipp Ost 2021-08-26 18:46:48 UTC
Created attachment 227458 [details]
logfile of poudriere testport run with default options

The build also fails for the default options with a pkg-plist error.

====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: llvm13/lib/clang/%%LLVM_RELEASE%%/lib/freebsd/libclang_rt.orc-x86_64.a
===> Checking for items in pkg-plist which are not in STAGEDIR
===> Error: Plist issues found.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/llvm13
=>> Error: check-plist failures detected
build of devel/llvm13 | llvm13-13.0.0.r1 ended at Thu Aug 26 20:06:28 CEST 2021
build time: 02:30:05
!!! build failure encountered !!!
[02:30:20] Error: Build failed in phase: check-plist

The complete logfile is attached.
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-08-27 16:14:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=150110612df671da9ae395e8b92f05f1c11716bc

commit 150110612df671da9ae395e8b92f05f1c11716bc
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2021-08-27 16:13:32 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2021-08-27 16:13:32 +0000

    devel/llvm13: assorted build/plist fixes

    Disable compiler-rt on FreeBSD 11 as it doesn't compile with current
    patches.

    Correct plist issues preventing packaging in certain situations.

    PR:             258062
    Sponsored by:   DARPA

 devel/llvm13/Makefile  | 5 ++++-
 devel/llvm13/pkg-plist | 1 -
 2 files changed, 4 insertions(+), 2 deletions(-)
Comment 3 Brooks Davis freebsd_committer freebsd_triage 2021-08-27 17:16:58 UTC
Hopefully fixed both issues now. I'm not sure how the second one slipped through.