rbatllet / gnat-packs

Self-contained binary distribution of the FSF GNAT Compiler and other free tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gnat-packs - ready-built GCC/GNAT binary packages

Packages are layered in order (package 2 must be installed after package 1, package 3 after package 2)

  1. gnat-X-base.tar.xz Contains FSF GCC with C,C++, and Ada, including the full GPL runtime exception

  2. gnat-X-xmlada.tar.xz Contains AdaCore's xmlada library

  3. gnat-X-gpr.tar.xz Contains AdaCore's gprbuild

  4. gnat-X-gnatcoll_core.tar.xz Contains AdaCore's gnatcoll-core libraries

  5. gnat-X-gnatcoll_iconv.tar.xz Contains AdaCore's gnatcoll-bindings for iconv

  6. gnat-X-gnatcoll_sql.tar.xz Contains AdaCore's gnatcoll-db libraries for sql

  7. gnat-X-gnatcoll_sqlite.tar.xz Contains AdaCore's gnatcoll-db libraries for sqlite

  8. gnat-X-gnatcoll_xref.tar.xz Contains AdaCore's gnatcoll-db for xref

  9. gnat-X-gdb.tar.xz Contains a complementary build of GDB

  10. gnat-X-elpa_ada_mode.tar.xz Contains a build of the Emacs ELPA Ada Mode binaries

  11. gnat-X-src.tar.xz Contains the full source collection used to build the packages

These packages are fully self-contained, and do not have any other package dependencies

Eventually, these packages will be added to appropriate package repositories.

x86_64 Linux

Builds

  1. GCC-11.3.0

  2. GCC-10.3.0

Installation

  1. (For each package in order above)

    1. Verify gpg from the related signatures in this repository

      $ gpg --import pubkey.asc
      $ gpg --verify gnat-X-y.tar.xz.sig gnat-X-y.tar.xz
      
    2. Extract the package

      $ xz -cd gnat-X-y.tar.xz | sudo tar xP

  2. Modify ~/.bashrc or equivilent:

    export PATH=/opt/gcc-fsf-gnat/bin:$PATH
    export LD_LIBRARY_PATH=/opt/gcc-fsf-gnat/lib64:/opt/gcc-fsf-gnat/lib
    

    Optionally you may want to set LD_RUN_PATH to the same value as LD_LIBRARY_PATH to ensure that executables built with the compiler do not require the same library path to be specified when run.

    For cases where the Ada runtime is to be linked dynamically, you will also need to add the path to the Ada runtime to LD_LIBRARY_PATH (and optionally LD_RUN_PATH). That path can be provided by GCC directly:

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(gcc --print-file-name adalib)
    

x86_64 FreeBSD

Builds

  1. GCC-11.3.0 (FreeBSD 13.1-RELEASE)

  2. GCC-10.3.0 (FreeBSD 13.0-RELEASE)

Installation

  1. (For each package in order above)

    1. Verify gpg from the related signatures in this repository

      $ gpg --import pubkey.asc
      $ gpg --verify gnat-X-y.tar.xz.sig gnat-X-y.tar.xz
      
    2. Extract the package as root

      # tar zxPf gnat-X-y.tar.xz

  2. Modify ~/.profile or equivilent:

    export PATH=/usr/local/gcc-fsf-gnat/bin:$PATH
    export LD_LIBRARY_PATH=/usr/local/gcc-fsf-gnat/lib:/usr/local/gcc-fsf-gnat/lib/gcc/x86_64-fsf-freebsd13.0/10.3.0/adalib:$LD_LIBRARY_PATH
    

    Optionally you may want to set LD_RUN_PATH to the same value as LD_LIBRARY_PATH to ensure that executables built with the compiler do not require the same library path to be specified when run.

    For cases where the Ada runtime is to be linked dynamically, you will also need to add the path to the Ada runtime to LD_LIBRARY_PATH (and optionally LD_RUN_PATH). That path can be provided by GCC directly:

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(gcc --print-file-name adalib)
    

x86_64 MacOS

Builds

  1. GCC-10.3.0 (MacOS/Darwin 21.5.0)

Installation

  1. (For each package in order above)

    1. Verify gpg from the related signatures in this repository

      $ gpg --import pubkey.asc
      $ gpg --verify gnat-X-y.tar.bz2.sig gnat-X-y.tar.bz2
      
    2. Extract the package as root

      # tar zxPf gnat-X-y.tar.bz2

  2. Modify ~/.profile or equivilent:

    export PATH=/usr/local/gcc-fsf-gnat/bin:$PATH
    export DYLD_LIBRARY_PATH=/usr/local/gcc-fsf-gnat/lib:/usr/local/gcc-fsf-gnat/lib/gcc/x86_64-fsf-freebsd13.0/10.3.0/adalib:$DYLD_LIBRARY_PATH
    

    For cases where the Ada runtime is to be linked dynamically, you will also need to add the path to the Ada runtime to LD_LIBRARY_PATH (and optionally LD_RUN_PATH). That path can be provided by GCC directly:

    export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$(gcc --print-file-name adalib)
    

About

Self-contained binary distribution of the FSF GNAT Compiler and other free tools