CMake 3.28+ requires clang-scan-deps from the clang-tools-extra package in order to build C++20+ projects with Ninja generator. CMakeLists.txt listing: ``` cmake_minimum_required(VERSION 3.28...4.0) project(foo CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) add_executable(foo foo.cpp) ``` foo.cpp listing: ``` #include <iostream> int main() { std::cout << "foo" << std::endl; } ``` Reproducible: Always Steps to Reproduce: Build the example: ``` cmake -S . -B build -GNinja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake --build build ``` Actual Results: $ cmake -S . -B build -GNinja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=RelWithDebInfo -- The CXX compiler identification is Clang 19.1.7 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (0.3s) -- Generating done (0.0s) -- Build files have been written to: /media/virt/workbench/foo/build $ cmake --build build[1/4] Scanning /media/virt/workbench/foo/foo.cpp for CXX dependencies FAILED: CMakeFiles/foo.dir/foo.cpp.o.ddi "CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND" -format=p1689 -- /usr/bin/clang++ -O2 -g -DNDEBUG -std=c++20 -x c++ /media/virt/workbench/foo/foo.cpp -c -o CMakeFiles/foo.dir/foo.cpp.o -resource-dir "/usr/bin/../lib/clang/19" -MT CMakeFiles/foo.dir/foo.cpp.o.ddi -MD -MF CMakeFiles/foo.dir/foo.cpp.o.ddi.d > CMakeFiles/foo.dir/foo.cpp.o.ddi.tmp && mv CMakeFiles/foo.dir/foo.cpp.o.ddi.tmp CMakeFiles/foo.dir/foo.cpp.o.ddi /bin/sh: line 1: CMAKE_CXX_COMPILER_CLANG_SCAN_DEPS-NOTFOUND: command not found ninja: build stopped: subcommand failed. Expected Results: $ cmake --build build [2/2] Linking CXX executable foo
Another option: move clang-scan-deps binary to the clang-devel package.
I think we'll want to move it to the clang package. I've put up https://src.fedoraproject.org/rpms/llvm/pull-request/405.
FEDORA-2025-ca28d36305 (flang-20.1.1-1.fc42, libclc-20.1.1-1.fc42, and 2 more) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-ca28d36305
FEDORA-2025-3b0972b553 (flang-20.1.1-1.fc43, libclc-20.1.1-1.fc43, and 2 more) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2025-3b0972b553
FEDORA-2025-3b0972b553 (flang-20.1.1-1.fc43, libclc-20.1.1-1.fc43, and 2 more) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2025-ca28d36305 has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-ca28d36305` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-ca28d36305 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2025-ca28d36305 (flang-20.1.1-1.fc42, libclc-20.1.1-1.fc42, and 2 more) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.