Skip to content

Commit 6abd8cd

Browse files
committed
Auto merge of #94361 - nikic:s390x-update, r=Mark-Simulacrum
Update dist-s390x-dist image Update to Ubuntu 20.04 and crosstool-ng 1.24.0. I've upgraded the ct-ng config and then manually reset the kernel and glibc versions to the oldest supported. Specifically, we're updating from kernel 2.6.32.68 to 2.6.32.71 and glibc 2.11.1 to 2.12.1 here. The compiler toolchain is also updated, but I don't think that's relevant for compatibility. I've also enabled LLD, so this fixes #94324. r? `@Mark-Simulacrum` cc `@uweigand`
2 parents 035a717 + dac2859 commit 6abd8cd

File tree

6 files changed

+476
-295
lines changed

6 files changed

+476
-295
lines changed

src/ci/docker/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ For targets: `s390x-unknown-linux-gnu`
271271
- Target options > Target Architecture = s390
272272
- Target options > Bitness = 64-bit
273273
- Operating System > Target OS = linux
274-
- Operating System > Linux kernel version = 2.6.32.68 -- ~RHEL6 kernel
275-
- C-library > glibc version = 2.11.1 -- ~SLE11-SP4 glibc
276-
- C compiler > gcc version = 5.2.0
274+
- Operating System > Linux kernel version = 2.6.32.71 -- ~RHEL6 kernel
275+
- C-library > glibc version = 2.12.1 -- ~RHEL6 glibc
276+
- C compiler > gcc version = 8.3.0
277277
- C compiler > gcc extra config = --with-arch=z10 -- LLVM's minimum support
278278
- C compiler > C++ = ENABLE -- to cross compile LLVM

src/ci/docker/host-x86_64/dist-s390x-linux/Dockerfile

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:20.04
22

33
COPY scripts/cross-apt-packages.sh /scripts/
44
RUN sh /scripts/cross-apt-packages.sh
55

6-
# Ubuntu 16.04 (this container) ships with make 4, but something in the
7-
# toolchains we build below chokes on that, so go back to make 3
8-
COPY scripts/make3.sh /scripts/
9-
RUN sh /scripts/make3.sh
10-
11-
COPY scripts/crosstool-ng.sh /scripts/
12-
RUN sh /scripts/crosstool-ng.sh
6+
COPY scripts/crosstool-ng-1.24.sh /scripts/
7+
RUN sh /scripts/crosstool-ng-1.24.sh
138

149
COPY scripts/rustbuild-setup.sh /scripts/
1510
RUN sh /scripts/rustbuild-setup.sh
@@ -37,5 +32,5 @@ ENV \
3732

3833
ENV HOSTS=s390x-unknown-linux-gnu
3934

40-
ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
35+
ENV RUST_CONFIGURE_ARGS --enable-extended --enable-lld --disable-docs
4136
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/host-x86_64/dist-s390x-linux/patches/glibc/2.11.1/002-newer-gcc.patch

-26
This file was deleted.

0 commit comments

Comments
 (0)