Skip to content

Commit bad2aa4

Browse files
committed
Auto merge of #134564 - Kobzol:revert-aarch64-runner, r=nikic
Revert "Auto merge of #133809 - mrkajetanp:ci-aarch64-dist, r=Kobzol" This reverts #133809, as it produced broken aarch64 artifacts (#134563). `@bors` p=1
2 parents fcc1615 + a5dce0e commit bad2aa4

File tree

16 files changed

+99
-129
lines changed

16 files changed

+99
-129
lines changed

src/ci/docker/host-aarch64/dist-aarch64-linux/Dockerfile

-99
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM ubuntu:22.04
2+
3+
COPY scripts/cross-apt-packages.sh /scripts/
4+
RUN sh /scripts/cross-apt-packages.sh
5+
6+
COPY scripts/crosstool-ng.sh /scripts/
7+
RUN sh /scripts/crosstool-ng.sh
8+
9+
COPY scripts/rustbuild-setup.sh /scripts/
10+
RUN sh /scripts/rustbuild-setup.sh
11+
WORKDIR /tmp
12+
13+
COPY scripts/crosstool-ng-build.sh /scripts/
14+
COPY host-x86_64/dist-aarch64-linux/aarch64-linux-gnu.defconfig /tmp/crosstool.defconfig
15+
RUN /scripts/crosstool-ng-build.sh
16+
17+
COPY scripts/sccache.sh /scripts/
18+
RUN sh /scripts/sccache.sh
19+
20+
ENV PATH=$PATH:/x-tools/aarch64-unknown-linux-gnu/bin
21+
22+
ENV CC_aarch64_unknown_linux_gnu=aarch64-unknown-linux-gnu-gcc \
23+
AR_aarch64_unknown_linux_gnu=aarch64-unknown-linux-gnu-ar \
24+
CXX_aarch64_unknown_linux_gnu=aarch64-unknown-linux-gnu-g++
25+
26+
ENV HOSTS=aarch64-unknown-linux-gnu
27+
28+
ENV RUST_CONFIGURE_ARGS \
29+
--enable-full-tools \
30+
--enable-profiler \
31+
--enable-sanitizers
32+
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CT_CONFIG_VERSION="4"
2+
CT_PREFIX_DIR="/x-tools/${CT_TARGET}"
3+
CT_USE_MIRROR=y
4+
CT_MIRROR_BASE_URL="https://ci-mirrors.rust-lang.org/rustc"
5+
CT_ARCH_ARM=y
6+
CT_ARCH_64=y
7+
CT_KERNEL_LINUX=y
8+
CT_LINUX_V_4_1=y
9+
CT_GLIBC_V_2_17=y
10+
CT_CC_LANG_CXX=y

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,18 @@ ENV LD_LIBRARY_PATH=/rustroot/lib64:/rustroot/lib32:/rustroot/lib
4646
ENV PKG_CONFIG_PATH=/rustroot/lib/pkgconfig
4747
WORKDIR /tmp
4848
RUN mkdir /home/user
49-
COPY scripts/shared.sh /tmp/
49+
COPY host-x86_64/dist-x86_64-linux/shared.sh /tmp/
5050

5151
# Need at least GCC 5.1 to compile LLVM nowadays
52-
COPY scripts/build-gcc.sh /tmp/
53-
ENV GCC_BUILD_TARGET=i686
52+
COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
5453
RUN ./build-gcc.sh && yum remove -y gcc gcc-c++
5554

5655
COPY scripts/cmake.sh /tmp/
5756
RUN ./cmake.sh
5857

5958
# Now build LLVM+Clang, afterwards configuring further compilations to use the
6059
# clang/clang++ compilers.
61-
COPY scripts/build-clang.sh /tmp/
62-
ENV LLVM_BUILD_TARGETS=X86
60+
COPY host-x86_64/dist-x86_64-linux/build-clang.sh /tmp/
6361
RUN ./build-clang.sh
6462
ENV CC=clang CXX=clang++
6563

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN /scripts/crosstool-ng-build.sh
1818
WORKDIR /build
1919

2020
RUN apt-get install -y --no-install-recommends rpm2cpio cpio
21-
COPY scripts/shared.sh host-x86_64/dist-powerpc64le-linux/build-powerpc64le-toolchain.sh /build/
21+
COPY host-x86_64/dist-powerpc64le-linux/shared.sh host-x86_64/dist-powerpc64le-linux/build-powerpc64le-toolchain.sh /build/
2222
RUN ./build-powerpc64le-toolchain.sh
2323

2424
COPY scripts/sccache.sh /scripts/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
hide_output() {
3+
set +x
4+
on_err="
5+
echo ERROR: An error was encountered with the build.
6+
cat /tmp/build.log
7+
exit 1
8+
"
9+
trap "$on_err" ERR
10+
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
11+
PING_LOOP_PID=$!
12+
"$@" &> /tmp/build.log
13+
trap - ERR
14+
kill $PING_LOOP_PID
15+
set -x
16+
}

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

+4-5
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ ENV LD_LIBRARY_PATH=/rustroot/lib64:/rustroot/lib32:/rustroot/lib
4646
ENV PKG_CONFIG_PATH=/rustroot/lib/pkgconfig
4747
WORKDIR /tmp
4848
RUN mkdir /home/user
49-
COPY scripts/shared.sh /tmp/
49+
COPY host-x86_64/dist-x86_64-linux/shared.sh /tmp/
5050

5151
# Need at least GCC 5.1 to compile LLVM nowadays
52-
COPY scripts/build-gcc.sh /tmp/
52+
COPY host-x86_64/dist-x86_64-linux/build-gcc.sh /tmp/
5353
RUN ./build-gcc.sh && yum remove -y gcc gcc-c++
5454

