fix(docker): build Clam with clang-16, and validate Dockerfile.dev on PRs - #58
Merged
Conversation
The image build has been failing on develop since #57 merged. Clam's sea-dsa dependency defines seadsa::mkTLIGetter with a redundant namespace qualification inside its own namespace; clang reports that as -Wextra-qualification, GCC rejects it outright, and the build died at 34%. The Clam RUN was picking up GCC 11 because the ENV CC/CXX=clang-16 that the rest of the image relies on is declared in section 11, 88 lines *below* it, and a Docker ENV only applies to later instructions. Naming the compilers in CLAM_CFG fixes it without depending on instruction order, and matches what upstream's own docker/clam.Dockerfile passes. Neither dependency drifted: clam dev16 is at 302bf49a (2026-08-07) and sea-dsa dev16 at 661855a3 (2026-08-12), both older than the recipe. This never built -- it was written and merged without ever being compiled. That is the second defect, and the one worth fixing properly: the publish workflow only ran after a merge to develop, so no PR could have caught an unbuildable Dockerfile. It now also runs on pull requests that touch Dockerfile.dev, with push disabled so a branch never overwrites :latest. This PR touches Dockerfile.dev, so that new job validates the fix here. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This was referenced Aug 22, 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 broke
The
Publish Docker Imageworkflow has failed ondevelopsince #57 merged (run 32551799773). TheCIworkflow is green — only the image build is red.Root cause
sea-dsadefinesmkTLIGetterwith a redundantseadsa::qualification insidenamespace seadsa. Reproduced both ways in the image:c++(GCC 11.4.0, Ubuntu 22.04 default)clang++-16-Wextra-qualificationThe Clam
RUNwas getting GCC becauseENV CC=/usr/bin/clang-16/ENV CXX=...live in section 11 ofDockerfile.dev, 88 lines below the Clam build in section 7b — and a DockerENVonly applies to later instructions. Upstream's owndocker/clam.Dockerfilepasses-DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16explicitly; clang is the toolchain Clam is built against.This is not upstream drift.
seahorn/clamdev16is at302bf49a(2026-08-07) andseahorn/sea-dsadev16at661855a3(2026-08-12) — both older than the recipe that references them. The section never built; it was merged without ever being compiled.The fix
CLAM_CFG, so the build no longer depends on instruction ordering.Dockerfile.dev, withpush: false.(2) is the durable half. The workflow only ever ran after a merge to
develop, so no PR could have caught an unbuildable Dockerfile — which is exactly how this reached the default development branch. It ispaths-filtered, so PRs that don't touch the Dockerfile pay nothing, and GHCR login is skipped on PRs (nopackages: writefrom forks, and nothing to push anyway).Because this PR touches
Dockerfile.dev, the new job builds the image here — the green check on this PR is the validation of the fix, pre-merge.Why it matters beyond CI
--add-invariantsis refused with exit code 3 unless the build ships Clam (#54). Until this image publishes, theInvariants (Clam)CI job stays atCAPABILITY: ABSENT. Merging this is what flips it toPRESENT.Known follow-up (not in scope here)
Dockerfile.devclonesclamat branchdev16and Clam'sextratarget clonessea-dsa/llvm-seahornatdev16too — all unpinned moving branches. Not the cause of this failure, but it means a future upstream commit can break the image with no change on our side. Worth pinning to SHAs separately.Refs #54