cmake: Add missed `Boost::headers` #34103

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:251218-ipc-boost changing 1 files +1 −0
  1. hebasto commented at 2:44 PM on December 18, 2025: member

    On Fedora 43:

    $ gmake -C depends NO_LIBEVENT=1 NO_QT=1 NO_ZMQ=1 NO_WALLET=1 NO_USDT=1 NO_IPC=1
    $ cmake -B build -DBoost_ROOT=depends/x86_64-pc-linux-gnu --preset dev-mode
    <snip>
    [363/1092] Building CXX object src/ipc/CMakeFiles/bitcoin_ipc.dir/capnp/mining.cpp.o
    FAILED: [code=1] src/ipc/CMakeFiles/bitcoin_ipc.dir/capnp/mining.cpp.o 
    /usr/bin/ccache /usr/lib64/ccache/c++ -DKJ_USE_FIBERS -I/home/hebasto/dev/bitcoin/build/src -I/home/hebasto/dev/bitcoin/src -I/home/hebasto/dev/bitcoin/build/src/ipc -I/home/hebasto/dev/bitcoin/src/ipc/libmultiprocess/include -I/home/hebasto/dev/bitcoin/build/src/ipc/libmultiprocess/include -I/home/hebasto/dev/bitcoin/src/univalue/include -O2 -g -std=c++20 -fPIC -pthread -fno-extended-identifiers -fdebug-prefix-map=/home/hebasto/dev/bitcoin/src=. -fmacro-prefix-map=/home/hebasto/dev/bitcoin/src=. -fstack-reuse=none -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wformat -Wformat-security -Wvla -Wredundant-decls -Wdate-time -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wbidi-chars=any -Wundef -Wleading-whitespace=spaces -Wtrailing-whitespace=any -Wno-unused-parameter -MD -MT src/ipc/CMakeFiles/bitcoin_ipc.dir/capnp/mining.cpp.o -MF src/ipc/CMakeFiles/bitcoin_ipc.dir/capnp/mining.cpp.o.d -o src/ipc/CMakeFiles/bitcoin_ipc.dir/capnp/mining.cpp.o -c /home/hebasto/dev/bitcoin/src/ipc/capnp/mining.cpp 
    In file included from /home/hebasto/dev/bitcoin/src/node/miner.h:13,
                     from /home/hebasto/dev/bitcoin/src/ipc/capnp/mining-types.h:12,
                     from /home/hebasto/dev/bitcoin/src/ipc/capnp/mining.cpp:5:
    /home/hebasto/dev/bitcoin/src/txmempool.h:28:10: fatal error: boost/multi_index/hashed_index.hpp: No such file or directory
       28 | #include <boost/multi_index/hashed_index.hpp>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    <snip>
    

    This PR fixes the issue.

  2. cmake: Add missed `Boost::headers` 11e029dcc6
  3. hebasto added the label Build system on Dec 18, 2025
  4. DrahtBot commented at 2:44 PM on December 18, 2025: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34103.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. fanquake commented at 4:27 PM on December 19, 2025: member

    I can't recreate using the steps provided. At 5e7931af35732d1c0474f9e9d1adf270b850bd28:

    # uname -a
    Linux fedora-32gb-hel1-3 6.18.0-65.fc44.aarch64 <snip>aarch64 GNU/Linux
    # gmake -C depends NO_LIBEVENT=1 NO_QT=1 NO_ZMQ=1 NO_WALLET=1 NO_USDT=1 NO_IPC=1
    <snip>
    copying packages: boost
    to: /root/ci_scratch/depends/aarch64-unknown-linux-gnu
    To build Bitcoin Core with these packages, pass '--toolchain /root/ci_scratch/depends/aarch64-unknown-linux-gnu/toolchain.cmake' to the first CMake invocation.
    # cmake -B build -DBoost_ROOT=depends/aarch64-unknown-linux-gnu --preset dev-mode
    <snip>
    -- Generating done (0.3s)
    -- Build files have been written to: /root/ci_scratch/build
    # cmake --build build -j16
    <snip>
    [101%] Linking CXX executable ../../bin/test_bitcoin
    [101%] Built target test_bitcoin
    
  6. hebasto commented at 4:31 PM on December 19, 2025: member

    I can't recreate using the steps provided. At 5e7931a:

    I forgot to mention that the boost-devel package was not installed. My apologies.

  7. fanquake commented at 4:35 PM on December 19, 2025: member

    Why does the presence of a system package make a difference to compilation, if CMake has been explicitly configured to only take headers from Boost in depends?

  8. hebasto commented at 4:44 PM on December 19, 2025: member

    Why does the presence of a system package make a difference to compilation, if CMake has been explicitly configured to only take headers from Boost in depends?

    Because the /usr/include path, where system's boost headers reside, is included by the compiler implicitly.

  9. hebasto commented at 10:17 PM on December 23, 2025: member

    Closing in favour of #34143.

  10. hebasto closed this on Dec 23, 2025

  11. hebasto deleted the branch on Feb 11, 2026

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 21:12 UTC

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