Fix boot-patch image build: add llvm-dev and libclang-dev#18
Merged
Conversation
The telemetry and history feature builds pull in clang-sys via bindgen, which requires libclang and llvm-config at build time. The builder stage installed clang/lld/binutils but not the LLVM dev packages, causing: error: failed to run custom build command for `clang-sys v1.8.1` couldn't execute `llvm-config --prefix` ... No such file or directory Add llvm-dev (provides llvm-config) and libclang-dev (provides libclang.so) to all builder stages. https://claude.ai/code/session_011UyaFFB58ZnFBdhVNWf23Z
The --features history build pulls in a crate (via clang-sys/bindgen) that requires libclang at build time. Without llvm-dev/libclang-dev the build fails with 'couldn't find any valid shared libraries matching libclang.so'. This brings Dockerfile.boot in line with the other service Dockerfiles.
sergii-aleo
approved these changes
Jun 16, 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.
Problem
The
Build SnarkOS Boot-Patch Imageaction fails duringcargo build --release --features historywith:The
--features historybuild pulls in a crate (viaclang-sys/bindgen, e.g. rocksdb bindings) that needslibclangat build time.Cause
service/boot-patch/Dockerfile.bootinstalled onlyclang lld binutilsin the builder stage, omittingllvm-devandlibclang-dev. Every other Dockerfile in the repo (rootDockerfile,snarkos-telemetry,snarkos-history-telemetry,snarkos-no-features) already includes these packages.Fix
Add
llvm-dev libclang-devto the builder's apt install list, matching the other service Dockerfiles.Generated by Claude Code