Skip to content

build: link bench_qbit against libbitcoinpqc - #244

Merged
djh58 merged 1 commit into
feature/pq-transportfrom
djh58/bench-link-bitcoinpqc
Oct 23, 2026
Merged

djh58 merged 1 commit into
feature/pq-transportfrom
djh58/bench-link-bitcoinpqc

Conversation

@djh58

@djh58 djh58 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

bench_qbit didn't build without the wallet. The benchmarks include crypto/pqc.h, which includes libbitcoinpqc's headers, but the bench target got libbitcoinpqc's include directory only when the wallet was built. With -DBUILD_BENCH=ON -DENABLE_WALLET=OFF:

src/crypto/pqc.h:8:10: fatal error: 'libbitcoinpqc/slh_dsa.h' file not found

in ccoins_caching.cpp and checkinputs_p2mr_pqc.cpp (seen on macOS arm64 and reproduced on Linux x86_64). CI builds the benchmarks only with the wallet on, so it didn't show there.

This links bitcoinpqc to bench_bitcoin directly, as the benchmarks use it directly.

Verification

  • Linux x86_64, -DBUILD_BENCH=ON -DENABLE_WALLET=OFF: before, the compile commands for ccoins_caching.cpp lacked libbitcoinpqc's include directory; after, bench_bitcoin builds and bench_qbit runs.
  • With the wallet on, nothing changes: the target already had the directory.

Draft until the pull requests ahead of it in feature/pq-transport have run their CI, since the self-hosted runners take one Full Validation at a time.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

The benchmarks include crypto/pqc.h, which includes libbitcoinpqc's
headers, but bench_bitcoin got libbitcoinpqc's include directory only
when the wallet was built. With -DBUILD_BENCH=ON -DENABLE_WALLET=OFF,
ccoins_caching.cpp and checkinputs_p2mr_pqc.cpp failed to compile:
'libbitcoinpqc/slh_dsa.h' file not found. Link bitcoinpqc directly, as
the benchmarks use it directly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@djh58

djh58 commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T23:33:17.807155Z 00f364e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@djh58

djh58 commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 00f364e96f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@djh58
djh58 marked this pull request as ready for review October 23, 2026 01:11
@djh58
djh58 merged commit 507a171 into feature/pq-transport Oct 23, 2026
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant