You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by on...@apache.org on 2020/11/18 23:12:20 UTC
[geode-native] branch support/1.12 updated: GEODE-8724: Fix
compilation using docker image (#696)
This is an automated email from the ASF dual-hosted git repository.
onichols pushed a commit to branch support/1.12
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/support/1.12 by this push:
new c26387e GEODE-8724: Fix compilation using docker image (#696)
c26387e is described below
commit c26387e564412e259d154606caf84551a59c361f
Author: Mario Salazar de Torres <ma...@est.tech>
AuthorDate: Wed Nov 18 22:53:36 2020 +0100
GEODE-8724: Fix compilation using docker image (#696)
- As latest tag for ubuntu base image was recently change from 18.04 to
20.04 it seems that some libraries version changed, like for example
libc++.
- As it seems with this new version libc++ headers are either not
anymore located within /usr/include/c++/v1 or the symlink is missing.
- So in order to solve that a symlink is manually created to ensure
clang is able to find libc++ headers.
(cherry picked from commit 4e241ffe6f6bda0254f97cdfe18929ce81d04ace)
---
docker/Dockerfile | 1 +
1 file changed, 1 insertion(+)
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 233cd8c..5311272 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -37,6 +37,7 @@ RUN apt-get update && \
openjdk-8-jdk \
wget && \
rm -rf /var/lib/apt/lists/* && \
+ ln -s /usr/lib/llvm-*/include/c++/v1/ /usr/include/c++/v1 && \
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${CLANG_VERSION} 999 && \
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} 999 && \
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-${CLANG_VERSION} 999 && \