Open
Description
Very recent regression
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:44 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/build/source/libclc/build/CMakeFiles/CMakeOutput.log".
ninja: error: loading 'build.ninja': No such file or directory
make[1]: *** [debian/rules:737: debian-libclc-build] Error 1
make[1]: Leaving directory '/build/source'
make: *** [debian/rules:474: binary] Error 2
With:
cd libclc/build && \
cmake ../ \
-G Ninja \
-DCMAKE_C_COMPILER_LAUNCHER=/opt/sccache/sccache -DCMAKE_CXX_COMPILER_LAUNCHER=/opt/sccache/sccache \
-DCMAKE_C_COMPILER=/build/source/build-llvm/tools/clang/stage2-bins/bin/clang \
-DCMAKE_CXX_COMPILER=/build/source/build-llvm/tools/clang/stage2-bins/bin/clang++ \
-DCMAKE_C_FLAGS="-O2 -DNDEBUG -g1 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
-DCMAKE_CXX_FLAGS="-O2 -DNDEBUG -g1 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id -L/build/source/build-llvm/tools/clang/stage2-bins/lib" \
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id -L/build/source/build-llvm/tools/clang/stage2-bins/lib" \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id -L/build/source/build-llvm/tools/clang/stage2-bins/lib" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_DATADIR=lib \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DLLVM_CONFIG=/build/source/build-llvm/tools/clang/stage2-bins/bin/llvm-config \
\
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"
$ ninja -j 32 -v
-- The CXX compiler identification is Clang 16.0.0
-- The C compiler identification is Clang 16.0.0
-- Check for working CXX compiler: /build/source/build-llvm/tools/clang/stage2-bins/bin/clang++
-- Check for working CXX compiler: /build/source/build-llvm/tools/clang/stage2-bins/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /build/source/build-llvm/tools/clang/stage2-bins/bin/clang
-- Check for working C compiler: /build/source/build-llvm/tools/clang/stage2-bins/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done