From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Weird error emanating from GNAT binder: duplicat "gnatS" Date: Thu, 23 Feb 2023 14:57:52 +0200 Organization: Tidorum Ltd Message-ID: References: <365f84cf-29ae-4857-8dfe-e3bfa2191f9dn@googlegroups.com> <022bbc8b-8764-4562-900a-7143fabd394cn@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net vImp/BXnVDm7kDut73UUvQSPnqPhzoHjbS+/fEe2bYZD2wwwlr Cancel-Lock: sha1:zJv8GE9VOpLCCI4WiGWAtM6pS58= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US In-Reply-To: Xref: reader01.eternal-september.org comp.lang.ada:64963 List-Id: On 2023-02-23 8:34, Jerry wrote: > I deleted lines from common.adb and common.ads piecemeal until I arrived at this MWE: > > with Common; > procedure Test_gnatS_Problem is > begin > null; > end Test_gnatS_Problem; > > package body Common is > procedure Dummy is > begin > null; > end Dummy; > end Common; > > with GNAT.OS_Lib; -- Error disappears when this line is removed. > package Common is > procedure Dummy; > end Common; > > Surely this is enough for someone to work with in fixing this problem. > > Jerry Compiles with no error (including the "with" clause) on my system, which is an oldish one: GNAT Community 2019 (20190517-83) MacOS Mojave