Redfinition errors when building for clang-tidy #239

issue pinheadmz openend this issue on January 13, 2026
  1. pinheadmz commented at 3:10 pm on January 13, 2026: none

    Configure command with compiler and platform info:

    cmake -B build_tidy -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

      0-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
      1
      2Configuring secp256k1 subtree...
      3-- Could NOT find Valgrind (missing: Valgrind_INCLUDE_DIR Valgrind_WORKS) 
      4
      5
      6secp256k1 configure summary
      7===========================
      8Build artifacts:
      9  library type ........................ Static
     10Optional modules:
     11  ECDH ................................ OFF
     12  ECDSA pubkey recovery ............... ON
     13  extrakeys ........................... ON
     14  schnorrsig .......................... ON
     15  musig ............................... ON
     16  ElligatorSwift ...................... ON
     17Parameters:
     18  ecmult window size .................. 15
     19  ecmult gen table size ............... 86 KiB
     20Optional features:
     21  assembly ............................ OFF
     22  external callbacks .................. OFF
     23Optional binaries:
     24  benchmark ........................... OFF
     25  noverify_tests ...................... ON
     26  tests ............................... ON
     27  exhaustive tests .................... ON
     28  ctime_tests ......................... OFF
     29  examples ............................ OFF
     30
     31Cross compiling ....................... FALSE
     32API visibility attributes ............. ON
     33Valgrind .............................. OFF
     34Preprocessor defined macros ........... ECMULT_WINDOW_SIZE=15 COMB_BLOCKS=43 COMB_TEETH=6
     35C compiler ............................ AppleClang 16.0.0.16000026, /usr/bin/clang
     36CFLAGS ................................ 
     37Compile options ....................... -Wall -pedantic -Wcast-align -Wconditional-uninitialized -Wextra -Wnested-externs -Wno-long-long -Wno-overlength-strings -Wno-unused-function -Wreserved-identifier -Wshadow -Wstrict-prototypes -Wundef
     38Build type:
     39 - CMAKE_BUILD_TYPE ................... RelWithDebInfo
     40 - CFLAGS ............................. -O2 -g 
     41 - LDFLAGS for executables ............ 
     42 - LDFLAGS for shared libraries ....... 
     43
     44
     45
     46Configure summary
     47=================
     48Executables:
     49  bitcoin ............................. ON
     50  bitcoind ............................ ON
     51  bitcoin-node (multiprocess) ......... ON
     52  bitcoin-qt (GUI) .................... OFF
     53  bitcoin-gui (GUI, multiprocess) ..... OFF
     54  bitcoin-cli ......................... ON
     55  bitcoin-tx .......................... ON
     56  bitcoin-util ........................ ON
     57  bitcoin-wallet ...................... ON
     58  bitcoin-chainstate (experimental) ... OFF
     59  libbitcoinkernel (experimental) ..... OFF
     60  kernel-test (experimental) .......... OFF
     61Optional features:
     62  wallet support ...................... ON
     63  external signer ..................... ON
     64  ZeroMQ .............................. OFF
     65  IPC ................................. ON
     66  USDT tracing ........................ OFF
     67  QR code (GUI) ....................... OFF
     68  DBus (GUI) .......................... OFF
     69Tests:
     70  test_bitcoin ........................ ON
     71  test_bitcoin-qt ..................... OFF
     72  bench_bitcoin ....................... OFF
     73  fuzz binary ......................... OFF
     74
     75Cross compiling ....................... FALSE
     76C++ compiler .......................... AppleClang 16.0.0.16000026, /usr/bin/clang++
     77CMAKE_BUILD_TYPE ...................... RelWithDebInfo
     78Preprocessor defined macros ........... OBJC_OLD_DISPATCH_PROTOTYPES=0
     79C++ compiler flags .................... -O2 -g -std=c++20 -fPIC -fdebug-prefix-map=/Users/matthewzipkin/Desktop/work/bitcoin/src=. -fmacro-prefix-map=/Users/matthewzipkin/Desktop/work/bitcoin/src=. -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-all -mbranch-protection=bti -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wdocumentation -Wself-assign -Wundef -Wno-unused-parameter
     80Linker flags .......................... -O2 -g -Wl,-dead_strip -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -fstack-protector-all -Wl,-fixup_chains -fPIE -Xlinker -pie
     81
     82NOTE: The summary above may not exactly match the final applied build flags
     83      if any additional CMAKE_* or environment variables have been modified.
     84      To see the exact flags applied, build with the --verbose option.
     85
     86Treat compiler warnings as errors ..... OFF
     87Use ccache for compiling .............. ON
     88
     89
     90-- Configuring done (1.1s)
     91You have changed variables that require your cache to be deleted.
     92Configure will be re-run and you may have to reset some variables.
     93The following variables have changed:
     94CMAKE_CXX_COMPILER= clang++
     95CMAKE_CXX_COMPILER= clang++
     96CMAKE_C_COMPILER= clang
     97CMAKE_C_COMPILER= clang
     98
     99-- The CXX compiler identification is Clang 21.1.5
    100-- Detecting CXX compiler ABI info
    101-- Detecting CXX compiler ABI info - done
    102-- Check for working CXX compiler: /opt/homebrew/Cellar/llvm/21.1.5/bin/clang++ - skipped
    103-- Detecting CXX compile features
    104-- Detecting CXX compile features - done
    105-- Setting build type to "RelWithDebInfo" as none was specified
    106-- Performing Test CXX_SUPPORTS__WERROR
    107-- Performing Test CXX_SUPPORTS__WERROR - Success
    108-- Performing Test CXX_SUPPORTS__G3
    109-- Performing Test CXX_SUPPORTS__G3 - Success
    110-- Performing Test LINKER_SUPPORTS__G3
    111-- Performing Test LINKER_SUPPORTS__G3 - Success
    112-- Performing Test CXX_SUPPORTS__FTRAPV
    113-- Performing Test CXX_SUPPORTS__FTRAPV - Success
    114-- Performing Test LINKER_SUPPORTS__FTRAPV
    115-- Performing Test LINKER_SUPPORTS__FTRAPV - Success
    116-- Found SQLite3: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include (found suitable version "3.43.2", minimum required is "3.7.17")
    117-- Performing Test LINKER_SUPPORTS__WL__FATAL_WARNINGS
    118-- Performing Test LINKER_SUPPORTS__WL__FATAL_WARNINGS - Success
    119-- Performing Test LINKER_SUPPORTS__WL__DEAD_STRIP
    120-- Performing Test LINKER_SUPPORTS__WL__DEAD_STRIP - Success
    121-- Performing Test LINKER_SUPPORTS__WL__DEAD_STRIP_DYLIBS
    122-- Performing Test LINKER_SUPPORTS__WL__DEAD_STRIP_DYLIBS - Success
    123-- Performing Test LINKER_SUPPORTS__WL__HEADERPAD_MAX_INSTALL_NAMES
    124-- Performing Test LINKER_SUPPORTS__WL__HEADERPAD_MAX_INSTALL_NAMES - Success
    125-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    126-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    127-- Found Threads: TRUE
    128-- Performing Test NO_DIAGNOSTICS_BOOST_NO_CXX98_FUNCTION_BASE
    129-- Performing Test NO_DIAGNOSTICS_BOOST_NO_CXX98_FUNCTION_BASE - Failed
    130-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "2.4.3")
    131-- Found Libevent: /opt/homebrew/Cellar/libevent/2.1.12_1/lib (found suitable version "2.1.12-stable", minimum required is "2.1.8")
    132-- Performing Test HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR
    133-- Performing Test HAVE_EVHTTP_CONNECTION_GET_PEER_CONST_CHAR - Failed
    134-- Looking for O_CLOEXEC
    135-- Looking for O_CLOEXEC - found
    136-- Looking for fdatasync
    137-- Looking for fdatasync - not found
    138-- Looking for fork
    139-- Looking for fork - found
    140-- Looking for pipe2
    141-- Looking for pipe2 - not found
    142-- Looking for setsid
    143-- Looking for setsid - found
    144-- Performing Test IFADDR_LINKS_WITHOUT_LIBSOCKET
    145-- Performing Test IFADDR_LINKS_WITHOUT_LIBSOCKET - Success
    146-- Performing Test STD_ATOMIC_LINKS_WITHOUT_LIBATOMIC
    147-- Performing Test STD_ATOMIC_LINKS_WITHOUT_LIBATOMIC - Success
    148-- Looking for std::system
    149-- Looking for std::system - found
    150-- Looking for ::_wsystem
    151-- Looking for ::_wsystem - not found
    152-- Performing Test STRERROR_R_CHAR_P
    153-- Performing Test STRERROR_R_CHAR_P - Failed
    154-- Looking for malloc_info
    155-- Looking for malloc_info - not found
    156-- Performing Test HAVE_MALLOPT_ARENA_MAX
    157-- Performing Test HAVE_MALLOPT_ARENA_MAX - Failed
    158-- Performing Test HAVE_POSIX_FALLOCATE
    159-- Performing Test HAVE_POSIX_FALLOCATE - Failed
    160-- Performing Test HAVE_STRONG_GETAUXVAL
    161-- Performing Test HAVE_STRONG_GETAUXVAL - Failed
    162-- Performing Test HAVE_SOCKADDR_UN
    163-- Performing Test HAVE_SOCKADDR_UN - Success
    164-- Performing Test HAVE_GETRANDOM
    165-- Performing Test HAVE_GETRANDOM - Failed
    166-- Performing Test HAVE_GETENTROPY_RAND
    167-- Performing Test HAVE_GETENTROPY_RAND - Success
    168-- Performing Test HAVE_SYSCTL
    169-- Performing Test HAVE_SYSCTL - Success
    170-- Performing Test HAVE_SYSCTL_ARND
    171-- Performing Test HAVE_SYSCTL_ARND - Failed
    172-- Performing Test HAVE_SSE41
    173-- Performing Test HAVE_SSE41 - Failed
    174-- Performing Test HAVE_AVX2
    175-- Performing Test HAVE_AVX2 - Failed
    176-- Performing Test HAVE_X86_SHANI
    177-- Performing Test HAVE_X86_SHANI - Failed
    178-- Performing Test HAVE_ARM_SHANI
    179-- Performing Test HAVE_ARM_SHANI - Success
    180-- Performing Test CXX_SUPPORTS__WALL
    181-- Performing Test CXX_SUPPORTS__WALL - Success
    182-- Performing Test CXX_SUPPORTS__WEXTRA
    183-- Performing Test CXX_SUPPORTS__WEXTRA - Success
    184-- Performing Test CXX_SUPPORTS__WGNU
    185-- Performing Test CXX_SUPPORTS__WGNU - Success
    186-- Performing Test CXX_SUPPORTS__WFORMAT__WFORMAT_SECURITY
    187-- Performing Test CXX_SUPPORTS__WFORMAT__WFORMAT_SECURITY - Success
    188-- Performing Test CXX_SUPPORTS__WVLA
    189-- Performing Test CXX_SUPPORTS__WVLA - Success
    190-- Performing Test CXX_SUPPORTS__WSHADOW_FIELD
    191-- Performing Test CXX_SUPPORTS__WSHADOW_FIELD - Success
    192-- Performing Test CXX_SUPPORTS__WTHREAD_SAFETY
    193-- Performing Test CXX_SUPPORTS__WTHREAD_SAFETY - Success
    194-- Performing Test CXX_SUPPORTS__WTHREAD_SAFETY_POINTER
    195-- Performing Test CXX_SUPPORTS__WTHREAD_SAFETY_POINTER - Success
    196-- Performing Test CXX_SUPPORTS__WLOOP_ANALYSIS
    197-- Performing Test CXX_SUPPORTS__WLOOP_ANALYSIS - Success
    198-- Performing Test CXX_SUPPORTS__WREDUNDANT_DECLS
    199-- Performing Test CXX_SUPPORTS__WREDUNDANT_DECLS - Success
    200-- Performing Test CXX_SUPPORTS__WUNUSED_MEMBER_FUNCTION
    201-- Performing Test CXX_SUPPORTS__WUNUSED_MEMBER_FUNCTION - Success
    202-- Performing Test CXX_SUPPORTS__WDATE_TIME
    203-- Performing Test CXX_SUPPORTS__WDATE_TIME - Success
    204-- Performing Test CXX_SUPPORTS__WCONDITIONAL_UNINITIALIZED
    205-- Performing Test CXX_SUPPORTS__WCONDITIONAL_UNINITIALIZED - Success
    206-- Performing Test CXX_SUPPORTS__WDUPLICATED_BRANCHES
    207-- Performing Test CXX_SUPPORTS__WDUPLICATED_BRANCHES - Failed
    208-- Performing Test CXX_SUPPORTS__WDUPLICATED_COND
    209-- Performing Test CXX_SUPPORTS__WDUPLICATED_COND - Failed
    210-- Performing Test CXX_SUPPORTS__WLOGICAL_OP
    211-- Performing Test CXX_SUPPORTS__WLOGICAL_OP - Failed
    212-- Performing Test CXX_SUPPORTS__WOVERLOADED_VIRTUAL
    213-- Performing Test CXX_SUPPORTS__WOVERLOADED_VIRTUAL - Success
    214-- Performing Test CXX_SUPPORTS__WSUGGEST_OVERRIDE
    215-- Performing Test CXX_SUPPORTS__WSUGGEST_OVERRIDE - Success
    216-- Performing Test CXX_SUPPORTS__WIMPLICIT_FALLTHROUGH
    217-- Performing Test CXX_SUPPORTS__WIMPLICIT_FALLTHROUGH - Success
    218-- Performing Test CXX_SUPPORTS__WUNREACHABLE_CODE
    219-- Performing Test CXX_SUPPORTS__WUNREACHABLE_CODE - Success
    220-- Performing Test CXX_SUPPORTS__WDOCUMENTATION
    221-- Performing Test CXX_SUPPORTS__WDOCUMENTATION - Success
    222-- Performing Test CXX_SUPPORTS__WSELF_ASSIGN
    223-- Performing Test CXX_SUPPORTS__WSELF_ASSIGN - Success
    224-- Performing Test CXX_SUPPORTS__WBIDI_CHARS_ANY
    225-- Performing Test CXX_SUPPORTS__WBIDI_CHARS_ANY - Failed
    226-- Performing Test CXX_SUPPORTS__WUNDEF
    227-- Performing Test CXX_SUPPORTS__WUNDEF - Success
    228-- Performing Test CXX_SUPPORTS__WLEADING_WHITESPACE_SPACES
    229-- Performing Test CXX_SUPPORTS__WLEADING_WHITESPACE_SPACES - Failed
    230-- Performing Test CXX_SUPPORTS__WTRAILING_WHITESPACE_ANY
    231-- Performing Test CXX_SUPPORTS__WTRAILING_WHITESPACE_ANY - Failed
    232-- Performing Test CXX_SUPPORTS__WUNUSED_PARAMETER
    233-- Performing Test CXX_SUPPORTS__WUNUSED_PARAMETER - Success
    234-- Performing Test CXX_SUPPORTS__FNO_EXTENDED_IDENTIFIERS
    235-- Performing Test CXX_SUPPORTS__FNO_EXTENDED_IDENTIFIERS - Failed
    236-- Performing Test CXX_SUPPORTS__FDEBUG_PREFIX_MAP_A_B
    237-- Performing Test CXX_SUPPORTS__FDEBUG_PREFIX_MAP_A_B - Success
    238-- Performing Test CXX_SUPPORTS__FMACRO_PREFIX_MAP_A_B
    239-- Performing Test CXX_SUPPORTS__FMACRO_PREFIX_MAP_A_B - Success
    240-- Performing Test CXX_SUPPORTS__FSTACK_REUSE_NONE
    241-- Performing Test CXX_SUPPORTS__FSTACK_REUSE_NONE - Failed
    242-- Performing Test CXX_SUPPORTS__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_3_2d08
    243-- Performing Test CXX_SUPPORTS__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_3_2d08 - Success
    244-- Performing Test LINKER_SUPPORTS__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_3_2d08
    245-- Performing Test LINKER_SUPPORTS__U_FORTIFY_SOURCE__D_FORTIFY_SOURCE_3_2d08 - Success
    246-- Performing Test CXX_SUPPORTS__WSTACK_PROTECTOR
    247-- Performing Test CXX_SUPPORTS__WSTACK_PROTECTOR - Success
    248-- Performing Test CXX_SUPPORTS__FSTACK_PROTECTOR_ALL
    249-- Performing Test CXX_SUPPORTS__FSTACK_PROTECTOR_ALL - Success
    250-- Performing Test LINKER_SUPPORTS__FSTACK_PROTECTOR_ALL
    251-- Performing Test LINKER_SUPPORTS__FSTACK_PROTECTOR_ALL - Success
    252-- Performing Test CXX_SUPPORTS__FCF_PROTECTION_FULL
    253-- Performing Test CXX_SUPPORTS__FCF_PROTECTION_FULL - Failed
    254-- Performing Test CXX_SUPPORTS__FSTACK_CLASH_PROTECTION
    255-- Performing Test CXX_SUPPORTS__FSTACK_CLASH_PROTECTION - Failed
    256-- Performing Test CXX_SUPPORTS__MBRANCH_PROTECTION_BTI
    257-- Performing Test CXX_SUPPORTS__MBRANCH_PROTECTION_BTI - Success
    258-- Performing Test LINKER_SUPPORTS__WL___ENABLE_RELOC_SECTION
    259-- Performing Test LINKER_SUPPORTS__WL___ENABLE_RELOC_SECTION - Failed
    260-- Performing Test LINKER_SUPPORTS__WL___DYNAMICBASE
    261-- Performing Test LINKER_SUPPORTS__WL___DYNAMICBASE - Failed
    262-- Performing Test LINKER_SUPPORTS__WL___NXCOMPAT
    263-- Performing Test LINKER_SUPPORTS__WL___NXCOMPAT - Failed
    264-- Performing Test LINKER_SUPPORTS__WL___HIGH_ENTROPY_VA
    265-- Performing Test LINKER_SUPPORTS__WL___HIGH_ENTROPY_VA - Failed
    266-- Performing Test LINKER_SUPPORTS__WL__Z_RELRO
    267-- Performing Test LINKER_SUPPORTS__WL__Z_RELRO - Failed
    268-- Performing Test LINKER_SUPPORTS__WL__Z_NOW
    269-- Performing Test LINKER_SUPPORTS__WL__Z_NOW - Failed
    270-- Performing Test LINKER_SUPPORTS__WL__Z_SEPARATE_CODE
    271-- Performing Test LINKER_SUPPORTS__WL__Z_SEPARATE_CODE - Failed
    272-- Performing Test LINKER_SUPPORTS__WL__FIXUP_CHAINS
    273-- Performing Test LINKER_SUPPORTS__WL__FIXUP_CHAINS - Success
    274-- Found Python3: /opt/homebrew/bin/python3 (found suitable version "3.14.0", minimum required is "3.10") found components: Interpreter
    275-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
    276-- Performing Test HAVE_BUILTIN_PREFETCH
    277-- Performing Test HAVE_BUILTIN_PREFETCH - Success
    278-- Performing Test HAVE_MM_PREFETCH
    279-- Performing Test HAVE_MM_PREFETCH - Failed
    280-- Performing Test HAVE_SSE42
    281-- Performing Test HAVE_SSE42 - Failed
    282-- Performing Test HAVE_ARM64_CRC32C
    283-- Performing Test HAVE_ARM64_CRC32C - Success
    284-- Looking for F_FULLFSYNC
    285-- Looking for F_FULLFSYNC - found
    286-- Performing Test HAVE_CLMUL
    287-- Performing Test HAVE_CLMUL - Failed
    288-- Performing Test HAVE_PTHREAD_GETNAME_NP
    289-- Performing Test HAVE_PTHREAD_GETNAME_NP - Success
    290-- Performing Test HAVE_PTHREAD_THREADID_NP
    291-- Performing Test HAVE_PTHREAD_THREADID_NP - Success
    292-- Performing Test HAVE_PTHREAD_GETTHREADID_NP
    293-- Performing Test HAVE_PTHREAD_GETTHREADID_NP - Failed
    294-- The C compiler identification is Clang 21.1.5
    295-- Detecting C compiler ABI info
    296-- Detecting C compiler ABI info - done
    297-- Check for working C compiler: /opt/homebrew/Cellar/llvm/21.1.5/bin/clang - skipped
    298-- Detecting C compile features
    299-- Detecting C compile features - done
    300
    301Configuring secp256k1 subtree...
    302-- Performing Test HAVE_X86_64_ASM
    303-- Performing Test HAVE_X86_64_ASM - Failed
    304-- Could NOT find Valgrind (missing: Valgrind_INCLUDE_DIR Valgrind_WORKS) 
    305-- Performing Test C_SUPPORTS__WALL
    306-- Performing Test C_SUPPORTS__WALL - Success
    307-- Performing Test C_SUPPORTS__PEDANTIC
    308-- Performing Test C_SUPPORTS__PEDANTIC - Success
    309-- Performing Test C_SUPPORTS__WCAST_ALIGN
    310-- Performing Test C_SUPPORTS__WCAST_ALIGN - Success
    311-- Performing Test C_SUPPORTS__WCAST_ALIGN_STRICT
    312-- Performing Test C_SUPPORTS__WCAST_ALIGN_STRICT - Failed
    313-- Performing Test C_SUPPORTS__WCONDITIONAL_UNINITIALIZED
    314-- Performing Test C_SUPPORTS__WCONDITIONAL_UNINITIALIZED - Success
    315-- Performing Test C_SUPPORTS__WEXTRA
    316-- Performing Test C_SUPPORTS__WEXTRA - Success
    317-- Performing Test C_SUPPORTS__WNESTED_EXTERNS
    318-- Performing Test C_SUPPORTS__WNESTED_EXTERNS - Success
    319-- Performing Test C_SUPPORTS__WNO_LONG_LONG
    320-- Performing Test C_SUPPORTS__WNO_LONG_LONG - Success
    321-- Performing Test C_SUPPORTS__WNO_OVERLENGTH_STRINGS
    322-- Performing Test C_SUPPORTS__WNO_OVERLENGTH_STRINGS - Success
    323-- Performing Test C_SUPPORTS__WNO_UNUSED_FUNCTION
    324-- Performing Test C_SUPPORTS__WNO_UNUSED_FUNCTION - Success
    325-- Performing Test C_SUPPORTS__WRESERVED_IDENTIFIER
    326-- Performing Test C_SUPPORTS__WRESERVED_IDENTIFIER - Success
    327-- Performing Test C_SUPPORTS__WSHADOW
    328-- Performing Test C_SUPPORTS__WSHADOW - Success
    329-- Performing Test C_SUPPORTS__WSTRICT_PROTOTYPES
    330-- Performing Test C_SUPPORTS__WSTRICT_PROTOTYPES - Success
    331-- Performing Test C_SUPPORTS__WUNDEF
    332-- Performing Test C_SUPPORTS__WUNDEF - Success
    333-- Looking for sys/types.h
    334-- Looking for sys/types.h - found
    335-- Looking for sys/wait.h
    336-- Looking for sys/wait.h - found
    337-- Looking for unistd.h
    338-- Looking for unistd.h - found
    339
    340
    341secp256k1 configure summary
    342===========================
    343Build artifacts:
    344  library type ........................ Static
    345Optional modules:
    346  ECDH ................................ OFF
    347  ECDSA pubkey recovery ............... ON
    348  extrakeys ........................... ON
    349  schnorrsig .......................... ON
    350  musig ............................... ON
    351  ElligatorSwift ...................... ON
    352Parameters:
    353  ecmult window size .................. 15
    354  ecmult gen table size ............... 86 KiB
    355Optional features:
    356  assembly ............................ OFF
    357  external callbacks .................. OFF
    358Optional binaries:
    359  benchmark ........................... OFF
    360  noverify_tests ...................... ON
    361  tests ............................... ON
    362  exhaustive tests .................... ON
    363  ctime_tests ......................... OFF
    364  examples ............................ OFF
    365
    366Cross compiling ....................... FALSE
    367API visibility attributes ............. ON
    368Valgrind .............................. OFF
    369Preprocessor defined macros ........... ECMULT_WINDOW_SIZE=15 COMB_BLOCKS=43 COMB_TEETH=6
    370C compiler ............................ Clang 21.1.5, /opt/homebrew/Cellar/llvm/21.1.5/bin/clang
    371CFLAGS ................................ 
    372Compile options ....................... -Wall -pedantic -Wcast-align -Wconditional-uninitialized -Wextra -Wnested-externs -Wno-long-long -Wno-overlength-strings -Wno-unused-function -Wreserved-identifier -Wshadow -Wstrict-prototypes -Wundef
    373Build type:
    374 - CMAKE_BUILD_TYPE ................... RelWithDebInfo
    375 - CFLAGS ............................. -O2 -g 
    376 - LDFLAGS for executables ............ 
    377 - LDFLAGS for shared libraries ....... 
    378
    379
    380
    381Configure summary
    382=================
    383Executables:
    384  bitcoin ............................. ON
    385  bitcoind ............................ ON
    386  bitcoin-node (multiprocess) ......... ON
    387  bitcoin-qt (GUI) .................... OFF
    388  bitcoin-gui (GUI, multiprocess) ..... OFF
    389  bitcoin-cli ......................... ON
    390  bitcoin-tx .......................... ON
    391  bitcoin-util ........................ ON
    392  bitcoin-wallet ...................... ON
    393  bitcoin-chainstate (experimental) ... OFF
    394  libbitcoinkernel (experimental) ..... OFF
    395  kernel-test (experimental) .......... OFF
    396Optional features:
    397  wallet support ...................... ON
    398  external signer ..................... ON
    399  ZeroMQ .............................. OFF
    400  IPC ................................. ON
    401  USDT tracing ........................ OFF
    402  QR code (GUI) ....................... OFF
    403  DBus (GUI) .......................... OFF
    404Tests:
    405  test_bitcoin ........................ ON
    406  test_bitcoin-qt ..................... OFF
    407  bench_bitcoin ....................... OFF
    408  fuzz binary ......................... OFF
    409
    410Cross compiling ....................... FALSE
    411C++ compiler .......................... Clang 21.1.5, /opt/homebrew/Cellar/llvm/21.1.5/bin/clang++
    412CMAKE_BUILD_TYPE ...................... RelWithDebInfo
    413Preprocessor defined macros ........... OBJC_OLD_DISPATCH_PROTOTYPES=0
    414C++ compiler flags .................... -O2 -g -std=c++20 -fPIC -fdebug-prefix-map=/Users/matthewzipkin/Desktop/work/bitcoin/src=. -fmacro-prefix-map=/Users/matthewzipkin/Desktop/work/bitcoin/src=. -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-all -mbranch-protection=bti -Wall -Wextra -Wgnu -Wformat -Wformat-security -Wvla -Wshadow-field -Wthread-safety -Wthread-safety-pointer -Wloop-analysis -Wredundant-decls -Wunused-member-function -Wdate-time -Wconditional-uninitialized -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wdocumentation -Wself-assign -Wundef -Wno-unused-parameter
    415Linker flags .......................... -O2 -g -Wl,-dead_strip -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -fstack-protector-all -Wl,-fixup_chains -fPIE -Xlinker -pie
    416
    417NOTE: The summary above may not exactly match the final applied build flags
    418      if any additional CMAKE_* or environment variables have been modified.
    419      To see the exact flags applied, build with the --verbose option.
    420
    421Treat compiler warnings as errors ..... OFF
    422Use ccache for compiling .............. ON
    423
    424
    425-- Configuring done (16.6s)
    426-- Generating done (0.3s)
    427-- Build files have been written to: /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy
    

    Build command, trimmed to the compiler errors:

    cmake --build build_tidy -j 4

      0In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
      1In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
      2/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:43:8: error: redefinition of 'FooInterface'
      3   43 | struct FooInterface {
      4      |        ^
      5/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:43:8: note: previous definition is here
      6   43 | struct FooInterface {
      7      |        ^
      8In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
      9In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     10/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:72:22: error: redefinition of 'AddParams'
     11   72 | struct FooInterface::AddParams {
     12      |                      ^
     13/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:72:22: note: previous definition is here
     14   72 | struct FooInterface::AddParams {
     15      |                      ^
     16In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     17In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     18/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:87:22: error: redefinition of 'AddResults'
     19   87 | struct FooInterface::AddResults {
     20      |                      ^
     21/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:87:22: note: previous definition is here
     22   87 | struct FooInterface::AddResults {
     23      |                      ^
     24In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     25In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     26/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:102:22: error: redefinition of 'PassOutPointParams'
     27  102 | struct FooInterface::PassOutPointParams {
     28      |                      ^
     29/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:102:22: note: previous definition is here
     30  102 | struct FooInterface::PassOutPointParams {
     31      |                      ^
     32In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     33In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     34/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:117:22: error: redefinition of 'PassOutPointResults'
     35  117 | struct FooInterface::PassOutPointResults {
     36      |                      ^
     37/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:117:22: note: previous definition is here
     38  117 | struct FooInterface::PassOutPointResults {
     39      |                      ^
     40In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     41In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     42/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:132:22: error: redefinition of 'PassUniValueParams'
     43  132 | struct FooInterface::PassUniValueParams {
     44      |                      ^
     45/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:132:22: note: previous definition is here
     46  132 | struct FooInterface::PassUniValueParams {
     47      |                      ^
     48In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     49In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     50/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:147:22: error: redefinition of 'PassUniValueResults'
     51  147 | struct FooInterface::PassUniValueResults {
     52      |                      ^
     53/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:147:22: note: previous definition is here
     54  147 | struct FooInterface::PassUniValueResults {
     55      |                      ^
     56In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     57In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     58/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:162:22: error: redefinition of 'PassTransactionParams'
     59  162 | struct FooInterface::PassTransactionParams {
     60      |                      ^
     61/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:162:22: note: previous definition is here
     62  162 | struct FooInterface::PassTransactionParams {
     63      |                      ^
     64In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     65In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     66/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:177:22: error: redefinition of 'PassTransactionResults'
     67  177 | struct FooInterface::PassTransactionResults {
     68      |                      ^
     69/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:177:22: note: previous definition is here
     70  177 | struct FooInterface::PassTransactionResults {
     71      |                      ^
     72In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     73In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     74/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:192:22: error: redefinition of 'PassVectorCharParams'
     75  192 | struct FooInterface::PassVectorCharParams {
     76      |                      ^
     77/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:192:22: note: previous definition is here
     78  192 | struct FooInterface::PassVectorCharParams {
     79      |                      ^
     80In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     81In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     82/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:207:22: error: redefinition of 'PassVectorCharResults'
     83  207 | struct FooInterface::PassVectorCharResults {
     84      |                      ^
     85/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:207:22: note: previous definition is here
     86  207 | struct FooInterface::PassVectorCharResults {
     87      |                      ^
     88In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     89In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     90/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:222:22: error: redefinition of 'PassScriptParams'
     91  222 | struct FooInterface::PassScriptParams {
     92      |                      ^
     93/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:222:22: note: previous definition is here
     94  222 | struct FooInterface::PassScriptParams {
     95      |                      ^
     96In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
     97In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
     98/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:237:22: error: redefinition of 'PassScriptResults'
     99  237 | struct FooInterface::PassScriptResults {
    100      |                      ^
    101/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:237:22: note: previous definition is here
    102  237 | struct FooInterface::PassScriptResults {
    103      |                      ^
    104In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
    105In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
    106/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:255:21: error: redefinition of 'Client'
    107  255 | class FooInterface::Client
    108      |                     ^
    109/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:255:21: note: previous definition is here
    110  255 | class FooInterface::Client
    111      |                     ^
    112In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
    113In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
    114/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:290:21: error: redefinition of 'Server'
    115  290 | class FooInterface::Server
    116      |                     ^
    117/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:290:21: note: previous definition is here
    118  290 | class FooInterface::Server
    119      |                     ^
    120In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
    121In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
    122/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:337:32: error: redefinition of 'Reader'
    123  337 | class FooInterface::AddParams::Reader {
    124      |                                ^
    125/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:337:32: note: previous definition is here
    126  337 | class FooInterface::AddParams::Reader {
    127      |                                ^
    128In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
    129In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
    130/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:370:32: error: redefinition of 'Builder'
    131  370 | class FooInterface::AddParams::Builder {
    132      |                                ^
    133/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:370:32: note: previous definition is here
    134  370 | class FooInterface::AddParams::Builder {
    135      |                                ^
    136In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
    137In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
    138/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:402:32: error: redefinition of 'Pipeline'
    139  402 | class FooInterface::AddParams::Pipeline {
    140      |                                ^
    141/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:402:32: note: previous definition is here
    142  402 | class FooInterface::AddParams::Pipeline {
    143      |                                ^
    144In file included from /Users/matthewzipkin/Desktop/work/bitcoin/src/ipc/test/ipc_test.cpp:12:
    145In file included from /Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.proxy.h:6:
    146/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/test/ipc_test.capnp.h:418:33: error: redefinition of 'Reader'
    147  418 | class FooInterface::AddResults::Reader {
    148      |                                 ^
    149/Users/matthewzipkin/Desktop/work/bitcoin/build_tidy/src/ipc/test/ipc_test.capnp.h:418:33: note: previous definition is here
    150  418 | class FooInterface::AddResults::Reader {
    151      |                                 ^
    152fatal error: too many errors emitted, stopping now [-ferror-limit=]
    
  2. hebasto commented at 5:55 pm on January 13, 2026: member

    From the provided logs:

    0You have changed variables that require your cache to be deleted.
    1Configure will be re-run and you may have to reset some variables.
    

    Have you tried building using a clean / fresh build directory?

  3. pinheadmz commented at 6:12 pm on January 13, 2026: none
    Certainly a clean build directory (build_tidy) but ill try without ccache next
  4. pinheadmz commented at 6:59 pm on January 13, 2026: none
    Fixed by deleting ccache directory. thanks!
  5. pinheadmz closed this on Jan 13, 2026


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/libmultiprocess. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-01-27 07:30 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me