[Pkg-cmake-team] Bug#1102350: libstdc++-15-dev: libstdc++-modules.json points at wrong location (was: cmake 4.0 couldn't find correct std module source file)
Timo Röhling
roehling at debian.org
Tue Apr 8 08:27:38 BST 2025
Control: reassign 1102350 libstdc++-15-dev
Control: retitle 1102350 libstdc++-15-dev: libstdc++-modules.json points at wrong location
* Leen Hawk <leenhawk at leenhawk.com> [2025-04-08 13:47]:
>I have change the `CMakeCXXCompiler.cmake`:
>```
>target_sources(__CMAKE::CXX23
> INTERFACE
> FILE_SET std TYPE CXX_MODULES
> BASE_DIRS "/usr/lib/gcc/x86_64-linux-gnu/15/../include/c++/15/bits"
> FILES "/usr/lib/gcc/x86_64-linux-gnu/15/../include/c++/15/bits/std.cc" "/usr/lib/gcc/x86_64-linux-gnu/15/../include/c++/15/bits/std.compat.cc")
>endif ()
>```
>to
>```
>target_sources(__CMAKE::CXX23
> INTERFACE
> FILE_SET std TYPE CXX_MODULES
> BASE_DIRS "/usr/include/c++/15/bits"
> FILES "/usr/include/c++/15/bits/std.cc" "/usr/include/c++/15/bits/std.compat.cc")
>endif ()
>```
>to fix it. And there is my issue on kitware cmake:
>https://gitlab.kitware.com/cmake/cmake/-/issues/26609
The source-path in libstdc++-modules.json is broken, and this needs to
be fixed in gcc-15, not in cmake.
>They have fixed in gentoo and fedora. But debian doesn't.
Nobody filed a bug yet, what do you expect? Especially with an
unreleased snapshot of gcc that sits in experimental for a good reason.
Cheers
Timo
--
⢀⣴⠾⠻⢶⣦⠀ ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁ │ Timo Röhling │
⢿⡄⠘⠷⠚⠋⠀ │ 9B03 EBB9 8300 DF97 C2B1 23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀ ╰────────────────────────────────────────────────────╯
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cmake-team/attachments/20250408/5151de68/attachment.sig>
More information about the Pkg-cmake-team
mailing list