[PATCH] D126196: [analyzer] SATest: Ensure Docker image can be built

Marco Antognini via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 24 00:54:50 PDT 2022


mantognini created this revision.
Herald added subscribers: manas, steakhal, ASDenysPetrov, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.
Herald added a project: All.
mantognini edited the summary of this revision.
mantognini published this revision for review.
mantognini added reviewers: vsavchenko, steakhal.
mantognini added a comment.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This patch relates to my previous comment: https://reviews.llvm.org/D124621#3485799


Solve build issues occurring when running `docker build`.

Fix the version of cmake-data to solve the following issue:

  The following packages have unmet dependencies:
   cmake : Depends: cmake-data (= 3.20.5-0kitware1) but 3.23.1-0kitware1ubuntu18.04.1 is to be installed

Install libjpeg to solve this issue when installing Python
requirements:

  The headers or library files could not be found for jpeg,
  a required dependency when compiling Pillow from source.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126196

Files:
  clang/utils/analyzer/Dockerfile


Index: clang/utils/analyzer/Dockerfile
===================================================================
--- clang/utils/analyzer/Dockerfile
+++ clang/utils/analyzer/Dockerfile
@@ -18,6 +18,7 @@
     python3=3.6.7-1~18.04 \
     python3-pip=9.0.1-2.3* \
     cmake=3.20.5* \
+    cmake-data=3.20.5* \
     ninja-build=1.8.2-1
 
 # box2d dependencies
@@ -52,6 +53,9 @@
     flex=2.6.4-6 \
     bison=2:3.0.4.*
 
+RUN apt-get install -y \
+    libjpeg-dev
+
 RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
 
 VOLUME /analyzer


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126196.431337.patch
Type: text/x-patch
Size: 555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220524/25b374f3/attachment-0001.bin>


More information about the cfe-commits mailing list