Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build with GNAT CE 2021 failed #354

Open
hothing opened this issue Nov 27, 2022 · 0 comments
Open

Build with GNAT CE 2021 failed #354

hothing opened this issue Nov 27, 2022 · 0 comments

Comments

@hothing
Copy link

hothing commented Nov 27, 2022

I tried to build AWS v23.0.0 with GNAT CE 2021 and it is failed.

The first build is failed as described in the issue #351. These errors can be fixed in that way:

aws-server.adb:971:

Reference := S.Wait_For_Data'Access;

became

Reference := S.Wait_For_Data'Unchecked_Access;

aws-net-std_gnat.adb:701:

overriding procedure Set_Close_On_Exec (Socket : Socket_Type) is
      Status : Boolean;
   begin
      Sockets.Set_Close_On_Exec (Socket.S.FD, True, Status);
   end Set_Close_On_Exec;

became

overriding procedure Set_Close_On_Exec (Socket : Socket_Type) is
      Status : Boolean;
      pragma Unreferenced (Status);
   begin
      Sockets.Set_Close_On_Exec (Socket.S.FD, True, Status);
   end Set_Close_On_Exec;

These errors are not last, and new build gives new error:

[Ada]          ada2wsdl-parser.adb
ada2wsdl-parser.adb:971:28: error: "Ada_Composite_Constraint" is undefined
ada2wsdl-parser.adb:972:16: error: no selector "As_Composite_Constraint" for type "Constraint'Class" defined at libadalang-analysis.ads:674
ada2wsdl-parser.adb:974:24: error: no selector "As_Composite_Constraint" for type "Constraint'Class" defined at libadalang-analysis.ads:674

   compilation of ada2wsdl-parser.adb failed

gprbuild: *** compilation phase failed

As I understood the error source is Libadalang package, which is too old for GNAT 2021.

How it can be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant