Bug 266662 - devel/llvm15: install failure with minimal OPTIONS set
Summary: devel/llvm15: install failure with minimal OPTIONS set
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-27 17:14 UTC by Christian Weisgerber
Modified: 2022-09-29 22:49 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 Christian Weisgerber freebsd_committer freebsd_triage 2022-09-27 17:14:27 UTC
FreeBSD 13.1-STABLE amd64

I wanted to install a minimal clang15 for testing purposes, so I disabled all OPTIONS in devel/llvm15 other than CLANG:

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

Unfortunately, make install fails because the packaging list is inconsistent with the files built for these OPTIONS:

$ make install
===>  Installing for llvm15-15.0.1
===>  Checking if llvm15 is already installed
===>  Switching to root credentials for 'install' target
===>   Registering installation for llvm15-15.0.1
pkg-static: Unable to access file /usr/ports/devel/llvm15/work/stage/usr/local/llvm15/lib/libclangIncludeCleaner.a:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm15/work/stage/usr/local/llvm15/lib/libclangPseudo.a:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm15/work/stage/usr/local/llvm15/lib/libclangPseudoCLI.a:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm15/work/stage/usr/local/llvm15/lib/libclangPseudoCXX.a:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm15/work/stage/usr/local/llvm15/lib/libclangPseudoGrammar.a:No such file or directory
*** Error code 1
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2022-09-27 17:25:15 UTC
Thanks for the report. Looks like I missed a few things that would be under EXTRAS. Will fix shortly.
Comment 2 Brooks Davis freebsd_committer freebsd_triage 2022-09-28 17:41:04 UTC
Fixed in https://cgit.freebsd.org/ports/commit/?id=549225619e86c7926476b16a7c71a0fe383fb0e8 but I failed to mention the PR number in the commit.
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-09-29 22:49:03 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=547397723678cd4d68d95ac24b7e98ccf197f0c2

commit 547397723678cd4d68d95ac24b7e98ccf197f0c2
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2022-09-29 22:48:41 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2022-09-29 22:48:41 +0000

    devel/llvm-devel: new snapshot

    Fix a plist bug with EXTRAS disabled.

    This update contains a workaround for an issue causing flang not to
    compile on amd64 due to a lack of __float128 support.  Power may need a
    similar fix, but I'd prefer not to apply it blindly.

    PR:             266662

 devel/llvm-devel/Makefile                            |  4 +++-
 devel/llvm-devel/Makefile.snapshot                   |  4 ++--
 devel/llvm-devel/distinfo                            |  6 +++---
 ...atch-flang_include_flang_Runtime_float128.h (new) | 11 +++++++++++
 devel/llvm-devel/pkg-plist                           | 20 +++++++++++++++-----
 5 files changed, 34 insertions(+), 11 deletions(-)