Bug 261735 - devel/ispc: llvm-config: unknown component name: arm
Summary: devel/ispc: llvm-config: unknown component name: arm
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: Yuri Victorovich
URL: https://github.com/ispc/ispc/issues/2244
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-05 12:39 UTC by Vladimir Druzenko
Modified: 2022-02-09 08:16 UTC (History)
0 users

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


Attachments
Unbreak build on non-ARM platforms with LLVM without ARM backend (option BE_NATIVE) (468 bytes, patch)
2022-02-08 10:41 UTC, Vladimir Druzenko
no flags Details | Diff
Unbreak build on non-ARM platforms with LLVM without ARM backend (option BE_NATIVE) (701 bytes, patch)
2022-02-08 16:53 UTC, Vladimir Druzenko
vvd: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Druzenko freebsd_committer freebsd_triage 2022-02-05 12:39:13 UTC
After this commit: https://cgit.freebsd.org/ports/commit/?id=fdfd3de1e069f9497e9f9f3dda7d5a9158729655

-- M4 macro processor: /usr/obj/usr/ports/devel/ispc/work/.bin/m4
-- Found Python3: /usr/local/bin/python3.9 (found version "3.9.9") found components: Interpreter
-- Found BISON: /usr/local/bin/bison (found suitable version "3.7.6", minimum required is "3.0")
-- Found FLEX: /usr/obj/usr/ports/devel/ispc/work/.bin/flex (found suitable version "2.6.4", minimum required is "2.6")
llvm-config: unknown component name: arm
CMake Error at cmake/FindLLVM.cmake:119 (message):
  Failed running
  /usr/local/llvm13/bin/llvm-config;--libfiles;engine;ipo;bitreader;bitwriter;instrumentation;linker;option;frontendopenmp;x86;arm;aarch64
Call Stack (most recent call first):
  cmake/FindLLVM.cmake:156 (run_llvm_config)
  CMakeLists.txt:324 (get_llvm_libfiles)


-- Configuring incomplete, errors occurred!
See also "/usr/obj/usr/ports/devel/ispc/work/.build/CMakeFiles/CMakeOutput.log".
*** Error code 1
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-05 17:03:43 UTC
Hi VVD,

Thanks for your report.

I reported this regression to the issue for which this commit was made.


Yuri
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2022-02-05 18:09:38 UTC
Forgot: 12.3-p2 amd64.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2022-02-05 18:15:28 UTC
llvm13 build options:
        BE_AMDGPU      : on
        BE_FREEBSD     : off
        BE_NATIVE      : on
        BE_STANDARD    : off
        BE_WASM        : on
        CLANG          : on
        COMPILER_RT    : on
        DOCS           : off
        EXTRAS         : on
        FLANG          : on
        GOLD           : on
        LIT            : on
        LLD            : on
        LLDB           : on
        MLIR           : on
        OPENMP         : on
        PYCLANG        : on
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-05 18:17:49 UTC
It builds fine on 13.0-STABLE amd64.
Comment 5 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-07 23:51:22 UTC
I am not getting any fallout messages for ispc, and packages seem to build fine: https://www.freshports.org/devel/ispc/

Are you sure your LLVM options are default?
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2022-02-08 00:25:19 UTC
(In reply to Yuri Victorovich from comment #5)
> Are you sure your LLVM options are default?
Of course they are not default.

My LLVM13 build options are here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261735#c3
Comment 7 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-08 00:28:28 UTC
(In reply to VVD from comment #6)

ISPC is tightly connected to LLVM and requires specific options there.

Particularly, it expects ARM backend enables.

You should either restore the ARM backend in LLVM (-DLLVM_TARGETS_TO_BUILD=AArch64;ARM), or disable the ARM option in ISPC (-DARM_ENABLED=OFF).
Comment 8 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-08 00:43:55 UTC
If you want particular option combinations supported - submit patches to LLVM, or ISPC port or both.

Otherwise this isn't a bug.
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2022-02-08 10:41:31 UTC
Created attachment 231640 [details]
Unbreak build on non-ARM platforms with LLVM without ARM backend (option BE_NATIVE)
Comment 10 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-08 16:38:35 UTC
(In reply to VVD from comment #9)

ARM should probably be only defined on amd64 i386.

The port has:
> ONLY_FOR_ARCHS=aarch64 amd64 i386
Comment 11 Vladimir Druzenko freebsd_committer freebsd_triage 2022-02-08 16:53:51 UTC
Created attachment 231649 [details]
Unbreak build on non-ARM platforms with LLVM without ARM backend (option BE_NATIVE)

Agree - ARM option isn't needed for ARM targets.
Comment 12 Yuri Victorovich freebsd_committer freebsd_triage 2022-02-09 08:13:34 UTC
Committed, thanks!
Comment 13 commit-hook freebsd_committer freebsd_triage 2022-02-09 08:16:25 UTC
A commit in branch main references this bug:

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

commit cd2c8b5c599c4b6e030469c6844287a92bc8f6cd
Author:     VVD <vvd@unislabs.com>
AuthorDate: 2022-02-09 08:12:34 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-02-09 08:15:24 +0000

    devel/ispc: Make ARM support conditional on the new ARM option on amd64 and i386 architectures

    PR:             261735

 devel/ispc/Makefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)