Skip to content

Commit 2e8a54a

Browse files
committed
Auto merge of #78316 - fusion-engineering-forks:fix-musl-ci-build, r=pietroalbini
Use different mirror for sabotage linux in musl-toolchain CI script. Should hopefully fix the CI failure of #78309 `musl-cross-make` Makefile for reference: https://github.com/richfelker/musl-cross-make/blob/a54eb56f33f255dfca60be045f12a5cfaf5a72a9/Makefile r? `@pietroalbini`
2 parents 7bade6e + 76e51b8 commit 2e8a54a

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/ci/docker/host-x86_64/armhf-gnu/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUN curl https://www.busybox.net/downloads/busybox-1.21.1.tar.bz2 | tar xjf - &&
5858
# Download the ubuntu rootfs, which we'll use as a chroot for all our tests.
5959
WORKDIR /tmp
6060
RUN mkdir rootfs/ubuntu
61-
RUN curl http://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/ubuntu-base-16.04-core-armhf.tar.gz | \
61+
RUN curl http://cdimage.ubuntu.com/ubuntu-base/releases/16.04/release/ubuntu-base-16.04.6-base-armhf.tar.gz | \
6262
tar xzf - -C rootfs/ubuntu && \
6363
cd rootfs && mkdir proc sys dev etc etc/init.d
6464

src/ci/docker/scripts/musl-toolchain.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Versions of the toolchain components are configurable in `musl-cross-make/Makefile` and
55
# musl unlike GLIBC is forward compatible so upgrading it shouldn't break old distributions.
66
# Right now we have: Binutils 2.31.1, GCC 9.2.0, musl 1.1.24.
7+
8+
# ignore-tidy-linelength
9+
710
set -ex
811

912
hide_output() {
@@ -26,6 +29,9 @@ exit 1
2629
ARCH=$1
2730
TARGET=$ARCH-linux-musl
2831

32+
# Don't depend on the mirrors of sabotage linux that musl-cross-make uses.
33+
LINUX_HEADERS_SITE=https://ci-mirrors.rust-lang.org/rustc/sabotage-linux-tarballs
34+
2935
OUTPUT=/usr/local
3036
shift
3137

@@ -38,8 +44,8 @@ cd musl-cross-make
3844
# A few commits ahead of v0.9.9 to include the cowpatch fix:
3945
git checkout a54eb56f33f255dfca60be045f12a5cfaf5a72a9
4046

41-
hide_output make -j$(nproc) TARGET=$TARGET MUSL_VER=1.1.24
42-
hide_output make install TARGET=$TARGET MUSL_VER=1.1.24 OUTPUT=$OUTPUT
47+
hide_output make -j$(nproc) TARGET=$TARGET MUSL_VER=1.1.24 LINUX_HEADERS_SITE=$LINUX_HEADERS_SITE
48+
hide_output make install TARGET=$TARGET MUSL_VER=1.1.24 LINUX_HEADERS_SITE=$LINUX_HEADERS_SITE OUTPUT=$OUTPUT
4349

4450
cd -
4551

0 commit comments

Comments
 (0)