44# It's based on the assumption that we don't care of the cctools version so much
55# It event does not depend on the clickhouse/fasttest in the `docker/images.json`
66ARG FROM_TAG=latest
7- FROM clickhouse/fasttest:$FROM_TAG as builder
7+ FROM clickhouse/fasttest:$FROM_TAG AS builder
88
99ENV CC=clang-${LLVM_VERSION}
1010ENV CXX=clang++-${LLVM_VERSION}
1111
1212RUN git clone https://github.com/tpoechtrager/apple-libtapi.git \
1313 && cd apple-libtapi \
1414 && git checkout 15dfc2a8c9a2a89d06ff227560a69f5265b692f9 \
15- && INSTALLPREFIX=/cctools ./build.sh \
15+ && INSTALLPREFIX=/cctools NINJA=1 ./build.sh \
1616 && ./install.sh \
1717 && cd .. \
1818 && rm -rf apple-libtapi
1919
2020# Build and install tools for cross-linking to Darwin (x86-64)
2121# Build and install tools for cross-linking to Darwin (aarch64)
22- RUN git clone https://github.com/tpoechtrager/cctools-port.git \
22+ RUN git clone https://github.com/tpoechtrager/cctools-port.git --branch 986-ld64-711 \
23+ && apt-get update \
24+ && apt-get install --yes \
25+ make \
26+ && apt-get clean \
2327 && cd cctools-port/cctools \
24- && git checkout 2a3e1c2a6ff54a30f898b70cfb9ba1692a55fad7 \
2528 && ./configure --prefix=/cctools --with-libtapi=/cctools \
2629 --target=x86_64-apple-darwin \
2730 && make install -j$(nproc) \
@@ -40,7 +43,7 @@ RUN git clone https://github.com/tpoechtrager/cctools-port.git \
4043# DWARF error: invalid or unhandled FORM value: 0x23
4144#
4245ENV LD=ld.lld-${LLVM_VERSION}
43- ARG GDB_VERSION=15.1
46+ ARG GDB_VERSION=16.2
4447RUN apt-get update \
4548 && apt-get install --yes \
4649 libgmp-dev \
@@ -58,3 +61,5 @@ RUN wget https://sourceware.org/pub/gdb/releases/gdb-$GDB_VERSION.tar.gz \
5861FROM scratch
5962COPY --from=builder /cctools /cctools
6063COPY --from=builder /opt/gdb /opt/gdb
64+
65+ # NOTE: this file should be kept in sync with other docker images, since they use COPY from this image
0 commit comments