Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[master] opam init fails when no system compiler is present #4640

Closed
kit-ty-kate opened this issue Apr 21, 2021 · 1 comment · Fixed by #4644
Closed

[master] opam init fails when no system compiler is present #4640

kit-ty-kate opened this issue Apr 21, 2021 · 1 comment · Fixed by #4644
Assignees
Milestone

Comments

@kit-ty-kate
Copy link
Member

With opam master (7d926f1, compiled using make cold), on a clean system, without any ocaml compiler available:

[opam@edb63d1833b7 opam]$ ./opam init 
[...]
[WARNING] Shell not updated in non-interactive mode: use --shell-setup
<><> Creating initial switch 'default' (invariant ["ocaml" {>= "4.05.0"}] - initially with ocaml-system) 
<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["ocaml" {>= "4.05.0"}]
[ERROR] Could not determine which packages to install for this switch:
  * Missing dependency:
    - (request) → ocaml-system
    unmet availability conditions, e.g. 'sys-ocaml-version = "4.12.0"'
Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [Y/n] y
[NOTE] Opam has been initialised, but the initial switch creation failed.
       Use 'opam switch create <compiler>' to get started.
@rjbou
Copy link
Collaborator

rjbou commented Apr 21, 2021

Introduced in #4607

@rjbou rjbou added this to the 2.1.0~rc milestone Apr 21, 2021
AltGr added a commit to AltGr/opam that referenced this issue Apr 23, 2021
Aaaah, default values for undefined variables <3

Fixes ocaml#4640
rjbou pushed a commit to AltGr/opam that referenced this issue Apr 23, 2021
Aaaah, default values for undefined variables <3

Fixes ocaml#4640
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants