Skip to content

Fix the Arm64 image build - #20

Merged
jserv merged 1 commit into
devfrom
fix
Nov 13, 2026
Merged

jserv merged 1 commit into
devfrom
fix

Conversation

@jserv

@jserv jserv commented Nov 13, 2026 •

Copy link
Copy Markdown

The push to dev failed in run 43364358702: the multi-platform "Build and push" step could not install verilator on linux/arm64. Stable Alpine (3.21 to 3.23) packages Verilator for x86-64 only; only edge has an aarch64 build.

  • Install verilator and verilator-dev from edge/community on both architectures through an @edge-tagged repository, which keeps every other package on 3.22. Both images get Verilator 5.050 (amd64 moves from 5.036).
  • apk del now uses --no-cache; without an index it cannot resolve the @edge tag and refuses to commit.
  • Install qemu-x86_64 (firtool on Arm64) once in the base stage instead of in both later stages.
  • Build every platform on pull requests too, publishing only on push, so a platform-specific break fails before merge.

Verified locally: the amd64 image passes the CI smoke test offline (four notebooks and the visualizer checks); the arm64 image, built under QEMU, runs native Verilator 5.050, firtool 1.160.0 through qemu-user, and 2.6_chiselsim.ipynb offline.

Trade-off: edge packages can be rebuilt without notice, which makes the image less reproducible; CI catches a break. Running the Arm64 smoke test in CI remains open.


Summary by cubic

Fixes the multi-platform Docker build, which failed on linux/arm64 because stable Alpine (3.21–3.23) only packages Verilator for x86-64. The image now installs verilator and verilator-dev from Alpine edge via an @edge tag on both architectures, keeping all other packages on 3.22 and giving both images Verilator 5.050.

  • apk del now uses --no-cache so the @edge tag still resolves without an index.
  • qemu-x86_64 is installed once in the base stage instead of in both later stages.
  • CI now builds every platform on pull requests, publishing only on push, so platform-specific breaks fail before merge.

Trade-off: edge packages can be rebuilt without notice, making the image slightly less reproducible; CI catches a break.

Written for commit 38dd429. Summary will update on new commits.

View guided diff Turn on auto-fix

Stable Alpine (3.21 to 3.23) packages Verilator for x86-64 only, so the
multi-platform push on dev failed with "verilator (no such package)" on
linux/arm64. Take verilator and verilator-dev from edge/community on
both architectures through an @edge-tagged repository, which keeps
every other package on 3.22 and gives both images Verilator 5.050.
apk del now uses --no-cache, since without an index it cannot resolve
the @edge tag and refuses to commit.

Install qemu-x86_64 for firtool once in the base stage instead of in
both later stages, and build every platform on pull requests as well,
publishing only on push, so a platform-specific break fails before
merge.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread Dockerfile Resolved
@jserv
jserv merged commit c1d118d into dev Nov 13, 2026
2 checks passed
@jserv
jserv deleted the fix branch November 13, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant