Skip to content

Commit 9f0b29b

Browse files
authored
Rollup merge of rust-lang#152578 - heiher:ci-crosstool, r=Mark-Simulacrum
ci: Lock cross toolchain version and update docs This PR locks the cross-toolchain component version to avoid unexpected changes when bumping crosstool-ng, and updates the toolchain configuration in the docs to match the actual setup. try-job: dist-arm-linux-musl try-job: dist-loongarch64-linux try-job: dist-loongarch64-musl try-job: dist-powerpc64-linux-musl try-job: dist-powerpc64le-linux-gnu try-job: dist-powerpc64le-linux-musl
2 parents 3ce7fb6 + df798ad commit 9f0b29b

8 files changed

Lines changed: 65 additions & 43 deletions

File tree

src/ci/docker/README.md

Lines changed: 54 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -231,25 +231,9 @@ For targets: `armv7-unknown-linux-gnueabihf`
231231
libraries like jemalloc. See the mk/cfg/arm(v7)-unknown-linux-gnueabi{,hf}.mk
232232
file in Rust's source code.
233233
234-
### `aarch64-linux-gnu.defconfig`
235-
236-
For targets: `aarch64-unknown-linux-gnu`
237-
238-
- Path and misc options > Prefix directory = /x-tools/${CT\_TARGET}
239-
- Path and misc options > Use a mirror = ENABLE
240-
- Path and misc options > Base URL = https://ci-mirrors.rust-lang.org/rustc
241-
- Target options > Target Architecture = arm
242-
- Target options > Bitness = 64-bit
243-
- Operating System > Target OS = linux
244-
- Operating System > Linux kernel version = 4.1.49
245-
- Binary utilities > Version of binutils = 2.29.1
246-
- C-library > glibc version = 2.17 -- aarch64 support was introduced in this version
247-
- C compiler > gcc version = 13.2.0
248-
- C compiler > C++ = ENABLE -- to cross compile LLVM
249-
250234
### `i586-linux-gnu.defconfig`
251235
252-
For targets: `i586-unknown-linux-gnu`
236+
For targets: `i586-unknown-linux-gnu`, `i586-unknown-linux-musl` and `i686-unknown-linux-musl`
253237
254238
- Path and misc options > Prefix directory = /x-tools/${CT\_TARGET}
255239
- Target options > Target Architecture = x86
@@ -266,7 +250,7 @@ For targets: `i586-unknown-linux-gnu`
266250
(\*) Compressed debug is enabled by default for gas (assembly) on Linux/x86 targets,
267251
but that makes our `compiler_builtins` incompatible with binutils < 2.32.
268252
269-
### `loongarch64-linux-gnu.defconfig`
253+
### `loongarch64-unknown-linux-gnu.defconfig`
270254
271255
For targets: `loongarch64-unknown-linux-gnu`
272256
@@ -282,7 +266,7 @@ For targets: `loongarch64-unknown-linux-gnu`
282266
- C compiler > gcc version = 14.2.0
283267
- C compiler > C++ = ENABLE -- to cross compile LLVM
284268
285-
### `loongarch64-linux-musl.defconfig`
269+
### `loongarch64-unknown-linux-musl.defconfig`
286270
287271
For targets: `loongarch64-unknown-linux-musl`
288272
@@ -412,6 +396,56 @@ For targets: `powerpc64-unknown-linux-gnu`
412396
413397
(+) These CPU options match the configuration of the toolchains in RHEL6.
414398
399+
### `powerpc64-unknown-linux-musl.defconfig`
400+
401+
For targets: `powerpc64-unknown-linux-musl`
402+
403+
- Path and misc options > Prefix directory = /x-tools/${CT\_TARGET}
404+
- Path and misc options > Use a mirror = ENABLE
405+
- Path and misc options > Base URL = https://ci-mirrors.rust-lang.org/rustc
406+
- Target options > Target Architecture = powerpc
407+
- Target options > Bitness = 64-bit
408+
- Operating System > Target OS = linux
409+
- Operating System > Linux kernel version = 4.19
410+
- Binary utilities > Version of binutils = 2.42
411+
- C-library > musl version = 1.2.5
412+
- C compiler > gcc version = 14.2.0
413+
- C compiler > C++ = ENABLE -- to cross compile LLVM
414+
415+
### `powerpc64le-unknown-linux-gnu.defconfig`
416+
417+
For targets: `powerpc64le-unknown-linux-gnu`
418+
419+
- Path and misc options > Prefix directory = /x-tools/${CT\_TARGET}
420+
- Path and misc options > Use a mirror = ENABLE
421+
- Path and misc options > Base URL = https://ci-mirrors.rust-lang.org/rustc
422+
- Target options > Target Architecture = powerpc
423+
- Target options > Bitness = 64-bit
424+
- Target options > Endianness = Little endian
425+
- Operating System > Target OS = linux
426+
- Operating System > Linux kernel version = 3.10
427+
- Binary utilities > Version of binutils = 2.42
428+
- C-library > glibc version = 2.17
429+
- C compiler > gcc version = 14.2.0
430+
- C compiler > C++ = ENABLE -- to cross compile LLVM
431+
432+
### `powerpc64le-unknown-linux-musl.defconfig`
433+
434+
For targets: `powerpc64le-unknown-linux-musl`
435+
436+
- Path and misc options > Prefix directory = /x-tools/${CT\_TARGET}
437+
- Path and misc options > Use a mirror = ENABLE
438+
- Path and misc options > Base URL = https://ci-mirrors.rust-lang.org/rustc
439+
- Target options > Target Architecture = powerpc
440+
- Target options > Bitness = 64-bit
441+
- Target options > Endianness = Little endian
442+
- Operating System > Target OS = linux
443+
- Operating System > Linux kernel version = 4.19
444+
- Binary utilities > Version of binutils = 2.42
445+
- C-library > musl version = 1.2.5
446+
- C compiler > gcc version = 14.2.0
447+
- C compiler > C++ = ENABLE -- to cross compile LLVM
448+
415449
### `riscv64-unknown-linux-gnu.defconfig`
416450
417451
For targets: `riscv64-unknown-linux-gnu`
@@ -423,7 +457,7 @@ For targets: `riscv64-unknown-linux-gnu`
423457
- Target options > Bitness = 64-bit
424458
- Operating System > Target OS = linux
425459
- Operating System > Linux kernel version = 4.20.17
426-
- Binary utilities > Version of binutils = 2.36.1
460+
- Binary utilities > Version of binutils = 2.40
427461
- C-library > glibc version = 2.29
428462
- C compiler > gcc version = 8.5.0
429463
- C compiler > C++ = ENABLE -- to cross compile LLVM

