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

Unable to find compatible versions of toolchanin and libadalang for the jsonbuilder tool #3

Open
mgrojo opened this issue Oct 27, 2024 · 0 comments

Comments

@mgrojo
Copy link

mgrojo commented Oct 27, 2024

Thanks for publishing this library and generator. I wanted to give it a try, but I couldn't find the correct combination of libadalang and the toolchain. Every attempt led to compilation errors. For example, this is using:

  • libadalang 22.0.0
  • gprbuild 22.0.1
  • gnat_native 12.1.2

The errors for these versions were:

Note: Building jsonbuilder=0.1.0-dev/gnatcoll-json-builder.gpr...
gnatcoll.gpr:254:07: warning: value "windows" is not used as label
Compile
   [Ada]          langkit_support-file_readers.adb
   [Ada]          langkit_support-lexical_envs_impl.adb
   [Ada]          langkit_support-adalog-predicates.adb
   [Ada]          langkit_support-adalog-abstract_relation.adb
langkit_support-adalog-predicates.adb:155:13: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
   [Ada]          langkit_support-array_utils.adb
langkit_support-adalog-abstract_relation.ads:66:54: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
   [Ada]          langkit_support-diagnostics-output.adb
langkit_support-array_utils.adb:145:46: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-array_utils.ads:71:11: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
   [Ada]          langkit_support-adalog-operations.adb
langkit_support-file_readers.adb:97:12: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
   [Ada]          langkit_support-vectors.adb
langkit_support-adalog-operations.adb:277:25: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-adalog-operations.adb:288:25: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-adalog-operations.adb:303:15: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-adalog-operations.adb:348:15: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
   [Ada]          langkit_support-symbols.adb
langkit_support-vectors.ads:47:45: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
   [Ada]          gnatcoll-arg_lists.adb
langkit_support-diagnostics-output.adb:83:28: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-diagnostics-output.adb:97:54: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-diagnostics-output.adb:99:57: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
   [Ada]          gnatcoll-json-builder.adb
langkit_support-symbols.adb:24:09: warning: unit "Ada.Unchecked_Conversion" is not referenced [-gnatwu]
langkit_support-lexical_envs_impl.adb:2041:19: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-lexical_envs_impl.adb:2055:26: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-lexical_envs_impl.adb:2083:16: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-lexical_envs_impl.adb:2092:16: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-lexical_envs_impl.adb:2112:16: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
langkit_support-lexical_envs_impl.ads:122:33: warning: array aggregate using () is an obsolescent syntax, use [] instead [-gnatwj]
gnatcoll-arg_lists.adb:138:14: error: ambiguous call to "Append"
gnatcoll-arg_lists.adb:138:14: error: possible interpretation at a-convec.ads:471, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:138:14: error: possible interpretation at a-convec.ads:483, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:177:10: error: ambiguous call to "Append"
gnatcoll-arg_lists.adb:177:10: error: possible interpretation at a-convec.ads:471, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:177:10: error: possible interpretation at a-convec.ads:483, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:190:10: error: ambiguous call to "Append"
gnatcoll-arg_lists.adb:190:10: error: possible interpretation at a-convec.ads:471, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:190:10: error: possible interpretation at a-convec.ads:483, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:459:33: error: ambiguous call to "Append"
gnatcoll-arg_lists.adb:459:33: error: possible interpretation at a-convec.ads:471, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:459:33: error: possible interpretation at a-convec.ads:483, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:476:36: error: ambiguous call to "Append"
gnatcoll-arg_lists.adb:476:36: error: possible interpretation at a-convec.ads:471, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:476:36: error: possible interpretation at a-convec.ads:483, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:518:13: error: ambiguous call to "Append"
gnatcoll-arg_lists.adb:518:13: error: possible interpretation at a-convec.ads:471, instance at gnatcoll-arg_lists.ads:160
gnatcoll-arg_lists.adb:518:13: error: possible interpretation at a-convec.ads:483, instance at gnatcoll-arg_lists.ads:160
gnatcoll-json-builder.adb:114:15: error: "Ada_Concrete_Type_Decl" is undefined

   compilation of gnatcoll-arg_lists.adb failed
   compilation of langkit_support-symbols.adb failed
   compilation of langkit_support-vectors.adb failed
   compilation of langkit_support-adalog-operations.adb failed
   compilation of langkit_support-diagnostics-output.adb failed
   compilation of langkit_support-array_utils.adb failed
   compilation of langkit_support-adalog-abstract_relation.adb failed
   compilation of langkit_support-adalog-predicates.adb failed
   compilation of langkit_support-lexical_envs_impl.adb failed
   compilation of langkit_support-file_readers.adb failed
   compilation of gnatcoll-json-builder.adb failed

gprbuild: *** compilation phase failed
ERROR: Command ["gprbuild", "-s", "-j0", "-p", "-P", "/home/mgr/src/github/persan/gnatcoll-json/jsonbuilder/gnatcoll-json-builder.gpr"] exited with code 4
ERROR: Compilation failed.

Which are the compatible versions?

Using Alire is a good way to avoid these compatibility problems.

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