You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by sa...@apache.org on 2022/01/20 03:16:13 UTC

[incubator-heron] branch saadurrahman/ubuntu22.04-container created (now 37e96f5)

This is an automated email from the ASF dual-hosted git repository.

saadurrahman pushed a change to branch saadurrahman/ubuntu22.04-container
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git.


      at 37e96f5  [Build] Linking with C++14

This branch includes the following new commits:

     new 57a4c89  [Build] Ubuntu 22.04 Container
     new 37e96f5  [Build] Linking with C++14

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[incubator-heron] 02/02: [Build] Linking with C++14

Posted by sa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

saadurrahman pushed a commit to branch saadurrahman/ubuntu22.04-container
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git

commit 37e96f518824943b55c003392c494349e8714ba6
Author: Saad Ur Rahman <sa...@apache.org>
AuthorDate: Wed Jan 19 22:15:46 2022 -0500

    [Build] Linking with C++14
    
    Linking the <libunwind> library with C++14 because this is the highest C++ standard to support dynamically generated exceptions.
---
 third_party/gperftools/gperftools.BUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/third_party/gperftools/gperftools.BUILD b/third_party/gperftools/gperftools.BUILD
index 9fbf351..6f8d2b7 100644
--- a/third_party/gperftools/gperftools.BUILD
+++ b/third_party/gperftools/gperftools.BUILD
@@ -36,7 +36,7 @@ mac_script = "\n".join(common_script + [
 
 linux_script = "\n".join(common_script + [
      './configure --prefix=$$INSTALL_DIR --enable-shared=no CPPFLAGS=-I$$UNWIND_DIR/include LDFLAGS="-L$$UNWIND_DIR/lib -lunwind" --enable-frame-pointers',
-     'make install CPPFLAGS="-I$$UNWIND_DIR/include -std=c++11" LDFLAGS="-L$$UNWIND_DIR/lib -lunwind"',
+     'make install CPPFLAGS="-I$$UNWIND_DIR/include -std=c++14" LDFLAGS="-L$$UNWIND_DIR/lib -lunwind"',
      'rm -rf $$TMP_DIR',
 ])
 

[incubator-heron] 01/02: [Build] Ubuntu 22.04 Container

Posted by sa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

saadurrahman pushed a commit to branch saadurrahman/ubuntu22.04-container
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git

commit 57a4c89f632a568a1e8edb206c7320330031dae1
Author: Saad Ur Rahman <sa...@apache.org>
AuthorDate: Wed Jan 19 20:14:46 2022 -0500

    [Build] Ubuntu 22.04 Container
    
    - Added a Ubuntu 22.04 Docker Container.
    - Update to support compiling and linking of <libunwind 1.6.2> with the C++11 standard. g++ seems to be defaulting to C++17 which is not compatible with <libunwind 1.6.2>'s dynamic exception specifications.
---
 docker/compile/Dockerfile.ubuntu22.04   | 55 +++++++++++++++++++++++++++++++++
 third_party/gperftools/gperftools.BUILD |  2 +-
 2 files changed, 56 insertions(+), 1 deletion(-)

diff --git a/docker/compile/Dockerfile.ubuntu22.04 b/docker/compile/Dockerfile.ubuntu22.04
new file mode 100644
index 0000000..0cb6f44
--- /dev/null
+++ b/docker/compile/Dockerfile.ubuntu22.04
@@ -0,0 +1,55 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+FROM ubuntu:22.04
+
+# This is passed to the heron build command via the --config flag
+ENV TARGET_PLATFORM ubuntu
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update && apt-get -y install \
+      ant \
+      g++ \
+      cmake \
+      automake \
+      libtool-bin \
+      libunwind8 \
+      patch \
+      python-is-python3 \
+      python3-dev \
+      python3-venv \
+      pkg-config \
+      wget \
+      zip \
+      unzip \
+      git \
+      curl \
+      tree \
+      openjdk-11-jdk-headless
+
+ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
+
+ENV bazelVersion 4.1.0
+
+RUN wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/$bazelVersion/bazel-$bazelVersion-installer-linux-x86_64.sh \
+      && chmod +x /tmp/bazel.sh \
+      && /tmp/bazel.sh \
+      && rm -rf /tmp/bazel.sh
+
+ADD bazelrc /root/.bazelrc
+ADD scripts/compile-platform.sh /compile-platform.sh
diff --git a/third_party/gperftools/gperftools.BUILD b/third_party/gperftools/gperftools.BUILD
index 574e1d6..9fbf351 100644
--- a/third_party/gperftools/gperftools.BUILD
+++ b/third_party/gperftools/gperftools.BUILD
@@ -36,7 +36,7 @@ mac_script = "\n".join(common_script + [
 
 linux_script = "\n".join(common_script + [
      './configure --prefix=$$INSTALL_DIR --enable-shared=no CPPFLAGS=-I$$UNWIND_DIR/include LDFLAGS="-L$$UNWIND_DIR/lib -lunwind" --enable-frame-pointers',
-     'make install CPPFLAGS=-I$$UNWIND_DIR/include LDFLAGS="-L$$UNWIND_DIR/lib -lunwind"',
+     'make install CPPFLAGS="-I$$UNWIND_DIR/include -std=c++11" LDFLAGS="-L$$UNWIND_DIR/lib -lunwind"',
      'rm -rf $$TMP_DIR',
 ])