From cfdbba92318717c09efe52a88c8ba60b995f5be9 Mon Sep 17 00:00:00 2001 From: Amine Alami <43780877+Alami-Amine@users.noreply.github.com> Date: Thu, 29 Aug 2024 17:16:41 +0200 Subject: [PATCH] Docker Image build fix: adding abseil as system lib (#35277) * image build fix: adding abseil to docker image * adding reference to issue --- integrations/docker/images/base/chip-build/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/integrations/docker/images/base/chip-build/Dockerfile b/integrations/docker/images/base/chip-build/Dockerfile index db209a82f20b87..37edf89730ecd9 100644 --- a/integrations/docker/images/base/chip-build/Dockerfile +++ b/integrations/docker/images/base/chip-build/Dockerfile @@ -123,6 +123,14 @@ RUN set -x \ ruff \ && : # last line +#TODO Issue #35280: this is only added as a workaround to bloaty build failures, remove it once bloaty fixes issue +# Clone and install abseil-cpp +RUN git clone https://github.com/abseil/abseil-cpp.git /tmp/abseil-cpp \ + && cd /tmp/abseil-cpp \ + && cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \ + && cmake --build build --target install \ + && rm -rf /tmp/abseil-cpp + # Install bloat comparison tools RUN set -x \ && git clone https://github.com/google/bloaty.git \