conda-forge / conda-smithy

The tool for managing conda-forge feedstocks.
https://conda-forge.org/
BSD 3-Clause "New" or "Revised" License
146 stars 169 forks source link

c_stdlib_version in conda_build_config.yaml ignored when cuda is used #1950

Open minrk opened 3 weeks ago

minrk commented 3 weeks ago

Solution to issue cannot be found in the documentation.

Issue

Packages that optionally use cuda compilers and specify c_stdlib_version: 2.17 # [linux] in conda_build_config.yaml are still getting builds for cuda_compiler=None, c_stdlib_version=2.12. I'm guessing this relates to the complex zip_keys for cuda and c_stdlib_version not handling conda_build_config at highest priority. I'm not 100% certain it's cuda related, but I've seen it twice (openmpi and lammps), both of which use the cuda compilers and have no-cuda variants which still want to use 2.17.

This can be worked around in this specific case by specifying os_version: cos7 in conda-forge.yml, but presumably something is wrong in the rendering.

example: https://github.com/conda-forge/lammps-feedstock/pull/198 which migrates from sysroot_linux-64 2.17 to c_stdlib_version pinning, which has no effect.

Installed packages

conda                     24.3.0          py310hbe9552e_0    conda-forge
conda-build               24.3.0          py310hbe9552e_1    conda-forge
conda-forge-conda-plugins 0.1.dev28+gf2fa78e.d20240613          pypi_0    pypi
conda-forge-pinning       2023.10.29.22.14.35      hd8ed1ab_0    conda-forge
conda-index               0.4.0              pyhd8ed1ab_0    conda-forge
conda-libmamba-solver     23.11.1            pyhd8ed1ab_0    conda-forge
conda-lock                2.4.2              pyhd8ed1ab_0    conda-forge
conda-pack                0.7.1              pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
conda-smithy              3.36.2          unix_pyh707e725_0    conda-forge
conda-tree                1.1.0              pyhd8ed1ab_2    conda-forge

Environment info

mamba version : 1.5.8
     active environment : None
            shell level : 0
       user config file : /Users/minrk/.condarc
 populated config files : /Users/minrk/conda/.condarc
                          /Users/minrk/.condarc
          conda version : 24.3.0
    conda-build version : 24.3.0
         python version : 3.10.13.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=m1
                          __conda=24.3.0=0
                          __mpich=4.2.1=0
                          __osx=14.5=0
                          __unix=0=0
       base environment : /Users/minrk/conda  (writable)
      conda av data dir : /Users/minrk/conda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/minrk/label/fenics-windows/osx-arm64
                          https://conda.anaconda.org/minrk/label/fenics-windows/noarch
                          https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/minrk/conda/pkgs
                          /Users/minrk/.conda/pkgs
       envs directories : /Users/minrk/conda/envs
                          /Users/minrk/.conda/envs
               platform : osx-arm64
             user-agent : conda/24.3.0 requests/2.31.0 CPython/3.10.13 Darwin/23.5.0 OSX/14.5 solver/libmamba conda-libmamba-solver/23.11.1 libmambapy/1.5.8
                UID:GID : 501:20
             netrc file : /Users/minrk/.netrc
           offline mode : False