File tree Expand file tree Collapse file tree 16 files changed +99
-129
lines changed
host-aarch64/dist-aarch64-linux Expand file tree Collapse file tree 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
4646ENV PKG_CONFIG_PATH=/rustroot/lib/pkgconfig
4747WORKDIR /tmp
4848RUN 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/
5453RUN ./build-gcc.sh && yum remove -y gcc gcc-c++
5554
5655COPY scripts/cmake.sh /tmp/
5756RUN ./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/
6361RUN ./build-clang.sh
6462ENV CC=clang CXX=clang++
6563
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ RUN /scripts/crosstool-ng-build.sh
1818WORKDIR /build
1919
2020RUN 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/
2222RUN ./build-powerpc64le-toolchain.sh
2323
2424COPY 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
4646ENV PKG_CONFIG_PATH=/rustroot/lib/pkgconfig
4747WORKDIR /tmp
4848RUN 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/
5353RUN ./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/
6362RUN ./build-clang.sh
6463ENV 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/
6867RUN ./build-zstd.sh
6968
7069COPY scripts/sccache.sh /scripts/
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- set -exu
3+ set -ex
44
55source 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 \
Original file line number Diff line number Diff line change 5050rm -rf gcc-build
5151rm -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/
File renamed without changes.
You can’t perform that action at this time.
0 commit comments