Не собирается libckc:
-- The CXX compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
LLVM version: 15.0.6
LLVM system libs:
LLVM libs: -lLLVM-15
LLVM libdir: /usr/lib
LLVM bindir: /usr/bin
LLVM ld flags: -L/usr/lib
LLVM cxx flags: -I/usr/include;-std=c++14;;;-fno-exceptions;-D_GNU_SOURCE;-D__STDC_CONSTANT_MACROS;-D__STDC_FORMAT_MACROS;-D__STDC_LIMIT_MACROS;-fno-rtti;-fno-exceptions
clang: /usr/bin/clang
llvm-as: /usr/bin/llvm-as
llvm-link: /usr/bin/llvm-link
opt: /usr/bin/opt
llvm-spirv: LLVM_SPIRV-NOTFOUND
CMake Error at CMakeLists.txt:119 (message):
SPIR-V targets requested, but spirv-tools is not installed
-- Configuring incomplete, errors occurred!
See also "/w/t/src/libclc-15.0.6.src/build/CMakeFiles/CMakeOutput.log"
CMakeLists.txt:119:
if( "spirv-mesa3d-" IN_LIST LIBCLC_TARGETS_TO_BUILD OR "spirv64-mesa3d-
" IN_LIST LIBCLC_TARGETS_TO_BUILD )
if( NOT LLVM_SPIRV )
message( FATAL_ERROR "SPIR-V targets requested, but spirv-tools is not installed" )
endif()
endif()
Конфиг сборки:
mkdir build
cd build
cmake \
-S ..
-B .
-DCMAKE_INSTALL_PREFIX=/usr \
-DLLVM_CONFIG=/usr/bin/llvm-config \
-DARCH='r600;amdgcn' \
-DLIBCLC_TARGETS_TO_BUILD='r600--;amdgcn--;amdgcn--amdhsa' \
-DLLVM_CXX_FLAGS:STRING="$CXXFLAGS" \
make
make DESTDIR="$PKG" install
Почему он хочет LLVM_SPIRV, когда он мне не нужен?
Перемещено hobbit из general