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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: gnoga build fails on Mac Date: Mon, 22 Jun 2020 07:56:15 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <4bbbd09e-e14f-46f5-a510-bdf0c17eba8fo@googlegroups.com> <57adcbd8-4583-4c0f-8bdf-1ac8bd6c6913o@googlegroups.com> NNTP-Posting-Host: 2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:59151 List-Id: On 22/06/2020 05:15, Roger wrote: > In reply to Sunday, June 21, 2020 at 11:28:18 PM UTC+10, Dmitry A. Kazakov wrote: > > Thanks, that worked. A similar problem occurred with Gnoga.Gui.View.adb. > Additional problems: > demo/db_maker/movies.adb > "equality operator must be declared before type "Movie_Info" is frozen (RM 4.5.2 (9.8)) (Ada 2012)" > I couldn't figure out how to fix this so I removed this demo from the build. That looks like a compiler bug to me. But what happens when you do declarations first. E.g. replace type Movie_Info is record Title : Strng; Year : Strng; Director : Strng; Writer : Strng; Male_Lead : Strng; Female_Lead : Strng; end record; function "=" (Left : Movie_Info; Right : Movie_Info) return Boolean is ... end "="; function "<" (Left : Movie_Info; Right : Movie_Info) return Boolean is ... end "<"; ... with type Movie_Info is record Title : Strng; Year : Strng; Director : Strng; Writer : Strng; Male_Lead : Strng; Female_Lead : Strng; end record; -- Declarations first function "=" (Left : Movie_Info; Right : Movie_Info) return Boolean; function "<" (Left : Movie_Info; Right : Movie_Info) return Boolean; ... -- All bodies function "=" (Left : Movie_Info; Right : Movie_Info) return Boolean is ... end "="; function "<" (Left : Movie_Info; Right : Movie_Info) return Boolean is ... end "<"; ... -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de