-
Notifications
You must be signed in to change notification settings - Fork 84
Description
I'm maintaining the ffmpeg package for the SynoCommunity and trying to enable --opencl
for intel based CPU on Synology NAS. I am now able to build intel-opencl-clang using LLVM 14.0.5 with proper 140
depencies (thnx to #539 and #545). My on-going PR is SynoCommunity/spksrc#6166
Although after completing the build process (i.e. and getting to this point):
[3388/3389] Linking CXX shared library lib/libopencl-clang.so.14
[3389/3389] Creating library symlink lib/libopencl-clang.so
I then proceed with the installation and it warns of it inhability to do so with the following msg:
[0/1] Install the project...
-- Install configuration: "Release"
-- Installing: /home/spksrc/ffmpeg-opencl-140/spksrc/cross/intel-graphics-compiler/work-x64-7.1/install/usr/local/intel-graphics-compiler/lib/cmake/llvm/LLVMConfigExtensions.cmake
-- Installing: /home/spksrc/ffmpeg-opencl-140/spksrc/cross/intel-graphics-compiler/work-x64-7.1/install/usr/local/intel-graphics-compiler/lib/libLTO.so.14
-- Installing: /home/spksrc/ffmpeg-opencl-140/spksrc/cross/intel-graphics-compiler/work-x64-7.1/install/usr/local/intel-graphics-compiler/lib/libLTO.so
-- Installing: /home/spksrc/ffmpeg-opencl-140/spksrc/cross/intel-graphics-compiler/work-x64-7.1/install/usr/local/intel-graphics-compiler/include/llvm-c/lto.h
-- Installing: /home/spksrc/ffmpeg-opencl-140/spksrc/cross/intel-graphics-compiler/work-x64-7.1/install/usr/local/intel-graphics-compiler/bin/llvm-ar
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/GNUInstallDirs.cmake:225 (message):
Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
target architecture is known. Please enable at least one language before
including GNUInstallDirs.
Call Stack (most recent call first):
/home/spksrc/ffmpeg-opencl-140/spksrc/cross/intel-graphics-compiler/work-x64-7.1/llvm/cmake/modules/LLVMInstallSymlink.cmake:5 (include)
tools/llvm-ar/cmake_install.cmake:56 (include)
tools/cmake_install.cmake:49 (include)
cmake_install.cmake:63 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
However process continues and complete the installation of the remaining llvm
, spirv
and clang
where all libraries and binaries are installed appropriately. So I tried enforcing CMAKE_INSTALL_LIBDIR
with no change, error still occurs, failing to install the resulting libopencl-clang.so.14
.
Also note that I do also pass -Wno-dev
to the build process but from the message it wasn't taken into account neither.
Full build log available here build-x64-7.1.log