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

Make sure that the right version of libabseil is used in conda #4987

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

JanuszL
Copy link
Contributor

@JanuszL JanuszL commented Aug 9, 2023

  • DALI links statically with libprotobuf and this implies a runtime
    dependency on libabseil in a conda environment. However, it seems
    that protobuf cmake asks DALI to link with a specific (versioned)
    libabseil instead of just *.so, and when a newer libabseil than
    the libprotobuf was built with appeared there is an error
    and during the installation, DALI asks for the latest libabseil
    while libprotobuf enforces a certain version. This PR makes sure
    that the libprotobuf installs its dependencies with DALI without
    explicit placing libabseil in the runtime dependency list

Category:

Other (e.g. Documentation, Tests, Configuration)

Description:

  • DALI links statically with libprotobuf and this implies a runtime
    dependency on libabseil in a conda environment. However, it seems
    that protobuf cmake asks DALI to link with a specific (versioned)
    libabseil instead of just *.so, and when a newer libabseil than
    the libprotobuf was built with appeared there is an error
    and during the installation, DALI asks for the latest libabseil
    while libprotobuf enforces a certain version. This PR makes sure
    that the libprotobuf installs its dependencies with DALI without
    explicit placing libabseil in the runtime dependency list

Additional information:

Affected modules and functionalities:

Key points relevant for the review:

  • NA

Tests:

  • Existing tests apply
    • all conda tests
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

- DALI links statically with libprotobuf and this implies a runtime
  dependency on libabseil in a conda environment. However, it seems
  that protobuf cmake asks DALI to link with a specific (versioned)
  libabseil instead of just *.so, and when a newer libabseil than
  the libprotobuf was built with appeared there is an error
  and during the installation, DALI asks for the latest libabseil
  while libprotobuf enforces a certain version. This PR makes sure
  that the libprotobuf installs its dependencies with DALI without
  explicit placing libabseil in the runtime dependency list

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [9300798]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [9300798]: BUILD PASSED

@JanuszL JanuszL merged commit 713fe98 into NVIDIA:main Aug 10, 2023
4 checks passed
@JanuszL JanuszL deleted the fix_conda_libabseil branch August 10, 2023 10:37
JanuszL added a commit to JanuszL/DALI that referenced this pull request Aug 11, 2023
…used in conda

- relates to NVIDIA#4987
- DALI conda build depends on libprotobuf-static and protobuf. The first
  was just recently updated while the latter was not, so during the build
  the libabseil version is older and implied by protobuf, why during runtime
  libprotobuf-static picks the newer one.

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
JanuszL added a commit that referenced this pull request Aug 11, 2023
…used in conda (#4991)

- relates to #4987
- DALI conda build depends on libprotobuf-static and protobuf. The first
  was just recently updated while the latter was not, so during the build
  the libabseil version is older and implied by protobuf, why during runtime
  libprotobuf-static picks the newer one.

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
JanuszL added a commit to JanuszL/DALI that referenced this pull request Oct 13, 2023
…A#4987)

- DALI links statically with libprotobuf and this implies a runtime
  dependency on libabseil in a conda environment. However, it seems
  that protobuf cmake asks DALI to link with a specific (versioned)
  libabseil instead of just *.so, and when a newer libabseil than
  the libprotobuf was built with appeared there is an error
  and during the installation, DALI asks for the latest libabseil
  while libprotobuf enforces a certain version. This PR makes sure
  that the libprotobuf installs its dependencies with DALI without
  explicit placing libabseil in the runtime dependency list

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
JanuszL added a commit to JanuszL/DALI that referenced this pull request Oct 13, 2023
…used in conda (NVIDIA#4991)

- relates to NVIDIA#4987
- DALI conda build depends on libprotobuf-static and protobuf. The first
  was just recently updated while the latter was not, so during the build
  the libabseil version is older and implied by protobuf, why during runtime
  libprotobuf-static picks the newer one.

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
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

Successfully merging this pull request may close these issues.

None yet

4 participants