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:a24:dc05:: with SMTP id q5mr11546777itg.123.1560090720517; Sun, 09 Jun 2019 07:32:00 -0700 (PDT) X-Received: by 2002:a9d:6c13:: with SMTP id f19mr26439258otq.76.1560090719927; Sun, 09 Jun 2019 07:31:59 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!g15no572690itd.0!news-out.google.com!l135ni663itc.0!nntp.google.com!g15no572687itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 9 Jun 2019 07:31:59 -0700 (PDT) In-Reply-To: <0f5a2a6b-d467-434c-8f3e-0964793e93ef@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=179.178.6.212; posting-account=1Xv-6QoAAACDoVuHxsOQybzr2Y_PgwKz NNTP-Posting-Host: 179.178.6.212 References: <47f671ea-bd40-4a98-8a34-8e99d94622cb@googlegroups.com> <441bc6de-05c5-4e2f-b601-110e8400cec7@googlegroups.com> <0f5a2a6b-d467-434c-8f3e-0964793e93ef@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <20671caa-cbce-41d5-adb1-3701ed2760b4@googlegroups.com> Subject: Re: Starting learning ADA From: =?UTF-8?Q?Ricardo_Brand=C3=A3o?= Injection-Date: Sun, 09 Jun 2019 14:32:00 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3937 X-Received-Body-CRC: 3917564327 Xref: reader01.eternal-september.org comp.lang.ada:56574 Date: 2019-06-09T07:31:59-07:00 List-Id: Hi Joakim, > From what I understand you have installed two different GNAT compilers on= your computer and that's what causes the issues you see. First GNAT CE 201= 9 has been installed and then the FSF GNAT compiler by "sudo apt install gn= at" and the FSF version of gprbuild by "sudo apt install gprbuild". The GNA= T CE and FSF GNAT compilers are two different compilers and the binaries th= ey produce are not compatible with each other (others in this forum can exp= lain why much better than I can). In the GNAT CE installation, the gnatcoll= library is pre-compiled by the GNAT CE compiler. Those binaries cannot be = used by the FSF GNAT compiler. To get the computer in working order I sugge= st de-installing the FSF version of GNAT and gprbuild and then use the norm= al command prompt for using gprbuild (GNAT CE 2019 version). > Yes, I previously had installed a GCC program, so when I got the output bel= ow when I ran: c:\>where gcc c:\MinGW\bin\gcc.exe D:\GNAT\2019\bin\gcc.exe =20 So, removing c:\MinGW\bin\gcc.exe from PATH environment variable, I got rem= ove the original problem, but I got new ones :). But probably, with Windows= , as a newbie in Ada, I imagine the best is run through GPS. BTW, I solved a problem I was stuck in GPS [1], I didn't get debug in GPS, = with "new" PATH variable, debug worked fine.=20 > When opening the normal command prompt in Windows 10 and one executes "gc= c --version" it should say it is the GNAT Community 2019 version of the com= piler. You could try that in the Ubuntu Subsystem and I predict is will say= gcc is the FSF version. Exactly: $ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Well, my idea is be able to run Ada programs in many OSs and embedded devic= es. But probably for this moment, I imagine the better thing to do is start= with GPS until I become familiar with Ada and after, move to others OSs an= d devices. I noticed, as well, using the Ubuntu Subsystem for Windows 10 probably is n= ot a good idea to understand how the stuffs run in a actual Linux distro. Thanks [1] https://groups.google.com/forum/#!topic/comp.lang.ada/cyrk-IRZBtQ -- Ricardo Brandao