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
Hi VVD, Thanks for your report. I reported this regression to the issue for which this commit was made. Yuri
Forgot: 12.3-p2 amd64.
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
It builds fine on 13.0-STABLE amd64.
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?
(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
(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).
If you want particular option combinations supported - submit patches to LLVM, or ISPC port or both. Otherwise this isn't a bug.
Created attachment 231640 [details] Unbreak build on non-ARM platforms with LLVM without ARM backend (option BE_NATIVE)
(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
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.
Committed, thanks!
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(-)