comp.lang.ada
 help / color / mirror / Atom feed
From: Lucretia <laguest9000@googlemail.com>
Subject: Re: Free-Ada updated to GCC-9.x
Date: Sun, 10 Nov 2019 04:41:35 -0800 (PST)
Date: 2019-11-10T04:41:35-08:00	[thread overview]
Message-ID: <da4cf92b-6fcc-49c3-bab6-27ba9f9efb0d@googlegroups.com> (raw)
In-Reply-To: <868fcd46-a02c-4898-bab7-694d2fb634cf@googlegroups.com>

On Sunday, 10 November 2019 03:28:33 UTC, Jere  wrote:
> On Friday, November 8, 2019 at 5:38:35 PM UTC-5, Lucretia wrote:
> > On Friday, 8 November 2019 18:46:25 UTC, Jere  wrote:
> > 
> > > Nice!  This looks like it only builds in Linux for now?  I saw some
> > > references to msys in there, but they don't appear to always set the
> > > same settings as other host systems.  I'm typically doing Ada
> > > development from msys2 on Win10 64bit, so was curious about it.
> > 
> > Yeah, only developed and tested on Linux for now. The aim is to get it working for other platforms, but getting this far on one platform is hard enough.
> > 
> > Luckily, Linux kernel 5.3.7-gentoo, has a working VFIO with passthrough, the last (quite a) few revisions have been broken, so I have my Win10 and MacOS VM's working again, but don't expect anything much too soon.
> > 
> > But seeing as MacOS already has GCC/GNAT builds for it, that can wait, for now.
> > 
> > Is Mingw32 the way to go with an MSYS install? It's been years since I installed GCC on a Windows machine.
> 
> Optikos covered where to get msys2 (it is the preferred now adays due to it 
> being 64bit).  What I generally do is:
> 
> 1.  Install the necessary tools:
> pacman -Sy make
> pacman -Sy mingw-w64-x86_64-toolchain
> 
> That should get everything.  If it doesn't get GNAT for some reason, then
> search pacman for gcc-ada and install that package.
> 
> 2.  Install GNAT community 2018 or newer.  There is no gprbuild in msys2
> and sometimes it is hard to build.  By installing GNAT community, you 
> can get gprbuild.  I accomplish this by adding the bin directory for 
> GNAT Community to the *end* of the path.  This ensures using GCC uses
> the msys version but gprbuild can still be used.
> 
> I was recently able to successfully build gprbuild for msys2, but I 
> would not recommend it to start out until you are comfortable with
> the environment.

I'm surprised they packaged gnat and not gprbuild.

To build gprbuild, you need to get the sources and xmlada and use the bootstrap.sh script. In free-ada, I then rebuild and package up both after bootstrap.

Once you have gprbuild, you can build the rest.

I built free-ada because Gentoo has nothing provided for Ada except ancient build scripts and they build a separate compiler, I did try to get some patches in for toolchain.eclass which builds gnat as part of the system compiler, which is preferable, but harder to get the patches merged.

Luke.

      reply	other threads:[~2019-11-10 12:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-06 15:32 Free-Ada updated to GCC-9.x Lucretia
2019-11-06 15:41 ` Shark8
2019-11-06 20:48 ` Azathoth Hastur
2019-11-06 20:56   ` Lucretia
2019-11-08  0:44     ` Azathoth Hastur
2019-11-08 10:53       ` Lucretia
2019-11-08 16:35         ` Azathoth Hastur
2019-11-08 18:46 ` Jere
2019-11-08 22:38   ` Lucretia
2019-11-09  3:19     ` Optikos
2019-11-10  3:28     ` Jere
2019-11-10 12:41       ` Lucretia [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox