From 2d4887435434b096ba23249fd39f195b97b7efa5 Mon Sep 17 00:00:00 2001 From: Jeremy Nimmer Date: Tue, 10 Mar 2020 19:37:34 -0400 Subject: [PATCH] doc: Note that GCC 7.5 is now Ubuntu's default compiler (#12845) --- CMakeLists.txt | 1 + bindings/pydrake/autodiff_types_pybind.h | 1 + doc/bazel.rst | 2 +- doc/developers.rst | 4 ++-- doc/getting_help.rst | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 956c08e710cc..eff1af51240d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,6 +103,7 @@ endif() # The minimum compiler versions should match those listed in both # doc/developers.rst and tools/workspace/cc/repository.bzl. +# TODO(jwnimmer-tri) On 2020-07-01 update GCC min to 7.5 here and in the bzl. set(MINIMUM_APPLE_CLANG_VERSION 11) set(MINIMUM_CLANG_VERSION 6) set(MINIMUM_GNU_VERSION 7.4) diff --git a/bindings/pydrake/autodiff_types_pybind.h b/bindings/pydrake/autodiff_types_pybind.h index bf0f4b393c43..855adb20d796 100644 --- a/bindings/pydrake/autodiff_types_pybind.h +++ b/bindings/pydrake/autodiff_types_pybind.h @@ -11,6 +11,7 @@ #ifndef __clang__ // N.B. Without this, GCC 7.4.0 on Ubuntu complains about // `AutoDiffScalar(const AutoDiffScalar& other)` having uninitialized values. +// We have not tested whether GCC 7.5.0 still complains. // TODO(eric.cousineau): #11566 Figure out why? #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" diff --git a/doc/bazel.rst b/doc/bazel.rst index c1d2e85c4f1d..a8dec3a01730 100644 --- a/doc/bazel.rst +++ b/doc/bazel.rst @@ -37,7 +37,7 @@ typical examples below; for more reading about target patterns, see: https://docs.bazel.build/versions/master/user-manual.html#target-patterns. On Ubuntu, the default compiler is the first ``gcc`` compiler in the -``PATH``, usually GCC 7.4 on Bionic. On macOS, the default compiler is the Apple +``PATH``, usually GCC 7.5 on Bionic. On macOS, the default compiler is the Apple LLVM compiler. To use Clang 6.0 on Ubuntu, set the ``CC`` and ``CXX`` environment variables before running **bazel build**, **bazel test**, or any other **bazel** commands. diff --git a/doc/developers.rst b/doc/developers.rst index 42167e18a003..9a7459b5cfa9 100644 --- a/doc/developers.rst +++ b/doc/developers.rst @@ -80,7 +80,7 @@ Drake requires a compiler running in C++17 mode. +==================================+=======+=======+=====================+===================+========+ +----------------------------------+-------+-------+---------------------+-------------------+--------+ | Ubuntu 18.04 LTS (Bionic Beaver) | 2.1 | 3.10 | | Clang 6.0 | OpenJDK 11 | 3.6 | -| | | | | GCC 7.4 (default) | | | +| | | | | GCC 7.5 (default) | | | +----------------------------------+ +-------+---------------------+-------------------+--------+ | macOS Mojave (10.14) | | 3.16 | | Apple LLVM 11.0.0 | | AdoptOpenJDK 13 | 3.7 | | | | | | (Xcode 11.3) | | (HotSpot JVM) | | @@ -119,7 +119,7 @@ to :ref:`ask for help `. Binary Packages --------------- -The binary releases of Drake are built with GCC 7.4 on Ubuntu Bionic, and Apple +The binary releases of Drake are built with GCC 7.5 on Ubuntu Bionic, and Apple LLVM 11.0.0 on macOS Mojave. The links for these packages are listed in :ref:`binary-installation`. diff --git a/doc/getting_help.rst b/doc/getting_help.rst index af7dcbccdabb..22ae7dada345 100644 --- a/doc/getting_help.rst +++ b/doc/getting_help.rst @@ -44,7 +44,7 @@ When reporting an issue, please consider providing the following information * Operating system (*Ubuntu 18.04, macOS Catalina*) * Language (C++, :ref:`Python `) - - C++ compiler (*GCC 7.4.0, Clang 6.0.0*) + - C++ compiler (*GCC 7.5.0, Clang 6.0.0*) - Python version (*Python 3.6.7*) - Python distribution (*apt, homebrew*)