Introduced in #36475:
/ci_container_base/src/bench/bip352.cpp:22:12: error: type ‘InputType’ violates the C++ One Definition Rule [-Werror=odr]
22 | enum class InputType {
| ^
/ci_container_base/src/bench/sign_transaction.cpp:24:12: note: an enum with different value name is defined in another translation unit
24 | enum class InputType {
| ^
/ci_container_base/src/bench/bip352.cpp:23:5: note: name ‘P2PKH’ differs from name ‘P2WPKH’ defined in another translation unit
23 | P2PKH, // legacy pubkey-hash
| ^
/ci_container_base/src/bench/sign_transaction.cpp:25:5: note: mismatching definition
25 | P2WPKH, // segwitv0, witness-pubkey-hash (ECDSA signature)
| ^
There's a commit here that adds a CI config, using GCC and LTO, which uses -Wodr. The existing LTO config uses Clang, and I'm not sure about adding LTO to any existing job. However I do think we should be catching ODR violations in CI.