clang ubsan build fails link step after cmake migration #31947

issue maflcko opened this issue on February 24, 2025
  1. maflcko commented at 3:58 PM on February 24, 2025: member

    The error only happens for cmake builds, starting with the cmake migration.

    Steps to reproduce on Debian/Ubuntu:

    • Install packages and clone repo: ( export DEBIAN_FRONTEND=noninteractive && apt update && apt install git ccache make build-essential libtool cmake autotools-dev automake pkg-config bsdmainutils python3 libevent-dev libboost-dev libsqlite3-dev clang llvm -y && git clone https://github.com/bitcoin/bitcoin.git b-c ) && cd b-c
    • git checkout 338bc2cd261ba3daf7fb494f8cb4a534762e292c # cmake migration (allows to test autotools and cmake on the same commit)
    • ./autogen.sh && rm -rf ./bld-a && mkdir bld-a && ( cd bld-a && ../configure CC=clang CXX=clang++ --with-sanitizers=undefined && make -j$(nproc) src/bitcoind ) # (passes)
    • rm -rf ./bld-c && cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSANITIZERS=undefined -B ./bld-c && cmake --build ./bld-c -j $(nproc) --target=bitcoind # (fails)
  2. maflcko commented at 4:04 PM on February 24, 2025: member

    Sorry, wrong alarm

  3. maflcko closed this on Feb 24, 2025

  4. bitcoin locked this on Feb 25, 2025
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 09:13 UTC

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