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=-0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:622a:1b18:b0:3bd:17aa:49b2 with SMTP id bb24-20020a05622a1b1800b003bd17aa49b2mr511835qtb.5.1676938300257; Mon, 20 Feb 2023 16:11:40 -0800 (PST) X-Received: by 2002:a05:6808:209e:b0:379:ed2a:be6d with SMTP id s30-20020a056808209e00b00379ed2abe6dmr682309oiw.129.1676938300026; Mon, 20 Feb 2023 16:11:40 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 20 Feb 2023 16:11:39 -0800 (PST) Injection-Info: google-groups.googlegroups.com; posting-host=184.98.162.11; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG NNTP-Posting-Host: 184.98.162.11 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <365f84cf-29ae-4857-8dfe-e3bfa2191f9dn@googlegroups.com> Subject: Weird error emanating from GNAT binder: duplicat "gnatS" From: Jerry Injection-Date: Tue, 21 Feb 2023 00:11:40 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 3086 Xref: reader01.eternal-september.org comp.lang.ada:64950 List-Id: I have the following program... with Common; procedure Test_gnatS_Problem is begin null; end Test_gnatS_Problem; which is complied with GNAT 12.2.0 on MacOS 12.5. This minimal example is of course reduced from a useful program of mine. I am not including the gpr file here unless someone wants to see it. The output is... Compile [Ada] Test_gnatS_Problem.adb [Ada] common.adb [Ada] signal_processing.adb [Ada] GSL_Thin.adb GSL_Thin.adb:27:09: warning: unreachable code [enabled by default] [Ada] numerical_recipes.adb numerical_recipes.adb:209:13: warning: unreachable code [enabled by default] [Ada] signals.adb Bind [gprbind] Test_gnatS_Problem.bexch [Ada] Test_gnatS_Problem.ali b__Test_gnatS_Problem.ads:582:30: error: external name duplicates name given at line 578 gprbind: compilation of binder generated file failed gprbuild: unable to bind Test_gnatS_Problem.adb I don't believe the warnings are germain. Here are a few lines from the referenced b__Test_gnatS_Problem.ads... 575 u00267 : constant Version_32 := 16#db4cf09e#; 576 pragma Export (C, u00267, "ada__strings__superboundedS"); 577 u00268 : constant Version_32 := 16#b5988c27#; 578 pragma Export (C, u00268, "gnatS"); 579 u00269 : constant Version_32 := 16#1a69b526#; 580 pragma Export (C, u00269, "gnat__os_libS"); 581 u00270 : constant Version_32 := 16#b5988c27#; 582 pragma Export (C, u00270, "gnatS"); 583 u00271 : constant Version_32 := 16#aebf1ee6#; 584 pragma Export (C, u00271, "system__byte_swappingS"); >From the docs' listing of compiler switches... -gnatS Print package Standard Possibly relevant is that common and signal_processiung "with" eacb other and I have added a "limited with Signal_Processing" to common.ads. I have no idea what is happening. I have compiled these sources zillions of times without seeing this problem. There is no reported problem with the source files, only the b_ file. Jerry