Skip to content

Bugfix/uclibc docker ci build fixes#5261

Draft
skrap wants to merge 7 commits into
rust-lang:mainfrom
skrap:bugfix/uclibc-docker-ci-build-fixes
Draft

Bugfix/uclibc docker ci build fixes#5261
skrap wants to merge 7 commits into
rust-lang:mainfrom
skrap:bugfix/uclibc-docker-ci-build-fixes

Conversation

@skrap

@skrap skrap commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Description

DRAFT awaiting merge of #5214

Today's uClibc builds in CI cannot test many recently-added linux kernel features, as the prebuilt bootlin toolchains they rely on are built against kernel 5.15.

This changes the ci/install-uclibc.sh script to build a uclibc toolchain based on kernel 7.0 headers, and use that toolchain for running the libc build and test in CI.

Best way to test is via:

LIBC_CI_ZBUILD_STD=1 TEST_UCLIBC_TIME64=1 RUSTUP_TOOLCHAIN=nightly ./ci/run-docker.sh armv7-unknown-linux-uclibceabihf

Sources

N/A

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot rustbot added A-CI Area: CI-related items ctest Issues relating to the ctest crate labels Jul 7, 2026
@skrap skrap force-pushed the bugfix/uclibc-docker-ci-build-fixes branch from 04da931 to 1413f3b Compare July 7, 2026 21:49
The previous CI script used a prebuilt toolchain from bootlin, but this was based on kernel 5.15, which did not contain many of the kernel constants being tested.  This change builds a gcc/uclibc toolchain based on kernel headers for linux 7.0.
@skrap skrap force-pushed the bugfix/uclibc-docker-ci-build-fixes branch from 1413f3b to 47c0db9 Compare July 7, 2026 21:55
@skrap skrap force-pushed the bugfix/uclibc-docker-ci-build-fixes branch from 47c0db9 to 5aa06a0 Compare July 7, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: CI-related items ctest Issues relating to the ctest crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants