Skip to content

Solver inconsistency between 0install and mccs #6674

@dra27

Description

@dra27

Not dug into this more fully, but I've been noticing that I've been getting more depexts than I expected with opam 2.4.1 on Windows:

C:\>opam switch create solver --empty --repos=ocaml-compiler-msvc=git+https://github.com/dra27/opam-repository.git#466c7158336346c795d8cc05c7312a677dfb161a
C:\>opam install ocaml-base-compiler.5.3.0 system-msvc --solver=builtin-mccs+glpk
The following actions will be performed:
=== install 21 packages
  ∗ arch-x86_64                 1          [required by ocaml-compiler]
  ∗ base-bigarray               base
  ∗ base-domains                base
  ∗ base-effects                base
  ∗ base-nnp                    base
  ∗ base-threads                base
  ∗ base-unix                   base
  ∗ conf-msvc64                 1          [required by ocaml-env-msvc64]
  ∗ flexdll                     0.44       [required by ocaml-compiler]
  ∗ host-arch-x86_64            1
  ∗ host-system-msvc            1
  ∗ msvs-detect                 0.7.0      [required by conf-msvc64]
  ∗ ocaml                       5.3.0
  ∗ ocaml-base-compiler         5.3.0
  ∗ ocaml-compiler              5.3.0      [required by ocaml-base-compiler]
  ∗ ocaml-config                3
  ∗ ocaml-env-msvc64            1          [required by system-msvc]
  ∗ ocaml-option-no-compression 1          [required by ocaml-compiler]
  ∗ ocaml-options-vanilla       1
  ∗ system-msvc                 1
  ∗ winpthreads                 20240209-1 [required by ocaml-compiler]

Proceed with ∗ 21 installations? [Y/n]

With the now-default 0install solver I get mingw-w64-shims (and therefore an extra C compiler):

C:\Devel\opam-repository\packages>opam install ocaml-base-compiler.5.3.0 system-msvc --solver=builtin-0install
The following actions will be performed:
=== install 23 packages
  ∗ arch-x86_64                 1          [required by ocaml-compiler]
  ∗ base-bigarray               base
  ∗ base-domains                base
  ∗ base-effects                base
  ∗ base-nnp                    base
  ∗ base-threads                base
  ∗ base-unix                   base
  ∗ conf-mingw-w64-gcc-x86_64   1          [required by mingw-w64-shims]
  ∗ conf-msvc64                 1          [required by ocaml-env-msvc64]
  ∗ flexdll                     0.44       [required by ocaml-compiler]
  ∗ host-arch-x86_64            1
  ∗ host-system-msvc            1
  ∗ mingw-w64-shims             0.2.0      [required by ocaml-compiler]
  ∗ msvs-detect                 0.7.0      [required by conf-msvc64]
  ∗ ocaml                       5.3.0
  ∗ ocaml-base-compiler         5.3.0
  ∗ ocaml-compiler              5.3.0      [required by ocaml-base-compiler]
  ∗ ocaml-config                3
  ∗ ocaml-env-msvc64            1          [required by system-msvc]
  ∗ ocaml-option-no-compression 1          [required by ocaml-compiler]
  ∗ ocaml-options-vanilla       1
  ∗ system-msvc                 1
  ∗ winpthreads                 20240209-1 [required by ocaml-compiler]

Proceed with ∗ 23 installations? [Y/n]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions