Bug 2353000 - clang-tools-extra is not installed by clang-devel
Summary: clang-tools-extra is not installed by clang-devel
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 42
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-17 19:16 UTC by Vitaly
Modified: 2025-03-22 02:40 UTC (History)
15 users (show)

Fixed In Version: llvm-20.1.1-1.fc42
Clone Of:
Environment:
Last Closed: 2025-03-22 02:40:25 UTC
Type: ---
Embargoed:
npopov: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1523 0 None None None 2025-03-18 13:24:56 UTC

Description Vitaly 2025-03-17 19:16:16 UTC
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

Comment 1 Vitaly 2025-03-17 20:12:49 UTC
Another option: move clang-scan-deps binary to the clang-devel package.

Comment 2 Nikita Popov 2025-03-18 09:30:00 UTC
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.

Comment 3 Fedora Update System 2025-03-20 19:21:32 UTC
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

Comment 4 Fedora Update System 2025-03-20 22:29:14 UTC
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

Comment 5 Fedora Update System 2025-03-21 02:44:58 UTC
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.

Comment 6 Fedora Update System 2025-03-21 03:16:06 UTC
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.

Comment 7 Fedora Update System 2025-03-22 02:40:25 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.