Skip to content

conda-build fails with c_linux-64 =* * does not exist (perhaps a typo or a missing channel). #5745

@opoplawski

Description

@opoplawski

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

I'm trying to use conda-build for the first time. I'm trying to build sqlite from the conda-forge feedstock. I get:

(conda-forge) [orion@kdh recipe (main)]$ conda-build .
WARNING: No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.26
Adding in variants from internal_defaults
Adding in variants from /export/home/orion/src/conda-forge/sqlite-feedstock/recipe/conda_build_config.yaml
Attempting to finalize metadata for libsqlite
Reloading output folder: ...working... done
Getting pinned dependencies: ...working... failed
WARNING: failed to get package records, retrying.  exception was: Unsatisfiable dependencies for platform linux-64: {MatchSpec("c_linux-64")}
Encountered problems while solving:
  - unsupported request

Could not solve for environment specs
The following package could not be installed
└─ c_linux-64 =* * does not exist (perhaps a typo or a missing channel).
Reloading output folder: ...working... done
Getting pinned dependencies: ...working... failed
Reloading output folder: ...working... done
Getting pinned dependencies: ...working... failed
Reloading output folder: ...working... done
Getting pinned dependencies: ...working... failed
ERROR: Failed to get package records, max retries exceeded.

Leaving build/test directories:
  Work:
 /export/home/orion/conda/envs/conda-forge/conda-bld/work
  Test:
 /export/home/orion/conda/envs/conda-forge/conda-bld/test_tmp
Leaving build/test environments:
  Test:
source activate  /export/home/orion/conda/envs/conda-forge/conda-bld/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p
  Build:
source activate  /export/home/orion/conda/envs/conda-forge/conda-bld/_build_env


