Skip to content

Commit

Permalink
looks like 3.25 doesnt work either
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxxen authored and carlopi committed Jan 14, 2025
1 parent afae40b commit b6afab6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docker/linux_arm64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ RUN apt-get install -y -qq ccache autoconf
# Setup cross compiler because GH actions does not have open source arm runners yet
RUN apt-get install -y -qq gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

# Install cmake 3.25
# Install cmake 3.21
# Somehow, recursive-cmake based builds fail when cross-compiling with cmake 3.31,
# So we revert to using 3.25 for now. We should bisect and investigate this further later.
RUN mkdir /cmake_3_25 && \
cd /cmake_3_25 && \
wget https://github.com/Kitware/CMake/releases/download/v3.25.3/cmake-3.25.3-linux-x86_64.sh && \
chmod +x cmake-3.25.3-linux-x86_64.sh && \
./cmake-3.25.3-linux-x86_64.sh --skip-license --prefix=/usr/local && \
# so we revert to using 3.21 for now. We should investigate this further.
# I've done some initial bisecting, and it seems like 3.25 also fails.
# So somewhere between 3.21 and 3.25, something changed in cmake that breaks recursive-cmake CC-builds.
RUN mkdir /cmake_3_21 && \
cd /cmake_3_21 && \
wget https://github.com/Kitware/CMake/releases/download/v3.21.3/cmake-3.21.3-linux-x86_64.sh && \
chmod +x cmake-3.21.3-linux-x86_64.sh && \
./cmake-3.21.3-linux-x86_64.sh --skip-license --prefix=/usr/local && \
cmake --version

# Install GIT
Expand Down

0 comments on commit b6afab6

Please sign in to comment.