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

Does not build without changes with the current dependency specification for gnatcoll #66

Open
mgrojo opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mgrojo
Copy link

mgrojo commented Feb 14, 2025

Describe the bug
Tried to build using Alire, but both alr install spath and cloning the repository and then alr build failed.

To Reproduce
alr install spat

Expected Behavior
The tool is built and then installed by Alire.

Console Output

Build Libraries
   [gprlib]       gnatcoll_minimal.lexch
   [gprlib]       gnatcoll_core.lexch
   [archive]      libgnatcoll_minimal.a
   [index]        libgnatcoll_minimal.a
   [gprlib]       gnatcoll_projects.lexch
   [archive]      libgnatcoll_core.a
   [index]        libgnatcoll_core.a
   [archive]      libgnatcoll_projects.a
   [index]        libgnatcoll_projects.a
ⓘ Building gnatcoll=25.0.0/projects/gnatcoll_projects.gpr (2/4)...
ⓘ Building gnatcoll=25.0.0/core/gnatcoll_core.gpr (3/4)...
ⓘ Building gnatcoll=25.0.0/minimal/gnatcoll_minimal.gpr (4/4)...
ⓘ Building spat=1.3.0/spat.gpr...
Compile
   [Ada]          run_spat.adb
run_spat.adb:24:14: warning: unit "GNATCOLL.Projects" is not referenced [-gnatwu]
spat-command_line.ads:134:04: error: instantiation error at gnatcoll-opt_parse.ads:632
spat-command_line.ads:134:04: error: "List_Stop_Predicate" is not visible
spat-command_line.ads:134:04: error: instantiation error at gnatcoll-opt_parse.ads:632
spat-command_line.ads:134:04: error: non-visible declaration at gnatcoll-opt_parse.ads:632
spat-command_line.ads:134:04: error: instantiation error at gnatcoll-opt_parse.ads:632
spat-command_line.ads:134:04: error: non-visible declaration at gnatcoll-opt_parse.ads:290

   compilation of run_spat.adb failed

gprbuild: *** compilation phase failed
error: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/mgr/src/github/mgrojo/spat/alire/tmp/alr-phwq.tmp/spat_1.3.0_4ad4ab14/spat.gpr"] exited with code 4
error: Build failed, cannot perform installation

Additional Context
I have a fix, will send a PR shortly. The problem is due to incompatibility with the selected gnatcoll version.

@mgrojo mgrojo added the bug Something isn't working label Feb 14, 2025
mgrojo added a commit to mgrojo/spat that referenced this issue Feb 14, 2025
`alire.lock` deleted, as it is no longer needed for Alire, and it is deleting the file.
kanigsson added a commit to AdaCore/spat that referenced this issue Feb 20, 2025
Fix HeisenbugLtd#66: specify compatible gnatcoll versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants