intel / vc-intrinsics

MIT License
51 stars 47 forks source link

building in-tree from source error: Could not find FOUND_VCS #130

Open th0ma7 opened 1 week ago

th0ma7 commented 1 week ago

Looking into enabling opencl with SynoCommunity ffmpeg for x86_64 arch. Related PR: https://github.com/SynoCommunity/spksrc/pull/6148 (IGC, intel-clang-opencl and al not yet included in PR, pending this issue) Note: the following below without vc-intrinsics it does configure & build properly.

Building wiht vc-intrinsics in-tree from source with the following:

CMAKE_ARGS += -DLLVM_TARGETS_TO_BUILD=X86
CMAKE_ARGS += -DLLVM_ENABLE_PROJECTS='clang'
CMAKE_ARGS += -DLLVM_EXTERNAL_PROJECTS='llvm-spirv;opencl-clang;vc-intrinsics'
CMAKE_ARGS += -DLLVM_EXTERNAL_LLVM_SPIRV_SOURCE_DIR=$(WORK_DIR)/SPIRV-LLVM-Translator
CMAKE_ARGS += -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=$(WORK_DIR)/SPIRV-Headers
CMAKE_ARGS += -DLLVM_EXTERNAL_VC_INTRINSICS_SOURCE_DIR=$(WORK_DIR)/vc-intrinsics
CMAKE_ARGS += -DLLVM_EXTERNAL_OPENCL_CLANG_SOURCE_DIR=$(WORK_DIR)/$(PKG_NAME)

And getting the following configuration error (present with version 0.18.0, also tested much older 0.3.0, same issue):

- Using SPIR-V Headers from
          /home/spksrc/ffmpeg-update/spksrc/cross/intel-opencl-clang/work-x64-7.1/SPIRV-Headers
-- Checking for one of the modules 'SPIRV-Tools'
-- [OPENCL-CLANG] Using Clang source code direcotry: /home/spksrc/ffmpeg-update/spksrc/cross/intel-opencl-clang/work-x64-7.1/llvm/../clang
-- [OPENCL-CLANG] Using SPIRV-LLVM-Translator source code directory: /home/spksrc/ffmpeg-update/spksrc/cross/intel-opencl-clang/work-x64-7.1/SPIRV-LLVM-Translator
-- [OPENCL-CLANG] No patches in /home/spksrc/ffmpeg-update/spksrc/cross/intel-opencl-clang/work-x64-7.1/opencl-clang/patches/clang
-- [OPENCL-CLANG] No patches in /home/spksrc/ffmpeg-update/spksrc/cross/intel-opencl-clang/work-x64-7.1/opencl-clang/patches/spirv
-- Found Python: /usr/bin/python3.9 (found version "3.9.2") found components: Interpreter 
CMake Error at /home/spksrc/ffmpeg-update/spksrc/cross/intel-opencl-clang/work-x64-7.1/vc-intrinsics/GenXIntrinsics/include/llvm/GenXIntrinsics/CMakeLists.txt:41 (find_file):
  Could not find FOUND_VCS using the following files: VersionFromVCS.cmake

-- Configuring incomplete, errors occurred!
make[2]: *** [../../mk/spksrc.cross-cmake.mk:150: cmake_configure_target] Error 1
make[2]: Leaving directory '/home/spksrc/ffmpeg-update/spksrc/cross/intel-opencl-clang'
make[1]: *** [../../mk/spksrc.supported.mk:71: build-arch-x64-7.1] Error 1
make[1]: Leaving directory '/home/spksrc/ffmpeg-update/spksrc/cross/intel-opencl-clang'
th0ma7 commented 1 week ago

more context, building with the following sources: clang-18.1.8 cmake-18.1.8 llvm-18.1.8 opencl-clang-18.1.0 SPIRV-Headers-vulkan-sdk-1.3.283.0 SPIRV-LLVM-Translator-18.1.1 SPIRV-Tools-2024.1 vc-intrinsics-0.18.0

Compiler used: Synology DSM 7.1: gcc-8.5.0, glibc-2.26 Synology DSM 7.2: gcc-12.2.0, glibc-2.36