Home

Awesome

Free Ada

This is a set of build scripts to enable you to build the FSF Ada compiler with AdaCore's GPL'd tools. This is the FSF version of GCC, not AdaCore's GPL'd version which cannot be used for commercial closed source use!

Why?

GCC is a bitch to build and worse still are AdaCore's GPL'd (extra) projects. Having scripts to do it is a lot easier.

What's provided?

The following are AdaCore GPL-2018 versions:

To find out what versions are built, see the config-master.inc.sh file.

Git branches

I have the following branches I will develop on and changes in the latest branch will go into master.

I will be focussing on the latest GCC build's keeping the previous going as long as I can. I will note here the branches and what is deprecated and what isn't. When GCC-10.x is released I will add a new branch for that.

Package manager

You can try Alire to handle the installation of Ada packages.

Help

Get help with the scripts and what can be built so far:

$ ./build-tools.sh -h

Building instructions

To get a native toolchain, use the following instructions:

  cp config-master.inc.sh config.inc.sh
  # modify config.inc as required
  ./download.sh
  ./build-tools.sh -t 1

If you leave everything as default, you will have a bunch of archives in a packages directory and the toolchain installed to $HOME/opt/free-ada-new

Gentoo

$ emerge -av dev-util/dejagnu dev-tcltk/expect dev-lang/tcl

Bare metal cross compilers

These options allow you to build bare metal C and Ada compilers, you have to provide your own runtime.

The following targets have been built, but any target supported by GCC should build now.

Copyright

Copyright (C) 2011-2019 Luke A. Guest with assistance from David Rees

Notes