src/ci/docker/host-x86_64/dist-arm-linux-musl/Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ FROM ghcr.io/rust-lang/ubuntu:22.04
33
COPY scripts/cross-apt-packages.sh /scripts/
44
RUN sh /scripts/cross-apt-packages.sh
55

6-
COPY scripts/crosstool-ng.sh /scripts/
7-
RUN sh /scripts/crosstool-ng.sh
8-
96
WORKDIR /build
107

118
COPY scripts/musl-toolchain.sh /build/
@@ -14,14 +11,8 @@ RUN CFLAGS="-Wa,--compress-debug-sections=none -Wl,--compress-debug-sections=non
1411
CXXFLAGS="-Wa,--compress-debug-sections=none -Wl,--compress-debug-sections=none" \
1512
bash musl-toolchain.sh aarch64 && rm -rf build
1613

17-
COPY scripts/rustbuild-setup.sh /scripts/
18-
RUN sh /scripts/rustbuild-setup.sh
1914
WORKDIR /tmp
2015

21-
COPY scripts/crosstool-ng-build.sh /scripts/
22-
COPY host-x86_64/dist-arm-linux-musl/arm-linux-musl.defconfig /tmp/crosstool.defconfig
23-
RUN /scripts/crosstool-ng-build.sh
24-
2516
COPY scripts/sccache.sh /scripts/
2617
RUN sh /scripts/sccache.sh
2718

src/ci/docker/host-x86_64/dist-arm-linux-musl/arm-linux-musl.defconfig

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/ci/docker/host-x86_64/dist-loongarch64-linux/loongarch64-unknown-linux-gnu.defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ CT_TARGET_LDFLAGS="-mcmodel=medium"
1212
CT_KERNEL_LINUX=y
1313
CT_LINUX_V_5_19=y
1414
CT_GLIBC_V_2_36=y
15+
CT_BINUTILS_V_2_42=y
16+
CT_GCC_V_14=y
1517
CT_CC_GCC_ENABLE_DEFAULT_PIE=y
1618
CT_CC_LANG_CXX=y

src/ci/docker/host-x86_64/dist-loongarch64-musl/loongarch64-unknown-linux-musl.defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ CT_TARGET_LDFLAGS="-mcmodel=medium"
1212
CT_KERNEL_LINUX=y
1313
CT_LINUX_V_5_19=y
1414
CT_LIBC_MUSL=y
15+
CT_MUSL_V_1_2_5=y
16+
CT_BINUTILS_V_2_42=y
17+
CT_GCC_V_14=y
1518
CT_CC_GCC_ENABLE_DEFAULT_PIE=y
1619
CT_CC_LANG_CXX=y
1720
CT_GETTEXT_NEEDED=y

src/ci/docker/host-x86_64/dist-powerpc64-linux-musl/powerpc64-unknown-linux-musl.defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ CT_KERNEL_LINUX=y
1111
CT_LINUX_V_4_19=y
1212
CT_LIBC_MUSL=y
1313
CT_MUSL_V_1_2_5=y
14+
CT_BINUTILS_V_2_42=y
15+
CT_GCC_V_14=y
1416
CT_CC_LANG_CXX=y
1517
CT_GETTEXT_NEEDED=y

src/ci/docker/host-x86_64/dist-powerpc64le-linux-gnu/powerpc64le-unknown-linux-gnu.defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ CT_ARCH_ARCH="powerpc64le"
1111
CT_KERNEL_LINUX=y
1212
CT_LINUX_V_3_10=y
1313
CT_GLIBC_V_2_17=y
14+
CT_BINUTILS_V_2_42=y
15+
CT_GCC_V_14=y
1416
CT_CC_LANG_CXX=y
1517
CT_GETTEXT_NEEDED=y

src/ci/docker/host-x86_64/dist-powerpc64le-linux-musl/powerpc64le-unknown-linux-musl.defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ CT_KERNEL_LINUX=y
1212
CT_LINUX_V_4_19=y
1313
CT_LIBC_MUSL=y
1414
CT_MUSL_V_1_2_5=y
15+
CT_BINUTILS_V_2_42=y
16+
CT_GCC_V_14=y
1517
CT_CC_LANG_CXX=y
1618
CT_GETTEXT_NEEDED=y

0 commit comments

Comments
 (0)