Files
openwrt/tools
Hauke Mehrtens ee6e56c82e tools/cmake: backport bootstrap fix for GCC 16
CMake fails to bootstrap its host tool with GCC 16:

    cmake.o: undefined reference to
    `cmGlobalGhsMultiGenerator::cmGlobalGhsMultiGenerator(cmake*)'

Source/cmake.cxx includes cmGlobalGhsMultiGenerator.h guarded only by
__linux__, not by CMAKE_BOOTSTRAP. The NewFactory() call is compiled out
during bootstrap, but GCC 16 devirtualization still emits the uncalled
inline NewFactory() and the cmGlobalGeneratorSimpleFactory<> template,
which reference symbols only defined in cmGlobalGhsMultiGenerator.cxx, a
file that is not compiled during bootstrap.

Backport the upstream fix, which moves the include behind the existing
CMAKE_BOOTSTRAP guard. It is in no 3.30.x release (that branch is EOL);
upstream shipped it first in 3.31.10 / 4.0.5 / 4.1.2.

Assisted-by: Claude:claude-opus-4-8
Link: https://github.com/openwrt/openwrt/pull/24303
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-07-20 23:18:13 +02:00
..
2024-07-27 20:32:20 +02:00
2024-04-06 11:24:18 +02:00
2024-04-06 11:24:18 +02:00
2023-12-08 16:28:40 +01:00
2022-10-22 22:50:37 +02:00
2024-04-03 18:56:58 +02:00
2025-01-01 21:19:24 +01:00
2024-05-23 11:49:03 +02:00
2025-04-25 10:55:03 +02:00
2024-09-28 10:27:41 +02:00
2024-09-24 19:48:43 +01:00
2024-04-06 11:24:18 +02:00
2024-05-23 11:49:03 +02:00
2024-05-23 11:49:02 +02:00
2024-05-23 11:49:03 +02:00
2024-05-23 11:49:03 +02:00
2025-04-25 10:55:03 +02:00
2024-09-22 16:33:29 +02:00
2024-08-08 17:19:43 +02:00
2024-04-06 11:24:18 +02:00
2023-04-08 15:51:32 +02:00
2024-10-14 13:58:44 +02:00
2025-06-17 11:02:42 +02:00
2023-04-29 17:37:45 +02:00
2024-06-14 15:27:39 +02:00
2024-06-09 21:23:28 +02:00
2024-04-06 11:24:18 +02:00
2024-06-18 19:49:54 +02:00
2023-09-19 20:21:33 +02:00
2024-04-27 12:07:37 +02:00
2025-06-08 12:56:13 +02:00
2025-05-23 12:36:16 +02:00