5555
# LLVM 17 needs cmake 3.20 or higher.
@@ -58,13 +58,12 @@ RUN ./cmake.sh
5858

5959
# Now build LLVM+Clang, afterwards configuring further compilations to use the
6060
# clang/clang++ compilers.
61-
COPY scripts/build-clang.sh /tmp/
62-
ENV LLVM_BUILD_TARGETS=X86
61+
COPY host-x86_64/dist-x86_64-linux/build-clang.sh /tmp/
6362
RUN ./build-clang.sh
6463
ENV CC=clang CXX=clang++
6564

6665
# Build zstd to enable `llvm.libzstd`.
67-
COPY scripts/build-zstd.sh /tmp/
66+
COPY host-x86_64/dist-x86_64-linux/build-zstd.sh /tmp/
6867
RUN ./build-zstd.sh
6968

7069
COPY scripts/sccache.sh /scripts/

src/ci/docker/scripts/build-clang.sh src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
set -exu
3+
set -ex
44

55
source shared.sh
66

@@ -34,7 +34,7 @@ hide_output \
3434
-DCOMPILER_RT_BUILD_XRAY=OFF \
3535
-DCOMPILER_RT_BUILD_MEMPROF=OFF \
3636
-DCOMPILER_RT_BUILD_CTX_PROFILE=OFF \
37-
-DLLVM_TARGETS_TO_BUILD=$LLVM_BUILD_TARGETS \
37+
-DLLVM_TARGETS_TO_BUILD=X86 \
3838
-DLLVM_INCLUDE_BENCHMARKS=OFF \
3939
-DLLVM_INCLUDE_TESTS=OFF \
4040
-DLLVM_INCLUDE_EXAMPLES=OFF \

src/ci/docker/scripts/build-gcc.sh src/ci/docker/host-x86_64/dist-x86_64-linux/build-gcc.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ cd ..
5050
rm -rf gcc-build
5151
rm -rf gcc-$GCC
5252

53-
if [[ $GCC_BUILD_TARGET == "i686" ]]; then
54-
# FIXME: clang doesn't find 32-bit libraries in /rustroot/lib,
55-
# but it does look all the way under /rustroot/lib/[...]/32,
56-
# so we can link stuff there to help it out.
57-
ln /rustroot/lib/*.{a,so} -rst /rustroot/lib/gcc/x86_64-pc-linux-gnu/$GCC/32/
58-
fi
53+
# FIXME: clang doesn't find 32-bit libraries in /rustroot/lib,
54+
# but it does look all the way under /rustroot/lib/[...]/32,
55+
# so we can link stuff there to help it out.
56+
ln /rustroot/lib/*.{a,so} -rst /rustroot/lib/gcc/x86_64-pc-linux-gnu/$GCC/32/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
hide_output() {
3+
set +x
4+
on_err="
5+
echo ERROR: An error was encountered with the build.
6+
cat /tmp/build.log
7+
exit 1
8+
"
9+
trap "$on_err" ERR
10+
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
11+
PING_LOOP_PID=$!
12+
"$@" &> /tmp/build.log
13+
trap - ERR
14+
kill $PING_LOOP_PID
15+
set -x
16+
}

src/ci/docker/host-x86_64/x86_64-gnu-llvm-18/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ ENV RUST_CONFIGURE_ARGS \
5454
--set rust.randomize-layout=true \
5555
--set rust.thin-lto-import-instr-limit=10
5656

57-
COPY scripts/shared.sh /scripts/
58-
COPY scripts/build-gccjit.sh /scripts/
57+
COPY host-x86_64/dist-x86_64-linux/shared.sh /scripts/
58+
COPY host-x86_64/dist-x86_64-linux/build-gccjit.sh /scripts/
5959

6060
RUN /scripts/build-gccjit.sh /scripts
6161

src/ci/docker/host-x86_64/x86_64-gnu-llvm-19/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ ENV RUST_CONFIGURE_ARGS \
5454
--set rust.randomize-layout=true \
5555
--set rust.thin-lto-import-instr-limit=10
5656

57-
COPY scripts/shared.sh /scripts/
58-
COPY scripts/build-gccjit.sh /scripts/
57+
COPY host-x86_64/dist-x86_64-linux/shared.sh /scripts/
58+
COPY host-x86_64/dist-x86_64-linux/build-gccjit.sh /scripts/
5959

6060
RUN /scripts/build-gccjit.sh /scripts
6161

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ ENV HOST_TARGET x86_64-unknown-linux-gnu
8989
# assertions enabled! Therefore, we cannot force download CI rustc.
9090
#ENV FORCE_CI_RUSTC 1
9191

92-
COPY scripts/shared.sh /scripts/
93-
COPY scripts/build-gccjit.sh /scripts/
92+
COPY host-x86_64/dist-x86_64-linux/shared.sh /scripts/
93+
COPY host-x86_64/dist-x86_64-linux/build-gccjit.sh /scripts/
9494

9595
RUN /scripts/build-gccjit.sh /scripts
9696

src/ci/github-actions/jobs.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,17 @@ auto:
129129
- image: aarch64-gnu-debug
130130
<<: *job-linux-8c-aarch64
131131

132-
- image: dist-aarch64-linux
133-
env:
134-
CODEGEN_BACKENDS: llvm,cranelift
135-
<<: *job-linux-8c-aarch64
136-
137132
- image: arm-android
138133
<<: *job-linux-4c
139134

140135
- image: armhf-gnu
141136
<<: *job-linux-4c
142137

138+
- image: dist-aarch64-linux
139+
env:
140+
CODEGEN_BACKENDS: llvm,cranelift
141+
<<: *job-linux-4c
142+
143143
- image: dist-android
144144
<<: *job-linux-4c
145145

0 commit comments

Comments
 (0)