fix(ci): use ubuntu:22.04 for RISC-V cross-compilation#376
Merged
marc0der merged 1 commit intosdkman:masterfrom Feb 7, 2026
Merged
fix(ci): use ubuntu:22.04 for RISC-V cross-compilation#376marc0der merged 1 commit intosdkman:masterfrom
marc0der merged 1 commit intosdkman:masterfrom
Conversation
The ubuntu:20.04 container ships gcc-9-riscv64-linux-gnu with binutils that cannot parse newer RISC-V ISA extension strings (zaamo, zalrsc, zca, zcd, zmmul) emitted by the Rust stable compiler, causing linker error "unsupported ISA subset 'z'". Ubuntu 22.04 ships gcc-12-riscv64-linux-gnu with binutils >= 2.38 which supports these extensions. Only the RISC-V entry changes; other Linux targets keep ubuntu:20.04 for maximum glibc compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
marc0der
approved these changes
Feb 7, 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.
Summary
ubuntu:22.04container instead ofubuntu:20.04for theriscv64gc-unknown-linux-gnubuild target in the release workflowunsupported ISA subset 'z'caused by old binutils in ubuntu:20.04 not recognizing newer RISC-V ISA extensions (zaamo,zalrsc,zca,zcd,zmmul) emitted by the Rust stable compilerubuntu:20.04for maximum glibc compatibilityContext
The release workflow run #21783422096 failed on the
Build riscv64gc-unknown-linux-gnujob.Ubuntu 22.04 ships
gcc-12-riscv64-linux-gnuwith binutils >= 2.38 which supports these extensions.Test plan