From 4e93f93f303a85e04bdd7e4da22df028c0f76de3 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Thu, 28 Sep 2023 09:59:05 +0200 Subject: [PATCH] Documentation: update gcc compiler to 10.3 Update the gcc compiler to 10.3-2021.10 to be able to compile the latest NuttX version Fix for error: arm-none-eabi-g++: error: unrecognized command line option '-std=gnu++20'; did you mean '-std=gnu++2a'? Signed-off-by: Alin Jerpelea --- Documentation/quickstart/install.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/quickstart/install.rst b/Documentation/quickstart/install.rst index 043bd456df..43f0a14ece 100644 --- a/Documentation/quickstart/install.rst +++ b/Documentation/quickstart/install.rst @@ -167,15 +167,15 @@ ARM architecture: .. code-block:: console $ HOST_PLATFORM=x86_64-linux # use "mac" for macOS. - $ # For Windows there is a zip instead (gcc-arm-none-eabi-9-2019-q4-major-win32.zip) - $ curl -L -O https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-${HOST_PLATFORM}.tar.bz2 - $ tar xf gcc-arm-none-eabi-9-2019-q4-major-${HOST_PLATFORM}.tar.bz2 + $ # For Windows there is a zip instead (gcc-arm-none-eabi-10.3-2021.10-win32.zip) + $ curl -L -O https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-10.3-2021.10-${HOST_PLATFORM}.tar.bz2 + $ tar xf gcc-arm-none-eabi-10.3-2021.10-${HOST_PLATFORM}.tar.bz2 Add the toolchain to your `PATH`: .. code-block:: console - $ echo "export PATH=/opt/gcc/gcc-arm-none-eabi-9-2019-q4-major/bin:$PATH" >> ~/.bashrc + $ echo "export PATH=/opt/gcc/gcc-arm-none-eabi-10.3-2021.10/bin:$PATH" >> ~/.bashrc You can edit your shell's rc files if you don't use bash.