[PATCH] D42304: [Dockerfiles] Use a newer version of ninja when building inside debian8.

Ilya Biryukov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 09:29:08 PST 2018


ilya-biryukov created this revision.
ilya-biryukov added reviewers: ioeric, mehdi_amini.

The debian8 repos have an old version of ninja that seems to sometimes crash
when building llvm.


Repository:
  rL LLVM

https://reviews.llvm.org/D42304

Files:
  utils/docker/debian8/build/Dockerfile


Index: utils/docker/debian8/build/Dockerfile
===================================================================
--- utils/docker/debian8/build/Dockerfile
+++ utils/docker/debian8/build/Dockerfile
@@ -19,9 +19,17 @@
 # Install compiler, python and subversion.
 RUN apt-get update && \
     apt-get install -y --no-install-recommends ca-certificates gnupg \
-           build-essential python wget subversion ninja-build && \
+           build-essential python wget subversion unzip && \
     rm -rf /var/lib/apt/lists/*
 
+# Install a newer ninja release. It seems the older version in the debian repos
+# randomly crashes when compiling llvm.
+RUN wget "https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip" && \
+    echo "d2fea9ff33b3ef353161ed906f260d565ca55b8ca0568fa07b1d2cab90a84a07 ninja-linux.zip" \
+        | sha256sum -c  && \
+    unzip ninja-linux.zip -d /usr/local/bin && \
+    rm ninja-linux.zip
+
 # Import public key required for verifying signature of cmake download.
 RUN gpg --keyserver hkp://pgp.mit.edu --recv 0x2D2CEF1034921684
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42304.130636.patch
Type: text/x-patch
Size: 1080 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180119/a287e440/attachment.bin>


More information about the llvm-commits mailing list