Skip to content

SettingThePath

Simon Wright edited this page Nov 5, 2024 · 5 revisions

The compiler and tools install under the "prefix" /opt/gcc-M.N.P-R-arch/, for example /opt/gcc-14.1.0-1-aarch64. Some older releases omit the -R, and some omit the -arch.

The M.N.P part is the official GCC release identification. The -R indicates the release of that GCC release in this project. For example, 14.2.0-3 would be the third release of GCC 14.2.0 in this project; successive releases might be for macOS issues, or for AdaCore tool release updates, or for errors in the build.

Note, that since our GCC 14 releases, you can move the compiler after installation.

From here on, we're going to assume you have the compiler installed at /opt/gcc-14.1.0-1-aarch64.

The executables (for example, gnatmake) are in the bin/ subdirectory, so we need to have /opt/gcc-14.1.0-1-aarch64/bin on the PATH; preferably at the front!

For Terminal use

For both shells, the change here affects future Terminal windows, so after application, close the current window(s) and open a new one.

bash

Insert

export PATH=/opt/gcc-14.1.0-1-aarch64/bin:$PATH

in your ~/.bash_profile_common.

zsh

Likewise, but in ~/.zshrc.

See here for helpful information on moving to zsh.

For Emacs ada-mode

(TBD)

For GNAT Studio

(TBD)

For VS Code

(TBD)

Clone this wiki locally