Skip to content

fix(image): no C/C++ toolchain — uv cannot build sdists for deps without cp314 wheels (CMake reads absent nix-store compiler from sysconfig) #879

Closed

Description

@c-vigo

Description

Found during 0.4.0 consumer field-validation (EXOMA/hyrr): just sync (uv) fails for any dependency that ships no cp314 wheel and must build from source.

Evidence (hyrr, uv sync in ghcr.io/vig-os/devcontainer:0.4.0):

× Failed to build `pycatima==1.981`
╰─▶ Call to `scikit_build_core.build.build_wheel` failed
    *** scikit-build-core 0.12.2 using CMake 4.3.4 (wheel)
    loading initial cache file build/cpython-314/CMakeInit.txt
    CMake Error: Could not find the compiler specified in the environment variable CXX
    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

In a fresh 0.4.0 container: CC/CXX are unset and no compiler exists on PATH (c++, g++, gcc, cc, clang++ all absent). The CXX value CMake complains about comes from the baked CPython's build-time sysconfig — a nix-store compiler path not shipped in the runtime image.

Impact is amplified by the Python 3.14 jump: the cp314 wheel ecosystem is young, so scientific consumers (pycatima here; cadquery-ocp/vtk are cp312/313-only) hit source builds far more often than under 3.13 — and every source build hard-fails.

Possible Solution

Decide the contract and implement one of: (a) ship a working C/C++ toolchain (gcc + make + CMake already present?) wired so scikit-build-core/setuptools find it (export sane CC/CXX); (b) explicitly document "no native builds in-image — provide toolchains via the project flake" and make the shipped ci.yml/direnv-mode support that (relates to #854); (c) sanitize the baked CPython sysconfig so build backends fall back to PATH discovery instead of a dead nix-store path.

Changelog Category

Fixed

Activity

  1. added
    bug
    priority:high
    area:image
    semver:minor
    on Jul 6, 2026
  2. added this to the 0.4.1 milestone on Jul 7, 2026
  3. c-vigo commented on Jul 8, 2026

    @c-vigo
    ContributorAuthor

    Implemented in 0.4.1 (released 2026-07-08) — see the ## [0.4.1] CHANGELOG entry. Closing as completed.

  4. added a commit that references this issue on Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:imagebugeffort:mediumpriority:highsemver:minor

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions