From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!aioe.org!gy7opw3oYmwPg+L8gXeD2w.user.46.165.242.75.POSTED!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: GNAT FSF Date: Thu, 08 Dec 2022 15:04:59 -0800 Organization: Aioe.org NNTP Server Message-ID: <86lenhijj8.fsf@stephe-leake.org> References: <4b366537-a8e2-40a8-812a-5232826fdff0n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: gioia.aioe.org; logging-data="30592"; posting-host="gy7opw3oYmwPg+L8gXeD2w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Gnus/5.13 (Gnus v5.13) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:I2tOzzIP4hvC/eYNi4VevTC7vrc= Xref: reader01.eternal-september.org comp.lang.ada:64690 List-Id: Simon Wright writes: > AdaMagica writes: > >> In the past, I only used GNAT CE. Now that no new versions are >> provided, I'm gonna try to download the FSF version. >> >> The newest I found is in https://ftp.gnu.org/gnu/gcc/gcc-12.2.0/ >> gcc-12.2.0.tar.gz. > > What you need is alire: > > start here: https://ada-lang.io > more technical: https://alire.ada.dev/docs/#introduction The canonical homepage for alire is https://alire.ada.dev/ The AdaCore CE installer installed core gnatcoll and gnat studio along with the compiler. gnatcoll is in alire, in several pieces; you'll have to install each one that you need (Unless you let Alire manage that for you). gnat studio is not (yet?) in Alire; installers are here: https://github.com/AdaCore/gnatstudio/releases You can either use alire to compile all your projects (recommended in the long run, but it's not a simple transition), or you can export the compiler to use it in a "normal" way: alr toolchain --install gnat_native=12.2.1 --install-dir ~/.local To export a gnatcoll piece: cd alire_stuff alr get gnatcoll_iconv cd gnatcoll_iconv* Then read alire.toml to find the main project file (ie *.gpr) alr exec -- gprinstall -P project.gpr --prefix ~/.local That does not result in a standard gnat install; the compiler is in different directories. So you'll need to move some stuff. I hope it's obvious what needs to be moved. (I don't do this, so I don't have a complete set of instructions). Tedious, which is why just using alire is recommended. On the other hand, it's easy to lose track of just how many components you are downloading once you get used to Alire (as with auto-downloading package managers for python, rust, ...). On my machine, gnat 12 from alire doesn't link on Windows (see https://github.com/alire-project/GNAT-FSF-builds/issues/43); apparently it does for some people. So please report back here if this works for you. I'm currently using Debian in a virtual machine. -- -- Stephe