From 5f31af9cc3cbdfad529f3951a605c4ad23024bbe Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 15 Jun 2026 15:00:05 +0000 Subject: [PATCH 1/2] Add llvm-dev and libclang-dev to builder stage 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 --- Dockerfile | 2 +- service/snarkos-history-telemetry/Dockerfile | 2 +- service/snarkos-no-features/Dockerfile | 2 +- service/snarkos-telemetry/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 431efe5..159408a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ RUN apt update && \ apt install -y --no-install-recommends \ curl git build-essential wget \ - clang lld binutils \ + clang lld binutils llvm-dev libclang-dev \ gcc libssl-dev make pkg-config xz-utils ca-certificates && \ apt clean && rm -rf /var/lib/apt/lists/* diff --git a/service/snarkos-history-telemetry/Dockerfile b/service/snarkos-history-telemetry/Dockerfile index 49217db..4612686 100644 --- a/service/snarkos-history-telemetry/Dockerfile +++ b/service/snarkos-history-telemetry/Dockerfile @@ -18,7 +18,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ RUN apt update && \ apt install -y --no-install-recommends \ curl git build-essential wget \ - clang lld binutils \ + clang lld binutils llvm-dev libclang-dev \ gcc libssl-dev make pkg-config xz-utils ca-certificates && \ apt clean && rm -rf /var/lib/apt/lists/* diff --git a/service/snarkos-no-features/Dockerfile b/service/snarkos-no-features/Dockerfile index 2dc1078..341f2a9 100644 --- a/service/snarkos-no-features/Dockerfile +++ b/service/snarkos-no-features/Dockerfile @@ -18,7 +18,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ RUN apt update && \ apt install -y --no-install-recommends \ curl git build-essential wget \ - clang lld binutils \ + clang lld binutils llvm-dev libclang-dev \ gcc libssl-dev make pkg-config xz-utils ca-certificates && \ apt clean && rm -rf /var/lib/apt/lists/* diff --git a/service/snarkos-telemetry/Dockerfile b/service/snarkos-telemetry/Dockerfile index f71596e..6ee30c8 100644 --- a/service/snarkos-telemetry/Dockerfile +++ b/service/snarkos-telemetry/Dockerfile @@ -18,7 +18,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ RUN apt update && \ apt install -y --no-install-recommends \ curl git build-essential wget \ - clang lld binutils \ + clang lld binutils llvm-dev libclang-dev \ gcc libssl-dev make pkg-config xz-utils ca-certificates && \ apt clean && rm -rf /var/lib/apt/lists/* From e02d0beff1e55aa62374ee4bfb57495120a941d9 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 15 Jun 2026 15:56:31 +0000 Subject: [PATCH 2/2] Add llvm-dev and libclang-dev to boot-patch builder 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. --- service/boot-patch/Dockerfile.boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/boot-patch/Dockerfile.boot b/service/boot-patch/Dockerfile.boot index 7f1e962..b381eaa 100644 --- a/service/boot-patch/Dockerfile.boot +++ b/service/boot-patch/Dockerfile.boot @@ -13,7 +13,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \ RUN apt update && \ apt install -y --no-install-recommends \ curl git build-essential wget \ - clang lld binutils \ + clang lld binutils llvm-dev libclang-dev \ gcc libssl-dev make pkg-config xz-utils ca-certificates && \ apt clean && rm -rf /var/lib/apt/lists/*