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

[release/2.4] Newer conda versions require --update-deps to update dependencies such as libgcc-ng #1946

Draft
wants to merge 1 commit into
base: release/2.4
Choose a base branch
from

Conversation

jithunnair-amd
Copy link
Collaborator

Fixes SWDEV-516667

  • conda installs the same libgcc-ng package from "defaults" conda channel: libgcc-ng pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1
  • However, at a later point, when we try to install libstdcxx-ng 12.3.0 from conda-forge, conda 24.7.1 updates the dependencies of that package, including libgcc-ng package to the following: 
    libgcc-ng-14.2.0 | h69a702a_2 52 KB conda-forge
    On the contrary, conda 25.1.1 does not update any dependencies, and hence the same installation of libgcc-ng is present in DOCKER_F after this step.
    The older libgcc-ng from the "defaults" conda channel contains a problematic RPATH setting: 
    0x000000000000000f (RPATH) Library rpath: [/opt/conda/conda-bld/gcc-compiler_1654084175708/h_env_placehold_placehold_placehold_placehold_placehold_placeho
    ld_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold
    /lib]
    The newer libgcc-ng from the "conda-forge" conda channel contains the proper RPATH setting: 
    0x000000000000000f (RPATH) Library rpath: [$ORIGIN/.]
    Adding the "--update-deps" flags to the conda install command installs the newer libgcc-ng package from the "conda-forge" conda channel: 
    libgcc-ng-12.3.0 | h77fa898_13 762 KB conda-forge
    While this is not the exact same version of libgcc-ng as installed by conda 24.7.1, it does seem to be the more compatible version, as it matches the version of libstdcxx-ng package being installed (12.3.0)
    So maybe conda actually fixed a bug in their dependency resolution/installation code to update the dependencies only if the --update-deps flag is specified.

@jithunnair-amd jithunnair-amd changed the title Newer conda versions require --update-deps to install dependencies such as libgcc-ng [release/2.4] Newer conda versions require --update-deps to install dependencies such as libgcc-ng Mar 6, 2025
@jithunnair-amd jithunnair-amd changed the title [release/2.4] Newer conda versions require --update-deps to install dependencies such as libgcc-ng [release/2.4] Newer conda versions require --update-deps to update dependencies such as libgcc-ng Mar 6, 2025
@rocm-repo-management-api
Copy link

rocm-repo-management-api bot commented Mar 6, 2025

Jenkins build for 99cbcb8398dac1aaccba445ddbc288a915fb6563 commit finished as FAILURE
Links: Blue Ocean view / Build artifacts

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.

1 participant