From 4ed87f90e9396978d2e5be447d5ca89f73313483 Mon Sep 17 00:00:00 2001 From: Geoffroy Van Cutsem Date: Tue, 16 Oct 2018 14:15:13 +0200 Subject: [PATCH] Documentation: add note and instructions for Ubuntu 16.04 There is a compilation error when using the stock gcc compiler from Ubuntu 16.04. This adds a note to our Getting Started Guide to indicate what the error is and how to work around it. Tracked-On: #1482 Signed-off-by: Geoffroy Van Cutsem --- doc/getting-started/apl-nuc.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/getting-started/apl-nuc.rst b/doc/getting-started/apl-nuc.rst index fc145f4c1..dce8ccae0 100644 --- a/doc/getting-started/apl-nuc.rst +++ b/doc/getting-started/apl-nuc.rst @@ -446,6 +446,19 @@ each with their own way to install development tools: e2fslibs-dev $ sudo pip3 install kconfiglib + .. note:: + You need to use ``gcc`` version 7.3.* or higher else you will run into issue + `#1396 `_. Follow + these instructions to install the ``gcc-7`` package on Ubuntu 16.04: + + .. code-block:: none + + $ sudo add-apt-repository ppa:ubuntu-toolchain-r/test + $ sudo apt update + $ sudo apt install g++-7 -y + $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 \ + --slave /usr/bin/g++ g++ /usr/bin/g++-7 + .. note:: Ubuntu 14.04 requires ``libsystemd-journal-dev`` instead of ``libsystemd-dev`` as indicated above.