ci: Debian Trixie CI image, CGO link liblzma with libunwind#287
Open
ci: Debian Trixie CI image, CGO link liblzma with libunwind#287
Conversation
- Dockerfile.ci: debian:trixie-slim, apt.llvm.org trixie LLVM 21, gcc-14, libunwind-dev, liblzma-dev, libstdc++-14-dev; replace deprecated apt-key. - entrypoint.go: -llzma / -l:liblzma.a for static links (same as Deckhouse module). - mcli download uses GO_ARCH for arm64 builds. Made-with: Cursor
GCC 14 libstdc++ uses sized-range fast paths in std::ranges::equal. GenericBitset::size() is bit width, not iteration length (set-bit count), so disable_sized_range restores correct element-wise comparison. Made-with: Cursor
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.
Summary
Dockerfile.ci: switch from Ubuntu 24.04 to Debian 13 (trixie-slim) so the devcontainer / CI image matches the Deckhouse module base (debian-trixie).llvm-toolchain-trixie-21); modern apt keyring instead ofapt-key.pp/go/cppbridge/entrypoint.go: add-llzma/-l:liblzma.ato CGOLDFLAGSfor static links — Debian’slibunwind.apulls in lzma (minidebuginfo), same as required for module builds.mcli: download usesGO_ARCH(arm64/amd64) instead of hardcoded amd64.TESTING.md: note that the CI image is Debian Trixie.Motivation
Align local/CI environment with the module image, avoid a module-only patch for lzma, and keep one set of link flags in-tree.
Verification
make buildsucceeded in ARM devcontainer after rebuild.Dockerfile.ciimage build verified on linux/amd64 host.Made with Cursor