Download Latest Version xnadalib-ce-2021-quartz-x86_64-apple-darwin20.5.0-bin.tgz (160.6 MB)
Email in envelope

Get an email when there's a new version of The GNU Ada compiler

Home / GNAT_GPL Mac OS X / 2021-x86_64-darwin-bin-2
Name Modified Size InfoDownloads / Week
Parent folder
README-for-gnat-ce-2021-x86_64-apple-darwin15.md 2021-08-18 5.0 kB
gnat-ce-2021-x86_64-apple-darwin15.pkg 2021-08-17 333.4 MB
Totals: 2 Items   333.4 MB 0

This is the second release of GNAT Community Edition 2021 built on Mac OS X El Capitan (10.11, Darwin 15), with Xcode 8.2.1.


The problems addressed are:

  • Bad dylib path in libxmlada_unicode.dylib.2021: I hadn't cleared out a previous build attempt: fixed.
  • Gnatcoll.Xref crash: this also affected emacs ada-mode: patched.
  • GDB file command crash: patched.

Additionally, note:

  • The Gnatcoll Python binding is (a) to Python 3, (b) to the python.org release, which is not in the same place as the Big Sur Xcode release.
  • Only the Sqlite backend for Gnatcoll DB is provided.

Also runs on macOS versions up to Big Sur (11, Darwin 20).

gnat-ce-2021-x86_64-apple-darwin15.pkg

Compilers included: Ada, C, C++.

The compiler, runtime and tools included are licensed under the GPL v3, and are sourced from the AdaCore Community download site.

Target: x86_64-apple-darwin15

Configured with:

 --prefix=/opt/gnat-ce-2021
 --without-libiconv-prefix
 --disable-libmudflap
 --disable-libstdcxx-pch
 --disable-libsanitizer
 --disable-libcc1
 --disable-libcilkrts
 --disable-multilib
 --disable-nls
 --enable-languages=c,c++,ada
 --host=x86_64-apple-darwin15
 --target=x86_64-apple-darwin15
 --build=x86_64-apple-darwin15
 --without-isl
 --with-build-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
 --with-sysroot=
 --with-specs='%{!sysroot=*:--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk}'
 --with-build-config=no
 --enable-bootstrap

Tools , Libraries

  • AUnit
  • GDB
  • GMP
  • GNATCOLL bindings
  • GNATCOLL core
  • GNATCOLL database
  • Gprbuild
  • Langkit
  • Libadalang and tools
  • MPC
  • MPFR
  • XMLAda

Install

Xcode is required.

Download the binary .pkg. It's not signed, so don't double-click on it; instead, right-click on it and Open. Accept the warning. You will be guided through the installation.

Setting PATH

PATH needs to be set to include /opt/gnat-ce-2021/bin at the front:

bash

Insert

export PATH=/opt/gnat-ce-2021/bin:$PATH

in your ~/.bash_profile_common.

zsh

Likewise, but in ~/.zshrc.

See here for helpful information on moving to zsh.

Installing GDB

gdb has to be 'code-signed' (unless you're willing to run it as root!) and under Sierra and later macOS releases there are additional steps that have to be taken.

For El Capitan, see here.

For Sierra, and High Sierra, see here; in the case of High Sierra, the 10.12.1 paragraph refers.

For Mojave, Catalina and Big Sur, see here.

Notes

The software was built using the building-gcc-macos-native scripts at Github, tag gnat-ce-2021.

The AdaCore tools were sourced from AdaCore's community site except for GNATCOLL-DB, from AdaCore's Github at v21.0.0, with this patch.

The Python3 binding was built using the Python 3.8.2 distribution from python.org.

GDB was rebuilt with the new compiler, with additional patches here and here (the latter with slight modifications).

To use the debugger, it must be signed: see above.

Include, library paths

As discussed here, Apple have changed the location of system include files and libraries; they used to be copied from the SDKs to the "standard" /usr/include and /usr/lib either automatically or on command. The workround that this distribution includes has the unfortunate side-effect that /usr/local/include and /usr/include/lib are not automatically included in C/C++ compilations and links.

Distribution

The distribution was prepared using the distributing-gcc project at Github, tag gnat-ce-2021-2.

Source: README-for-gnat-ce-2021-x86_64-apple-darwin15.md, updated 2021-08-18