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 failure under alr for simple test #377

Open
simonjwright opened this issue Jun 14, 2024 · 0 comments
Open

Build failure under alr for simple test #377

simonjwright opened this issue Jun 14, 2024 · 0 comments

Comments

@simonjwright
Copy link
Contributor

This is under alr 2.0.1 on macOS with aarch64-apple-darwin (GCC 14.1.0).

This is the test file (triggered by a recent Reddit post before I noticed it was about Windows):

with Ada.Text_IO;
with AWS.Client;
with AWS.Response;
procedure The_Doctor is
   Result : AWS.Response.Data;
begin
   Result := AWS.Client.Get
     ("https://github.com/AdaCore/aws/blob/master/src/core/aws-client.ads");
   Ada.Text_IO.Put_Line ("==================");
   Ada.Text_IO.Put (AWS.Response.Message_Body (Result));
   Ada.Text_IO.Put_Line ("==================");
end The_Doctor;

and the build was set up with alr with aws.

The build failed with

$ alr build
ⓘ Building the_doctor=0.1.0-dev/the_doctor.gpr...                            
Bind
   [gprbind]      the_doctor.bexch
   [Ada]          the_doctor.ali
error: "gnatcoll-refcount.ali" not found, "gnatcoll-refcount.adb" must be compiled
error: "gnatcoll-refcount.ali" not found, "gnatcoll-refcount.adb" must be compiled
gprbind: invocation of gnatbind failed
gprbuild: unable to bind the_doctor.adb
error: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/Users/simon/tmp/the_doctor/the_doctor.gpr"] exited with code 4
error: Compilation failed.

I found I could get a successful build by adding a direct dependency (alr with gnatcoll).

I think this may be because aws.gpr doesn’t call in any other projects? (and, what about openssl, xmlada?)

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