Traceback (most recent call last):
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda_build/environ.py", line 890, in get_install_actions
    _actions = _install_actions(prefix, index, specs, subdir=subdir)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda_build/environ.py", line 1310, in install_actions
    txn = solver.solve_for_transaction(prune=False, ignore_pinned=False)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda/core/solve.py", line 153, in solve_for_transaction
    unlink_precs, link_precs = self.solve_for_diff(
                               ^^^^^^^^^^^^^^^^^^^^
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda/core/solve.py", line 222, in solve_for_diff
    final_precs = self.solve_final_state(
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 179, in solve_final_state
    out_state = self._solving_loop(in_state, out_state, index)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda/common/io.py", line 87, in decorated
    return f(*args, **kwds)
           ^^^^^^^^^^^^^^^^
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 305, in _solving_loop
    solved, outcome = self._solve_attempt(in_state, out_state, index, attempt=attempt)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 362, in _solve_attempt
    new_conflicts = self._maybe_raise_for_problems(outcome, index, out_state, old_conflicts)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 759, in _maybe_raise_for_problems
    self._maybe_raise_for_conda_build(
  File "/export/home/orion/conda/envs/conda-forge/lib/python3.12/site-packages/conda_libmamba_solver/solver.py", line 849, in _maybe_raise_for_conda_build
    raise exc
conda_libmamba_solver.conda_build_exceptions.ExplainedDependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {MatchSpec("c_linux-64")}
Encountered problems while solving:
  - unsupported request

Could not solve for environment specs
The following package could not be installed
└─ c_linux-64 =* * does not exist (perhaps a typo or a missing channel).

Sorry for posting a question in the issue tracker, but I can't figure out slack.

Conda Info

     active environment : conda-forge
    active env location : /export/home/orion/conda/envs/conda-forge
            shell level : 1
       user config file : /export/home/orion/.condarc
 populated config files : /etc/conda/condarc.d/nwra.yml
                          /usr/share/conda/condarc.d/defaults.yaml
                          /export/home/orion/.condarc
          conda version : 4.14.0
    conda-build version : not installed
         python version : 3.9.21.final.0
       virtual packages : __linux=5.14.0=0
                          __glibc=2.34=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /usr  (read only)
      conda av data dir : /usr/etc/conda
  conda av metadata url : None
           channel URLs : https://MIRROR/conda-forge/linux-64
                          https://MIRROR/conda-forge/noarch
          package cache : /var/cache/conda/pkgs
                          /export/home/orion/.conda/pkgs
       envs directories : /data/cora/orion/envs
                          /opt/anaconda/envs
                          /export/home/orion/conda/envs
                          /export/home/orion/.conda/envs
                          /usr/envs
               platform : linux-64
             user-agent : conda/4.14.0 requests/2.25.1 CPython/3.9.21 Linux/5.14.0-570.28.1.el9_6.x86_64 almalinux/9.6 glibc/2.34
                UID:GID : 22603:22603
             netrc file : None
           offline mode : False

Conda Config

add_anaconda_token: True
add_pip_as_python_dependency: True
aggressive_update_packages:
  - ca-certificates
  - certifi
  - openssl
allow_conda_downgrades: False
allow_cycles: True
allow_non_channel_urls: False
allow_softlinks: False
allowlist_channels: []
always_copy: False
always_softlink: False
always_yes: None
anaconda_upload: None
auto_activate_base: True
auto_stack: 0
auto_update_conda: True
bld_path:
changeps1: True
channel_alias: https://MIRROR
channel_priority: flexible
channels:
  - conda-forge
client_ssl_cert: None
client_ssl_cert_key: None
clobber: False
conda_build: {}
create_default_packages: []
croot: /export/home/orion/conda-bld
custom_channels:
  pkgs/main: https://repo.anaconda.com
  pkgs/r: https://repo.anaconda.com
  export/home/orion/conda-bld: file://
  pkgs/pro: https://repo.anaconda.com
custom_multichannels:
  defaults:
    - https://repo.anaconda.com/pkgs/main
    - https://repo.anaconda.com/pkgs/r
  local:
    - file:///export/home/orion/conda-bld
debug: False
default_channels:
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
default_python: 3.9
default_threads: None
deps_modifier: not_set
dev: False
disallowed_packages: []
download_only: False
dry_run: False
enable_private_envs: False
env_prompt: ({default_env})
envs_dirs:
  - /data/cora/orion/envs
  - /opt/anaconda/envs
  - /export/home/orion/conda/envs
  - /export/home/orion/.conda/envs
  - /usr/envs
error_upload_url: https://conda.io/conda-post/unexpected-error
execute_threads: 1
experimental_solver: classic
extra_safety_checks: False
force: False
force_32bit: False
force_reinstall: False
force_remove: False
ignore_pinned: False
json: False
local_repodata_ttl: 1
migrated_channel_aliases: []
migrated_custom_channels: {}
non_admin_enabled: True
notify_outdated_conda: True
number_channel_notices: 5
offline: False
override_channels_enabled: True
path_conflict: clobber
pinned_packages: []
pip_interop_enabled: False
pkgs_dirs:
  - /var/cache/conda/pkgs
  - /export/home/orion/.conda/pkgs
proxy_servers: {}
quiet: False
remote_backoff_factor: 1
remote_connect_timeout_secs: 9.15
remote_max_retries: 3
remote_read_timeout_secs: 60.0
repodata_fns:
  - current_repodata.json
  - repodata.json
repodata_threads: None
report_errors: None
restore_free_channel: False
rollback_enabled: True
root_prefix: /usr
safety_checks: warn
sat_solver: pycosat
separate_format_cache: False
shortcuts: True
show_channel_urls: None
signing_metadata_url_base: None
solver_ignore_timestamps: False
ssl_verify: /etc/pki/tls/certs/ca-bundle.crt
subdir: linux-64
subdirs:
  - linux-64
  - noarch
target_prefix_override:
track_features: []
unsatisfiable_hints: True
unsatisfiable_hints_check_depth: 2
update_modifier: update_specs
use_index_cache: False
use_local: False
use_only_tar_bz2: False
verbosity: 0
verify_threads: 1

Conda list

#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
archspec                  0.2.5              pyhd8ed1ab_0    conda-forge
attrs                     25.3.0             pyh71513ae_0    conda-forge
beautifulsoup4            4.12.3             pyha770c72_0    conda-forge
binutils_impl_linux-64    2.43                 h4bf12b8_5    conda-forge
binutils_linux-64         2.43                 h4852527_5    conda-forge
boltons                   25.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py312h30efb56_1    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
c-ares                    1.34.5               hb9d3cd8_0    conda-forge
ca-certificates           2025.6.15            hbd8a1cb_0    conda-forge
certifi                   2025.6.15          pyhd8ed1ab_0    conda-forge
cffi                      1.17.0          py312h1671c18_0    conda-forge
chardet                   5.2.0              pyhd8ed1ab_3    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
click                     8.2.1              pyh707e725_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     25.5.1          py312h7900ff3_0    conda-forge
conda-build               25.5.0          py312h7900ff3_0    conda-forge
conda-index               0.6.1              pyhd8ed1ab_0    conda-forge
conda-libmamba-solver     25.4.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.4.0              pyh7900ff3_2    conda-forge
conda-package-streaming   0.11.0             pyhd8ed1ab_1    conda-forge
conda-souschef            2.2.3              pyhd8ed1ab_0    conda-forge
cpp-expected              1.1.0                hff21bea_1    conda-forge
distro                    1.9.0              pyhd8ed1ab_1    conda-forge
evalidate                 2.0.5              pyhe01879c_0    conda-forge
filelock                  3.18.0             pyhd8ed1ab_0    conda-forge
fmt                       11.1.4               h07f6e7f_1    conda-forge
frozendict                2.4.6           py312h66e93f0_0    conda-forge
gcc_impl_linux-64         15.1.0               h4393ad2_3    conda-forge
gcc_linux-64              15.1.0              h1ac4077_11    conda-forge
grayskull                 2.9.1              pyhd8ed1ab_0    conda-forge
h2                        4.1.0              pyhd8ed1ab_0    conda-forge
hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
idna                      3.7                pyhd8ed1ab_0    conda-forge
importlib_resources       6.5.2              pyhd8ed1ab_0    conda-forge
jinja2                    3.1.6              pyhd8ed1ab_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_1    conda-forge
jsonpointer               3.0.0           py312h7900ff3_1    conda-forge
jsonschema                4.24.0             pyhd8ed1ab_0    conda-forge
jsonschema-specifications 2025.4.1           pyh29332c3_0    conda-forge
kernel-headers_linux-64   2.6.32              he073ed8_17    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.21.3               h659f571_0    conda-forge
ld_impl_linux-64          2.43                 h712a8e2_5    conda-forge
libarchive                3.8.1           gpl_h98cc613_100    conda-forge
libblas                   3.9.0           23_linux64_openblas    conda-forge
libcblas                  3.9.0           23_linux64_openblas    conda-forge
libcurl                   8.14.1               h332b0f4_0    conda-forge
libedit                   3.1.20250104    pl5321h7949ede_0    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libexpat                  2.6.2                h59595ed_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc                    15.1.0               h767d61c_3    conda-forge
libgcc-devel_linux-64     15.1.0             h4c094af_103    conda-forge
libgcc-ng                 15.1.0               h69a702a_3    conda-forge
libgfortran-ng            14.1.0               h69a702a_0    conda-forge
libgfortran5              14.1.0               hc5f4f2c_0    conda-forge
libgomp                   15.1.0               h767d61c_3    conda-forge
libiconv                  1.18                 h4ce23a2_1    conda-forge
liblapack                 3.9.0           23_linux64_openblas    conda-forge
liblief                   0.16.6               h5888daf_0    conda-forge
liblzma                   5.8.1                hb9d3cd8_2    conda-forge
liblzma-devel             5.8.1                hb9d3cd8_2    conda-forge
libmamba                  2.3.0                h44402ff_1    conda-forge
libmambapy                2.3.0           py312hd15d01f_1    conda-forge
libnghttp2                1.64.0               h161d5f1_0    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libopenblas               0.3.27          pthreads_hac2b453_1    conda-forge
libsanitizer              15.1.0               h97b714f_3    conda-forge
libsolv                   0.7.33               h7955e40_0    conda-forge
libsqlite                 3.46.0               hde9e2c9_0    conda-forge
libssh2                   1.11.1               hcf80075_0    conda-forge
libstdcxx                 15.1.0               h8f9b012_3    conda-forge
libstdcxx-ng              15.1.0               h4852527_3    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.13.8               h81593ed_0    conda-forge
libzlib                   1.3.1                h4ab18f5_1    conda-forge
lz4-c                     1.10.0               h5888daf_1    conda-forge
lzo                       2.10              hd590300_1001    conda-forge
markupsafe                3.0.2           py312h178313f_1    conda-forge
mbedtls                   3.6.3.1              h5888daf_0    conda-forge
menuinst                  2.3.0           py312h7900ff3_0    conda-forge
msgpack-python            1.1.1           py312h68727a3_0    conda-forge
ncurses                   6.5                  h59595ed_0    conda-forge
nlohmann_json             3.11.3               he02047a_1    conda-forge
numpy                     2.1.0           py312h1103770_0    conda-forge
openssl                   3.5.0                h7b32b05_1    conda-forge
packaging                 24.1               pyhd8ed1ab_0    conda-forge
patch                     2.7.6             h7f98852_1002    conda-forge
patchelf                  0.17.2               h58526e2_0    conda-forge
pip                       24.2               pyhd8ed1ab_0    conda-forge
pkginfo                   1.11.1             pyhd8ed1ab_0    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_2    conda-forge
platformdirs              4.3.8              pyhe01879c_0    conda-forge
pluggy                    1.6.0              pyhd8ed1ab_0    conda-forge
progressbar2              4.4.2              pyhd8ed1ab_0    conda-forge
psutil                    7.0.0           py312h66e93f0_0    conda-forge
py-lief                   0.16.6          py312h2ec8cdc_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py312h66e93f0_2    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.12.5          h2ad013b_0_cpython    conda-forge
python-libarchive-c       5.3                pyhe01879c_0    conda-forge
python-utils              3.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.12                    5_cp312    conda-forge
pytz                      2025.2             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0.2           py312h178313f_2    conda-forge
rapidfuzz                 3.9.6           py312hca68cad_0    conda-forge
readline                  8.2                  h8228510_1    conda-forge
referencing               0.36.2             pyh29332c3_0    conda-forge
reproc                    14.2.5.post0         hb9d3cd8_0    conda-forge
reproc-cpp                14.2.5.post0         h5888daf_0    conda-forge
requests                  2.32.3             pyhd8ed1ab_0    conda-forge
ripgrep                   14.1.1               h8fae777_1    conda-forge
rpds-py                   0.25.1          py312h680f630_0    conda-forge
ruamel.yaml               0.18.6          py312h98912ed_0    conda-forge
ruamel.yaml.clib          0.2.8           py312h98912ed_0    conda-forge
ruamel.yaml.jinja2        0.2.7              pyhd8ed1ab_0    conda-forge
setuptools                72.2.0             pyhd8ed1ab_0    conda-forge
simdjson                  3.13.0               h84d6215_0    conda-forge
soupsieve                 2.5                pyhd8ed1ab_1    conda-forge
stdlib-list               0.10.0             pyhd8ed1ab_0    conda-forge
sysroot_linux-64          2.12                he073ed8_17    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tomli-w                   1.0.0              pyhd8ed1ab_0    conda-forge
tqdm                      4.67.1             pyhd8ed1ab_1    conda-forge
truststore                0.10.1             pyh29332c3_0    conda-forge
typing_extensions         4.12.2             pyha770c72_0    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
urllib3                   2.2.2              pyhd8ed1ab_1    conda-forge
wheel                     0.44.0             pyhd8ed1ab_0    conda-forge
xz                        5.8.1                hbcc6ac9_2    conda-forge
xz-gpl-tools              5.8.1                hbcc6ac9_2    conda-forge
xz-tools                  5.8.1                hb9d3cd8_2    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
yaml-cpp                  0.8.0                h3f2d84a_0    conda-forge
zipp                      3.23.0             pyhd8ed1ab_0    conda-forge
zstandard                 0.23.0          py312h66e93f0_2    conda-forge
zstd                      1.5.7                hb8e6e7a_2    conda-forge

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type::bugdescribes erroneous operation, use severity::* to classify the type

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions