Skip to content

Commit 8de1942

Browse files
authored
[fuchsia] Downgrade cmake from latest to release from Ubuntu jammy (#430)
The CMake 4.0 no longer allow adding a shared library target when the target platform is a baremetal platform. This change downgrades the cmake from 4.0 to jammy release (3.22) to mitigate this issue.
1 parent f541fc6 commit 8de1942

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

buildbot/fuchsia/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
88
apt-transport-https \
99
ca-certificates \
1010
ccache \
11+
cmake \
1112
curl \
1213
dumb-init \
1314
git \
@@ -26,13 +27,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2627

2728
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
2829

30+
# TODO(zeroomega): Temporarily switch back to cmake from Ubuntu to avoid
31+
# build errors on baremetal runtimes.
2932
# Install latest CMake release.
30-
RUN curl -fsSL https://apt.kitware.com/keys/kitware-archive-latest.asc | \
31-
gpg --dearmor -o /usr/share/keyrings/kitware-archive-keyring.gpg && \
32-
echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main" | \
33-
tee /etc/apt/sources.list.d/kitware.list && \
34-
apt-get update && apt-get install -y --no-install-recommends cmake && \
35-
rm -rf /var/lib/apt/lists/*
33+
# RUN curl -fsSL https://apt.kitware.com/keys/kitware-archive-latest.asc | \
34+
# gpg --dearmor -o /usr/share/keyrings/kitware-archive-keyring.gpg && \
35+
# echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main" | \
36+
# tee /etc/apt/sources.list.d/kitware.list && \
37+
# apt-get update && apt-get install -y --no-install-recommends cmake && \
38+
# rm -rf /var/lib/apt/lists/*
3639

3740
ARG LLVM_VERSION=19
3841

0 commit comments

Comments
 (0)