Fix builder: install llvm-dev and libclang-dev for clang-sys/bindgen - #17
Closed
alexk-aleo wants to merge 1 commit into
Closed
Fix builder: install llvm-dev and libclang-dev for clang-sys/bindgen#17alexk-aleo wants to merge 1 commit into
alexk-aleo wants to merge 1 commit into
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
Contributor
|
Redundant PR (#18) |
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 and Push SnarkOS workflow fails during the Docker build step (telemetry / history-telemetry feature sets) with:
Root cause
The
telemetryandhistoryfeature sets pull inclang-sys(viabindgen), which needslibclangandllvm-configat build time. The builder stage installedclang lld binutilsbut not the LLVM dev packages that providelibclang.soandllvm-config, soclang-sys's build script panicked.Fix
Add
llvm-dev(providesllvm-config) andlibclang-dev(provideslibclang.so) to the builder-stageapt installin all Dockerfiles for consistency:Dockerfileservice/snarkos-telemetry/Dockerfileservice/snarkos-history-telemetry/Dockerfileservice/snarkos-no-features/DockerfileThese packages are only installed in the discarded builder stage, so the runtime image is unaffected.
https://claude.ai/code/session_011UyaFFB58ZnFBdhVNWf23Z
Generated by Claude Code