Build with GNAT CE 2021 failed
Nobody has claimed this yet.
- Dominant language
- Ada
- Stars
- 162
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the AWS v23.0.0 build with GNAT CE 2021, then inspect ada2wsdl-parser.adb around lines 971-974 and the Libadalang declarations in libadalang-analysis.ads. Also review the reported locations in aws-server.adb and aws-net-std_gnat.adb. Done means the project builds successfully without these GNAT compatibility errors.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100