comp.lang.ada
 help / color / mirror / Atom feed
* Weird error emanating from GNAT binder: duplicat "gnatS"
@ 2023-02-21  0:11 Jerry
  2023-02-21 22:59 ` Jerry
  0 siblings, 1 reply; 17+ messages in thread
From: Jerry @ 2023-02-21  0:11 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-02-26  5:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21  0:11 Weird error emanating from GNAT binder: duplicat "gnatS" Jerry
2023-02-21 22:59 ` Jerry
2023-02-22  5:53   ` Niklas Holsti
2023-02-22  8:50     ` Jerry
2023-02-22  9:37       ` Jeffrey R.Carter
2023-02-22  9:49         ` Jerry
2023-02-22 14:26         ` Simon Wright
2023-02-23  6:34           ` Jerry
2023-02-23 12:57             ` Niklas Holsti
2023-02-24 20:22               ` Jeffrey R.Carter
2023-02-22  9:39       ` Jerry
2023-02-23 13:16         ` Simon Wright
2023-02-23 19:33           ` Jerry
2023-02-24  0:28             ` Jerry
2023-02-24  0:34               ` Jerry
2023-02-24  8:07                 ` R R
2023-02-26  5:30                   ` Jerry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox