From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:608:: with SMTP id d8mr21379153qth.258.1573389695889; Sun, 10 Nov 2019 04:41:35 -0800 (PST) X-Received: by 2002:a05:6830:1003:: with SMTP id a3mr1622236otp.16.1573389695600; Sun, 10 Nov 2019 04:41:35 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!j16no6783223qtl.0!news-out.google.com!g53ni103qtg.0!nntp.google.com!j16no6783218qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 10 Nov 2019 04:41:35 -0800 (PST) In-Reply-To: <868fcd46-a02c-4898-bab7-694d2fb634cf@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 References: <1115863b-701a-4a0f-83dc-517a7b35fef6@googlegroups.com> <7aa1caba-eccc-40cb-943a-29e66e19759b@googlegroups.com> <868fcd46-a02c-4898-bab7-694d2fb634cf@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Free-Ada updated to GCC-9.x From: Lucretia Injection-Date: Sun, 10 Nov 2019 12:41:35 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57539 Date: 2019-11-10T04:41:35-08:00 List-Id: 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: > >=20 > > > 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. > >=20 > > 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 e= nough. > >=20 > > 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. > >=20 > > But seeing as MacOS already has GCC/GNAT builds for it, that can wait, = for now. > >=20 > > Is Mingw32 the way to go with an MSYS install? It's been years since I = installed GCC on a Windows machine. >=20 > Optikos covered where to get msys2 (it is the preferred now adays due to = it=20 > being 64bit). What I generally do is: >=20 > 1. Install the necessary tools: > pacman -Sy make > pacman -Sy mingw-w64-x86_64-toolchain >=20 > That should get everything. If it doesn't get GNAT for some reason, then > search pacman for gcc-ada and install that package. >=20 > 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=20 > can get gprbuild. I accomplish this by adding the bin directory for=20 > GNAT Community to the *end* of the path. This ensures using GCC uses > the msys version but gprbuild can still be used. >=20 > I was recently able to successfully build gprbuild for msys2, but I=20 > 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 boots= trap.sh script. In free-ada, I then rebuild and package up both after boots= trap. 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 pa= tches in for toolchain.eclass which builds gnat as part of the system compi= ler, which is preferable, but harder to get the patches merged. Luke.