1 suggestion
Optional improvements
[suggestion] · GCC LTO checking now runs in two always-on jobs
Both Ubuntu and Alpine now perform GCC LTO builds on every PR; one would provide the stated ODR coverage without overlapping build work, unless Alpine's additional musl, Debug and depends coverage is independently intended.
Location: ci/test/00_setup_env_native_alpine_musl.sh:17 (head).
Details and suggested fix
Both configurations enable CMAKE_INTERPROCEDURAL_OPTIMIZATION and CMAKE_LINK_WARNING_AS_ERROR, and both matrix entries build all targets. Alpine uses GCC through depends, so the dedicated Ubuntu job is not the only GCC LTO check. For the stated ODR-detection goal, keep the dedicated job and leave Alpine non-LTO. That avoids adding LTO work to the existing job and preserves its previous non-LTO Debug/musl coverage. If testing LTO specifically with musl, Debug and depends is a separate goal, document that benefit and the decision to retain both configurations. The jobs are not identical, and the runtime difference has not been measured.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
Clang was part of the platform coverage being sought, rather than a documented workaround for GCC LTO problems. The original Chimera proposal wanted to test LLVM together with musl, previously tested separately, and exercise a fully LLVM/Clang/lld build—including native depends tools—without a GCC/libstdc++ installation.
The pinned base's existing LTO configuration is the Chimera job, which explicitly selects Clang and LLVM binutils. Its history explains that choice through toolchain diversity and independence from GNU components, not a stated inability to use GCC with musl. The current change adds GCC LTO coverage while leaving that configuration unchanged.
LTO was added opportunistically to fill a coverage gap. The proposer noted that no existing job enabled it, that CMake selected ThinLTO for LLVM/Clang, and that Chimera itself used LTO. Runtime was an explicit tradeoff: LTO could be dropped if its runtime cost became excessive.
This establishes a historical concern about CI runtime, but not a measured resource limit or a reason to reject GCC specifically. The head enables interprocedural optimization in both a new GCC configuration and the existing Alpine Debug configuration; the earlier rationale supplies no comparative cost evidence for those combinations.
The original discussion accepted adding the Chimera configuration without adding it to the runner, noting its usefulness for local or nightly execution and requesting an experimental, non-reproducible warning because Chimera is a rolling distribution.
The historical availability of a Clang LTO configuration should not be conflated with a decision to pay its cost on every PR. The pinned configuration retains the rolling-distribution warning. This deployment distinction is separate from compiler compatibility.
Source 1 · Source 2 · Source 3
Ralph's inferences
The strongest supported explanation is that existing LTO coverage inherited Clang from the deliberately chosen Chimera platform, not that musl required avoiding GCC. Runtime was a conditional concern, while GCC/musl compatibility and memory limits remain unestablished.
At the pinned base, Alpine already supplies separate musl coverage without interprocedural optimization; the head adds LTO to it. The inspected history therefore supports distinguishing the original platform-selection rationale from the additional compiler/LTO combination introduced here.