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!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: Weird error emanating from GNAT binder: duplicat "gnatS" Date: Wed, 22 Feb 2023 10:37:24 +0100 Organization: A noiseless patient Spider 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: 8bit Injection-Date: Wed, 22 Feb 2023 09:37:25 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="34227b80dd9365e1b2a7a8952aa0d862"; logging-data="1554582"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fr73uM4bQx6Y8Le2hE/ZkKGgjvtZalfM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Cancel-Lock: sha1:cCX5qs8tH59FiyYnJX8PLowG1oM= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:64954 List-Id: On 2023-02-22 09:50, Jerry wrote: > > Since my most recent post, and before I read this note from Niklas, I > * Removed the circular dependency between packages common and signal_processing and consequently was able to remove the "limited with" clause. > * The "limited with" has been in the code for a few years; the problem that I am reporting has begun only about 2-3 days ago. At that point, I was adding a function to common.adb and common.ads; upon recompiling, the bug appeared. When I restored those files from backup, the problem remained. To be clear, the "limited with" has been present for a long time with successful compilation until 2-3 days ago. > * As far as I know, which is pretty far, the source code hasn't changed. As we all know, those are famous last words. :-| But the compiler isn't point to my code. The first two statements seem to contradict the third. I will presume that you have returned the code to the state that previously built successfully, and are still getting the problem. Something must have changed (unless GNAT 12 has a time bomb). How long have you been using the version of the compiler that gives you the error? I would suggest deleting all compiler artifacts: .ali, .o[bj], executable, and trying again. You could also try using gnatmake without a project file rather than gprbuild or gnatmake with a project file to see if that has any effect. GNAT 12 has significant known errors that prevent it from compiling legal code. I'm sticking with V11[.3] until they're resolved. You might need to do the same. -- Jeff Carter “If it can't be expressed in figures, it is not science--it is opinion.” The Notebooks of Lazarus Long 210