Skip to content

riscv-64 Docker build: unblock Ubuntu 26.04 by pinning host compiler and unsafe-configure override#360

Merged
Wenzel merged 3 commits into
mainfrom
copilot/investigate-ci-failure-342
Jun 15, 2026
Merged

riscv-64 Docker build: unblock Ubuntu 26.04 by pinning host compiler and unsafe-configure override#360
Wenzel merged 3 commits into
mainfrom
copilot/investigate-ci-failure-342

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

PR #360 moved the riscv-64 test artifact image to Ubuntu 26.04, but the Buildroot stage failed in CI: first on host-tar root checks, then on host-m4 compilation under the default Ubuntu 26.04 host toolchain. This update aligns the container environment with Buildroot’s expectations for this path.

  • Buildroot configure behavior

    • Added FORCE_UNSAFE_CONFIGURE=1 before the Buildroot make step to bypass host-tar’s root configure guard inside the Docker build context.
  • Host toolchain stabilization on Ubuntu 26.04

    • Installed gcc-13 / g++-13.
    • Exported HOSTCC and HOSTCXX to force Buildroot host packages (including host-m4) to compile with GCC 13 instead of the Ubuntu 26.04 default compiler set.
  • riscv-64 Dockerfile updates

    • Kept the Ubuntu 26.04 base-image bump and layered the CI compatibility changes in the same file:
      • /tests/rsrc/riscv-64/Dockerfile
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 && \
    make && \
    ...

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 AI requested a review from Wenzel June 12, 2026 15:17
@Wenzel Wenzel marked this pull request as ready for review June 12, 2026 15:42
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
@Wenzel Wenzel requested a review from Copilot June 15, 2026 09:08

Copilot AI 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.

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/HOSTCXX for Buildroot host-package compilation.
  • Added FORCE_UNSAFE_CONFIGURE=1 to 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 && \
@Wenzel Wenzel merged commit 015a382 into main Jun 15, 2026
25 checks passed
@Wenzel Wenzel deleted the copilot/investigate-ci-failure-342 branch June 15, 2026 14:25
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.

3 participants