Skip to content

Commit b325766

Browse files
Merge pull request #1446 from jasonrandrews/review
Update GCC install guides
2 parents 6af0813 + ec6fc80 commit b325766

File tree

3 files changed

+29
-16
lines changed

3 files changed

+29
-16
lines changed

content/install-guides/gcc/arm-gnu.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ There are many versions of the [Arm GNU Toolchain](https://developer.arm.com/Too
2727

2828
However there are reasons you may wish to use earlier compiler versions, so older versions are also available.
2929

30-
## Download toolchain {#download}
30+
## How do I download the Arm GNU Toolchain? {#download}
3131

3232
Arm GNU Toolchain releases consist of cross toolchains for the following host operating systems:
3333

@@ -45,7 +45,7 @@ macOS
4545

4646
Download the correct toolchain variant for your development needs from the [Arm Developer website](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads).
4747

48-
## Installing on Linux
48+
## How do I install the Arm GNU Toolchain on Linux?
4949

5050
### Use package installer
5151

@@ -72,13 +72,13 @@ export PATH=/path/to/install/dir/bin:$PATH
7272
Here is a specific example for an Arm Linux host and the AArch32 bare-metal target.
7373

7474
```bash { target="ubuntu:latest" }
75-
wget https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-aarch64-arm-none-eabi.tar.xz
76-
tar xJf arm-gnu-toolchain-13.3.rel1-aarch64-arm-none-eabi.tar.xz -C $HOME
77-
echo 'export PATH="$PATH:$HOME/arm-gnu-toolchain-13.3.rel1-aarch64-arm-none-eabi/bin"' >> ~/.bashrc
75+
wget https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-aarch64-arm-none-eabi.tar.xz
76+
tar xJf arm-gnu-toolchain-14.2.rel1-aarch64-arm-none-eabi.tar.xz -C $HOME
77+
echo 'export PATH="$PATH:$HOME/arm-gnu-toolchain-14.2.rel1-aarch64-arm-none-eabi/bin"' >> ~/.bashrc
7878
source ~/.bashrc
7979
```
8080

81-
## Installing on macOS
81+
## How do I install the Arm GNU Toolchain on macOS?
8282

8383
Downloads for `macOS` are available as tar files (`.tar.xz`) and package files (`.pkg`).
8484

@@ -98,7 +98,7 @@ Use a text editor to add the `bin` directory as a new line in `/etc/paths`.
9898
```console
9999
sudo nano /etc/paths
100100
```
101-
For example the path could be: `/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin`
101+
For example the path could be: `/Applications/ArmGNUToolchain/14.2.rel1/arm-none-eabi/bin`
102102

103103
The `/etc/paths` file is a list of paths to search.
104104

@@ -109,18 +109,21 @@ The `/etc/paths` file is a list of paths to search.
109109
/bin
110110
/usr/sbin
111111
/sbin
112-
/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin
112+
/Applications/ArmGNUToolchain/14.2.rel1/arm-none-eabi/bin
113113
```
114+
114115
### Apple Silicon
116+
115117
Here is a specific example for macOS with Apple Silicon and the AArch32 bare-metal target.
116118

117119
```console
118-
wget https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi.pkg
119-
sudo installer -pkg arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi.pkg -target /
120-
echo '/Applications/ArmGNUToolchain/13.3.rel1/arm-none-eabi/bin' | sudo tee -a /etc/paths
120+
wget https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-darwin-arm64-arm-none-eabi.pkg
121+
sudo installer -pkg arm-gnu-toolchain-14.2.rel1-darwin-arm64-arm-none-eabi.pkg -target /
122+
echo '/Applications/ArmGNUToolchain/14.2.rel1/arm-none-eabi/bin' | sudo tee -a /etc/paths
121123
```
122124

123-
## Installing on Windows
125+
## How do I install the Arm GNU Toolchain on Windows?
126+
124127
Double-click on the installer (e.g. `gcc-arm-_version_--mingw-w64-i686-arm-none-eabi.exe`) and follow on-screen instructions.
125128

126129
The installer can also be run on the command line. When run on

content/install-guides/gcc/cross.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ The executables for 64-bit are `aarch64-linux-gnu-gcc` and `aarch64-linux-gnu-g+
3535

3636
Software can be compiled on an `x86` or `Arm` host machine.
3737

38-
## Download
38+
## How do I download a GCC cross compiler targeting Arm?
3939

4040
The Linux package manager will download the required files so there are no special download instructions.
4141

42-
## Installation
42+
## How do I install a GCC cross compiler on Linux?
43+
44+
You can install a GCC cross compiler with Arm as a target architecture using Linux package managers.
4345

4446
### Installing on Debian based distributions such as Ubuntu
4547

@@ -78,6 +80,14 @@ To install the most common development tools use the commands below.
7880
dnf install gcc-arm-linux-gnu -y
7981
```
8082

83+
## How do I install a GCC cross compiler on macOS?
84+
85+
You can install a GCC cross compiler with Arm as a target architecture using Homebrew, a package manager for macOS (and Linux).
86+
87+
```console
88+
brew install arm-none-eabi-gcc
89+
```
90+
8191
## Setting up product license {#license}
8292

8393
GCC is open source and freely available for use.

content/install-guides/gcc/native.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ aarch64
3939

4040
If you see a different result, you are not using an Arm computer running 64-bit Linux.
4141

42-
## Download
42+
## How do I download a native GCC compiler on Linux?
4343

4444
The Linux package manager downloads the required files so there are no special instructions.
4545

46-
## Installation
46+
## How do I install a native GCC compiler on Linux?
4747

4848
### Installing on Debian based distributions such as Ubuntu
4949

0 commit comments

Comments
 (0)