Repository navigation
build: require KJ exception support for IPC - #36060
Closed
151henry151 wants to merge 3 commits into
Closed
151henry151 wants to merge 3 commits into
151henry151 wants to merge 3 commits into
Conversation
Also pin native_capnp, which host mpgen links.
The check is in Core cmake because src/ipc/libmultiprocess is a subtree. Fail if the compiler cannot throw or libkj lacks getCaughtExceptionAsKj. Header autodetection is not a configure failure. Look up libkj next to the scraped headers so depends and system copies cannot be mixed. The compiler probe uses CMAKE_CXX_FLAGS; target-level -fno-exceptions would not trip it.
PRIVATE so the define is not exported. Skip WITH_EXTERNAL_LIBMULTIPROCESS; those TUs are already compiled. Apply to bitcoin_ipc, bitcoin_ipc_test, bitcoin_ipc_fuzz, the in-tree mp targets, and fuzz (which compiles ipc.cpp with kj headers).
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36060. ReviewsSee the guideline and AI policy for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Member
|
Closing due to inactivity and AI policy violation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IPC needs libkj built with exception support; runCatchingExceptions depends on getCaughtExceptionAsKj, which is omitted when KJ_NO_EXCEPTIONS is set.
Build depends capnproto with -DKJ_NO_EXCEPTIONS=0. Fail configure if the compiler or the installed libkj lacks exception support. Define the same macro privately on in-tree IPC targets so our headers match the library.
Addresses #36058
Tested with:
make -C depends NO_QT=1 NO_QR=1 -j$(nproc)— passedcmake -B /tmp/btc-36058-deptc --toolchain depends/x86_64-pc-linux-gnu/toolchain.cmake -DBUILD_GUI=OFF -DBUILD_BENCH=OFF -DBUILD_TESTS=ON -DBUILD_FUZZ_BINARY=ON— passedcmake --build /tmp/btc-36058-deptc --target bitcoin_ipc multiprocess mputil mpgen bitcoin_ipc_test bitcoin_ipc_fuzz mptest bitcoind bitcoin-node bitcoin-cli bitcoin test_bitcoin fuzz— passedmptest— 16 passedtest_bitcoin --run_test=ipc_tests— passedinterface_ipc.py— passedinterface_ipc_cli.py— passedinterface_ipc_mining.py— passedcmake -DENABLE_IPC=OFF— passedcmake -DENABLE_IPC=ON -DCMAKE_CXX_FLAGS=-fno-exceptions— configure fails (compiler probe)cmake -DENABLE_IPC=ON -DWITH_EXTERNAL_LIBMULTIPROCESS=ON -DCMAKE_PREFIX_PATH=/tmp/mp-ext-prefix— passedtest/lint/git-subtree-check.sh src/ipc/libmultiprocess— GOOD