Repository navigation
Conversation
blvm 0.1.63 and 0.1.64 x86_64 binaries, tarball members and .deb all list
libcudart.so.13 in NEEDED, the .deb has no Depends on it, and the binary
exits 127 ("error while loading shared libraries: libcudart.so.13") on
any machine without the CUDA runtime, including the Umbrel image.
blvm-secp256k1 <= 0.1.13 links CUDA whenever its build host has nvcc,
and the release runner does.
Set BLVM_SECP256K1_NO_GPU=1 on the Linux build and packaging steps, which
those secp versions already honour, so this works before a secp release
with CUDA opt-in. Add scripts/check-no-cuda.sh and run it on every Linux
tarball and .deb before upload; it fails the release if any ELF inside
needs a CUDA library. The test step is untouched: it builds
--all-features, which turns on secp-gpu on purpose.
Evidence: check-no-cuda.sh on the published v0.1.63 binary, .deb and
tarball, and the v0.1.64 .deb, exits 1 and names libcudart.so.13 for
each ELF. shellcheck is clean.
This was referenced Oct 21, 2026
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.
What
The published v0.1.63 and v0.1.64 Linux x86_64 artifacts don't start on a machine without CUDA. Every ELF in the binary, the tarball and the
.deblistslibcudart.so.13in NEEDED, and the.debhas an emptyDepends. That includes the Umbrel image, which runs the GitHub binary.The cause is that blvm-secp256k1 <= 0.1.13 links CUDA whenever
nvccis on the build host, and the release runner has it. The root fix is BTCDecoded/blvm-secp256k1#1, which makes CUDA opt-in. This PR fixes the release now and stops it from happening again.BLVM_SECP256K1_NO_GPU=1is set on the Linux base build, experimental build and packaging steps. The published secp versions already honour it.scripts/check-no-cuda.shchecks every ELF inside each Linux tarball and.debbefore upload, and fails the release if any of them needs a CUDA library.--all-features, which turns onsecp-gpuon purpose, and setting the env there would make that build panic.Evidence
The build host has a CUDA 13 toolkit with
CUDA_PATHset, like the runner.blvmwas built frommainagainst published crates with--features production, the same way the release builds it.libcudart.so.13blvm versionwithout CUDABLVM_SECP256K1_NO_GPU=1(this PR)getblockcount→0check-no-cuda.shrun against the published artifacts:.deb(/usr/bin/blvm): FAILblvm,blvm-sign,blvm-verify,blvm-keygen,blvm-commons,key-managerandtest-content-hash.deb: FAILshellcheckis clean, and the workflow YAML parses.Not in this PR
prerelease.ymlandnightly-prerelease.ymlbuild the same way and probably need the same env and gate.blvm 0.1.0, Gitc049ac6), not the release. That is review finding H10 and isn't addressed here.Cargo.lockpins secp 0.1.12, so it needscargo update -p blvm-secp256k1once secp#1 is released.Review notes: merge order and open decisions (BLVM criticals set)
This PR is one of 7 fixing the four criticals from the BLVM three-lens review:
blvm-consensus#22 (undo log), blvm-consensus#23 (PoW vs target), blvm-node#32 (PoW test fixture), blvm-primitives#2 (min chainwork), blvm-node#31 (assume-valid), blvm-secp256k1#1 (no CUDA by default), blvm#10 (release build + no-CUDA check).
Merge order
consensus_config_default.json, or its test fails.cargo update -p blvm-secp256k1in blvm, then cut a release with blvm#10. v0.1.63 and v0.1.64 stay broken (need libcudart) until then.Decisions for the reviewer
Known, not fixed here:
-assumevalid=<hash>CLI parses the hash in the wrong byte order; the GHCR image ships a different binary (blvm 0.1.0).