bench: fix InputType ODR violation

bitcoin/bitcoin: PR #36966

The review is inconclusive; no findings were published.

Coverage details

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 existing LTO configuration's deliberate platform coverage, not a documented preference for Clang over GCC as an LTO diagnostic tool. PR #34421 introduced Chimera to exercise LLVM together with musl and a GNU-free environment, including building depends and native tools entirely with Clang/LLVM/lld.

The pinned existing configuration explicitly selects Clang and LLVM binutils. Replacing its compiler would change the combination that this configuration was introduced to test; its history does not describe it as interchangeable generic LTO coverage.

Source 1

LTO was added to Chimera because there was then no LTO-enabled CI configuration and general LTO coverage was considered useful. The proposal identified CMake's Clang setting as ThinLTO and explicitly allowed dropping LTO if runtime became excessive.

The historical motivation was broader build coverage, not GCC's cross-translation-unit ODR warnings. It also identifies CI runtime as a real tradeoff, but supplies no measured comparison between adding GCC LTO to an existing job and running another job.

Source 1

The Chimera configuration carried platform-specific limitations: Qt was excluded because depends could not build it, and the configuration was marked experimental because its rolling distribution could make runs non-reproducible. Its introduction discussion accepted adding the configuration without adding it to the runner, allowing local or nightly use.

These constraints explain why the existing LTO configuration is specialized rather than comprehensive compiler coverage. They also distinguish having an LTO configuration from paying for an additional continuously scheduled CI job.

Source 1 · Source 2 · Source 3

Ralph's inferences

The inspected constraints support keeping GCC LTO coverage distinct from Chimera's LLVM-only coverage, but do not establish that a new GCC job is necessary rather than enabling LTO in an existing GCC job. The proposed configuration is a different coverage combination: Ubuntu system dependencies, dev mode, interprocedural optimization, and link warnings treated as errors, while Chimera uses depends and disables the GUI.

A separate job preserves the historically intentional LLVM/musl/GNU-free combination while adding another compiler's LTO coverage. Whether separation is preferable to extending an existing GCC job remains unanswered without that job's runtime, compiler-version, build-mode, and dependency constraints.

Source 1