File tree 16 files changed +99
-129
lines changed
host-aarch64/dist-aarch64-linux
16 files changed +99
-129
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -46,20 +46,18 @@ ENV LD_LIBRARY_PATH=/rustroot/lib64:/rustroot/lib32:/rustroot/lib
46
46
ENV PKG_CONFIG_PATH=/rustroot/lib/pkgconfig
47
47
WORKDIR /tmp
48
48
RUN mkdir /home/user
49
- COPY scripts /shared.sh /tmp/
49
+ COPY host-x86_64/dist-x86_64-linux /shared.sh /tmp/
50
50
51
51
# 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/
54
53
RUN ./build-gcc.sh && yum remove -y gcc gcc-c++
55
54
56
55
COPY scripts/cmake.sh /tmp/
57
56
RUN ./cmake.sh
58
57
59
58
# Now build LLVM+Clang, afterwards configuring further compilations to use the
60
59
# 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/
63
61
RUN ./build-clang.sh
64
62
ENV CC=clang CXX=clang++
65
63
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN /scripts/crosstool-ng-build.sh
18
18
WORKDIR /build
19
19
20
20
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/
22
22
RUN ./build-powerpc64le-toolchain.sh
23
23
24
24
COPY scripts/sccache.sh /scripts/
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ ENV LD_LIBRARY_PATH=/rustroot/lib64:/rustroot/lib32:/rustroot/lib
46
46
ENV PKG_CONFIG_PATH=/rustroot/lib/pkgconfig
47
47
WORKDIR /tmp
48
48
RUN mkdir /home/user
49
- COPY scripts /shared.sh /tmp/
49
+ COPY host-x86_64/dist-x86_64-linux /shared.sh /tmp/
50
50
51
51
# 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/
53
53
RUN ./build-gcc.sh && yum remove -y gcc gcc-c++
54
54
55
55
# LLVM 17 needs cmake 3.20 or higher.
@@ -58,13 +58,12 @@ RUN ./cmake.sh
58
58
59
59
# Now build LLVM+Clang, afterwards configuring further compilations to use the
60
60
# 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/
63
62
RUN ./build-clang.sh
64
63
ENV CC=clang CXX=clang++
65
64
66
65
# 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/
68
67
RUN ./build-zstd.sh
69
68
70
69
COPY scripts/sccache.sh /scripts/
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -exu
3
+ set -ex
4
4
5
5
source shared.sh
6
6
@@ -34,7 +34,7 @@ hide_output \
34
34
-DCOMPILER_RT_BUILD_XRAY=OFF \
35
35
-DCOMPILER_RT_BUILD_MEMPROF=OFF \
36
36
-DCOMPILER_RT_BUILD_CTX_PROFILE=OFF \
37
- -DLLVM_TARGETS_TO_BUILD=$LLVM_BUILD_TARGETS \
37
+ -DLLVM_TARGETS_TO_BUILD=X86 \
38
38
-DLLVM_INCLUDE_BENCHMARKS=OFF \
39
39
-DLLVM_INCLUDE_TESTS=OFF \
40
40
-DLLVM_INCLUDE_EXAMPLES=OFF \
Original file line number Diff line number Diff line change 50
50
rm -rf gcc-build
51
51
rm -rf gcc-$GCC
52
52
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/
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ ENV RUST_CONFIGURE_ARGS \
54
54
--set rust.randomize-layout=true \
55
55
--set rust.thin-lto-import-instr-limit=10
56
56
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/
59
59
60
60
RUN /scripts/build-gccjit.sh /scripts
61
61
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ ENV RUST_CONFIGURE_ARGS \
54
54
--set rust.randomize-layout=true \
55
55
--set rust.thin-lto-import-instr-limit=10
56
56
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/
59
59
60
60
RUN /scripts/build-gccjit.sh /scripts
61
61
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ ENV HOST_TARGET x86_64-unknown-linux-gnu
89
89
# assertions enabled! Therefore, we cannot force download CI rustc.
90
90
# ENV FORCE_CI_RUSTC 1
91
91
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/
94
94
95
95
RUN /scripts/build-gccjit.sh /scripts
96
96
Original file line number Diff line number Diff line change @@ -129,17 +129,17 @@ auto:
129
129
- image : aarch64-gnu-debug
130
130
<< : *job-linux-8c-aarch64
131
131
132
- - image : dist-aarch64-linux
133
- env :
134
- CODEGEN_BACKENDS : llvm,cranelift
135
- << : *job-linux-8c-aarch64
136
-
137
132
- image : arm-android
138
133
<< : *job-linux-4c
139
134
140
135
- image : armhf-gnu
141
136
<< : *job-linux-4c
142
137
138
+ - image : dist-aarch64-linux
139
+ env :
140
+ CODEGEN_BACKENDS : llvm,cranelift
141
+ << : *job-linux-4c
142
+
143
143
- image : dist-android
144
144
<< : *job-linux-4c
145
145
You can’t perform that action at this time.
0 commit comments