Bug 249289 - devel/ispc: fails to build "llvm-config: unknown component name: arm"
Summary: devel/ispc: fails to build "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 Some People
Assignee: Yuri Victorovich
URL: https://github.com/ispc/ispc/issues/1869
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-13 07:17 UTC by VVD
Modified: 2020-09-13 22:34 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description VVD 2020-09-13 07:17:50 UTC
2 hosts with 12.1-p9 amd64.

===>  License BSD3CLAUSE accepted by the user
===>   ispc-1.14.1_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by ispc-1.14.1_1 for building
===>  Extracting for ispc-1.14.1_1
=> SHA256 Checksum OK for ispc-ispc-v1.14.1_GH0.tar.gz.
===>  Patching for ispc-1.14.1_1
===>  Applying FreeBSD patches for ispc-1.14.1_1 from /usr/ports/devel/ispc/files
===>   ispc-1.14.1_1 depends on executable: m4 - found
===>   ispc-1.14.1_1 depends on executable: bison - found
===>   ispc-1.14.1_1 depends on file: /usr/local/bin/cmake - found
===>   ispc-1.14.1_1 depends on executable: ninja - found
===>   ispc-1.14.1_1 depends on file: /usr/local/bin/python3.7 - found
===>   ispc-1.14.1_1 depends on shared library: libLLVM.so - found (/usr/local/llvm90/lib/libLLVM.so)
===>  Configuring for ispc-1.14.1_1
===>  Performing out-of-source build
/bin/mkdir -p /tmp/work/usr/ports/devel/ispc/work/.build
-- The C compiler identification is Clang 9.0.1
-- The CXX compiler identification is Clang 9.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/llvm90/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/llvm90/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found LLVM LLVM_9_0
-- LLVM_CONFIG_EXECUTABLE: /usr/local/llvm90/bin/llvm-config
-- CLANG_EXECUTABLE: /usr/local/llvm90/bin/clang
-- CLANGPP_EXECUTABLE: /usr/local/llvm90/bin/clang++
-- LLVM_DIS_EXECUTABLE: /usr/local/llvm90/bin/llvm-dis
-- LLVM_AS_EXECUTABLE: /usr/local/llvm90/bin/llvm-as
-- FILE_CHECK_EXECUTABLE: /usr/local/llvm90/bin/FileCheck
-- Detected LLVM version: 9.0.1
CMake Warning at cmake/LLVMConfig.cmake:134 (message):
  LLVM was built without assertions enabled (-DLLVM_ENABLE_ASSERTIONS=OFF).
  This disables dumps, which are required for ISPC to be fully functional.
Call Stack (most recent call first):
  CMakeLists.txt:164 (include)


-- GIT_BINARY: /usr/local/bin/git
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
-- M4 macro processor: /tmp/work/usr/ports/devel/ispc/work/.bin/m4
-- Found Python3: /usr/local/bin/python3.8 (found version "3.8.5") found components: Interpreter 
-- Found BISON: /usr/local/bin/bison (found suitable version "3.6.4", minimum required is "3.0") 
-- Found FLEX: /usr/bin/flex (found suitable version "2.5.37", minimum required is "2.5") 
llvm-config: unknown component name: arm
CMake Error at cmake/LLVMConfig.cmake:119 (message):
  Failed running
  /usr/local/llvm90/bin/llvm-config;--libfiles;engine;ipo;bitreader;bitwriter;instrumentation;linker;option;x86;arm;aarch64
Call Stack (most recent call first):
  cmake/LLVMConfig.cmake:156 (run_llvm_config)
  CMakeLists.txt:261 (get_llvm_libfiles)


-- Configuring incomplete, errors occurred!
See also "/tmp/work/usr/ports/devel/ispc/work/.build/CMakeFiles/CMakeOutput.log".
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/ispc
Comment 1 Yuri Victorovich freebsd_committer 2020-09-13 07:42:35 UTC
Does your llvm90 have any special options?

What does this command print:
> /usr/local/llvm90/bin/llvm-config --libfiles engine ipo bitreader bitwriter instrumentation linker option x86 arm aarch64
Comment 2 VVD 2020-09-13 09:07:23 UTC
(In reply to Yuri Victorovich from comment #1)

> llvm-config: unknown component name: arm
Comment 3 VVD 2020-09-13 09:08:10 UTC
$ /usr/local/llvm90/bin/llvm-config --libfiles engine ipo bitreader bitwriter instrumentation linker option x86 aarch64
llvm-config: unknown component name: aarch64
Comment 4 Yuri Victorovich freebsd_committer 2020-09-13 09:13:28 UTC
(In reply to VVD from comment #3)

It looks like your llvm90 wasn't built with default options, and doesn't support these targets.
Comment 5 VVD 2020-09-13 09:30:05 UTC
(In reply to Yuri Victorovich from comment #4)
Yes.
I don't have arm and pick to not build useless for me parts of llvm port.
Comment 6 Yuri Victorovich freebsd_committer 2020-09-13 09:49:24 UTC
(In reply to VVD from comment #5)

This is a bug in ISPC that they don't detect architectures that llvm supports: https://github.com/ispc/ispc/issues/1869
Comment 7 commit-hook freebsd_committer 2020-09-13 10:10:12 UTC
A commit references this bug:

Author: yuri
Date: Sun Sep 13 10:09:49 UTC 2020
New revision: 548470
URL: https://svnweb.freebsd.org/changeset/ports/548470

Log:
  devel/ispc: Only enable host architecture (no cross-platrorm compilation)

  PR:		249289
  Reported by:	VVD <vvd@unislabs.com>

Changes:
  head/devel/ispc/Makefile
  head/devel/ispc/files/patch-CMakeLists.txt
Comment 8 Yuri Victorovich freebsd_committer 2020-09-13 10:10:20 UTC
Fix committed.

Thanks for your report!
Comment 9 VVD 2020-09-13 12:16:38 UTC
(In reply to Yuri Victorovich from comment #8)
Thanks you for fast fix!
Comment 10 Yuri Victorovich freebsd_committer 2020-09-13 16:33:01 UTC
You(In reply to VVD from comment #9)

You're welcome!
Comment 11 VVD 2020-09-13 21:51:53 UTC
(In reply to Yuri Victorovich from comment #10)
Sorry for reset status…
Comment 12 Yuri Victorovich freebsd_committer 2020-09-13 22:34:17 UTC
(In reply to VVD from comment #11)

No problem.