From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal 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:a37:63c2:: with SMTP id x185mr11728014qkb.82.1592738302249; Sun, 21 Jun 2020 04:18:22 -0700 (PDT) X-Received: by 2002:a4a:4c8e:: with SMTP id a136mr10207814oob.23.1592738302023; Sun, 21 Jun 2020 04:18:22 -0700 (PDT) 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!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 21 Jun 2020 04:18:21 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=124.171.108.61; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 124.171.108.61 References: <4bbbd09e-e14f-46f5-a510-bdf0c17eba8fo@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: gnoga build fails on Mac From: Roger Injection-Date: Sun, 21 Jun 2020 11:18:22 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:59140 List-Id: On Sunday, June 21, 2020 at 6:41:58 PM UTC+10, Dmitry A. Kazakov wrote: > On 21/06/2020 09:57, Roger wrote: > > Mac Mini (2018) > > OSX 10.15.5 > > XCode 11.5 > > GNAT Community Edition 2020 > > > > Attempting to build git clone git://git.code.sf.net/p/gnoga/code gnoga. > > > > First problem with -gnat05 flag which I overcame but probably not the correct way. > > Second, killer, problem: > > object-handle.adb:153:22: access attribute cannot be used as actual for universal_access equality > > object-handle.adb:163:23: access attribute cannot be used as actual for universal_access equality > > > > How can I fix this? > > GNAT CE 2020 does not accept comparisons like: > > procedure Foo (X : access T) is > begin > ... > if Y'Access = X then > ... > > I cannot say anything about legality of such comparisons, maybe the > change is related to the upcoming standard, maybe it was never legal. > > The latest version 4.50 of the Simple Components fixes the issue by > replacing access types comparison with by address comparison. [*] > > http://www.dmitry-kazakov.de/ada/components.htm > > Replace the offending source files and it should compile again. > > ------------------- > * I don't know the motivation behind forbidding comparison of access > attribute, probably some obscure unlikely portability case. Comparing > addresses would be less safe, for sure, but not much. > > -- > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de Thanks, That problem is fixed. However, I now have another problem that I don't know how to fix that is not part of Simple Components but presumably due to GNAT CE 2020 restrictions. gnoga-gui-view-docker.adb:117:40: implicit conversion of anonymous access parameter not allowed and other similar errors in gnoga-gui-view-docker.adb:117:40