AdaCore / AdaCore/gnatcoll-bindings

[v26.0.0] The binding to the Zstd library fails to build.

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ada
Stars
15
Forks
15
PR merge metrics
No merged PRs in 30d

Description

It appears that tightening the dependency to GNATcoll minimal (as done in this commit) is ineffective because package GNATCOLL.ZSTD.Controlled depends on GNATCOLL.OS.FS, which is not part of GNATcoll minimal.

gnatcoll-zstd-controlled.ads:34:06: error: file "gnatcoll-os.ads" not found
gnatcoll-zstd-controlled.ads:34:06: error: "GNATCOLL.ZSTD.CONTROLLED (body)" depends on "GNATCOLL.ZSTD.CONTROLLED (spec)"
gnatcoll-zstd-controlled.ads:34:06: error: "GNATCOLL.ZSTD.CONTROLLED (spec)" depends on "GNATCOLL.OS (spec)"
gnatcoll-coders-zstd.adb:194:07: warning: formal parameter "Out_Data" is read but never assigned [-gnatwv]

   compilation of gnatcoll-zstd-controlled.adb failed

gprbuild: *** compilation phase failed

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the v26.0.0 build failure and start with gnatcoll-zstd-controlled.ads, which reports the missing GNATCOLL.OS dependency. Check how the GNATcoll minimal dependency is configured and inspect gnatcoll-coders-zstd.adb for the accompanying warning. Done means the Zstd binding builds successfully without the reported missing-file error.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.