riscv-64 Docker build: unblock Ubuntu 26.04 by pinning host compiler and unsafe-configure override#360
Merged
Merged
Conversation
Copilot
AI
changed the title
build(deps): bump ubuntu from 22.04 to 26.04 in /tests/rsrc/riscv-64 (fix CI)
fix(ci): bump ubuntu 22.04→26.04 in riscv-64 Dockerfile and set FORCE_UNSAFE_CONFIGURE
Jun 12, 2026
Copilot created this pull request from a session on behalf of
Wenzel
June 12, 2026 15:17
View session
Copilot
AI
changed the title
fix(ci): bump ubuntu 22.04→26.04 in riscv-64 Dockerfile and set FORCE_UNSAFE_CONFIGURE
riscv-64 Docker build: unblock Ubuntu 26.04 by pinning host compiler and unsafe-configure override
Jun 12, 2026
There was a problem hiding this comment.
Pull request overview
Updates the RISCV-64 test-artifact Docker build environment to succeed on Ubuntu 26.04 by aligning Buildroot host-package configuration/compilation with the container’s toolchain and root execution context.
Changes:
- Bumped the Buildroot build stage base image from Ubuntu 22.04 to Ubuntu 26.04 (pinned by digest).
- Installed GCC 13 toolchain packages and set
HOSTCC/HOSTCXXfor Buildroot host-package compilation. - Added
FORCE_UNSAFE_CONFIGURE=1to bypass Buildroot/Autoconf “don’t run configure as root” guards in Docker builds.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+43
to
46
| ENV FORCE_UNSAFE_CONFIGURE=1 | ||
| ENV HOSTCC=/usr/bin/gcc-13 | ||
| ENV HOSTCXX=/usr/bin/g++-13 | ||
| RUN make BR2_EXTERNAL=/test/test-kernel-modules/ simics_simple_riscv_defconfig && \ |
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.
PR #360 moved the riscv-64 test artifact image to Ubuntu 26.04, but the Buildroot stage failed in CI: first on
host-tarroot checks, then onhost-m4compilation under the default Ubuntu 26.04 host toolchain. This update aligns the container environment with Buildroot’s expectations for this path.Buildroot configure behavior
FORCE_UNSAFE_CONFIGURE=1before the Buildrootmakestep to bypasshost-tar’s root configure guard inside the Docker build context.Host toolchain stabilization on Ubuntu 26.04
gcc-13/g++-13.HOSTCCandHOSTCXXto force Buildroot host packages (includinghost-m4) to compile with GCC 13 instead of the Ubuntu 26.04 default compiler set.riscv-64 Dockerfile updates
/tests/rsrc/riscv-64/Dockerfile