ocaml / ocaml/dune

Remove runtime dependency on OCaml when building a pure Coq project.

Open
#4,949 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

  • #4964 by @rgrinberg — closed without merging
package management rocq
Dominant language
OCaml
Stars
1.9k
Forks
500
Avg merge
15h 21m
Merged PRs (30d)
277

Description

Desired Behavior

When OCaml is not available in PATH (e.g. if Dune is pulled with nix-shell -p coq dune_2), trying to build a Coq library will trigger the error (tested with Dune 2.9.0):

Error: Program ocamlc not found in the tree or in PATH

which isn't expected since OCaml is not needed to build the project.

Would it be possible to lift this restriction?

Example

For instance, pocklington is a pure Coq library with Dune files and no dependency beyond Coq, so we would expect that it builds fine under nix-shell -p coq dune_2.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the pure Coq project scenario described in the issue and the linked pull request #4964. Trace the Dune build path that checks for ocamlc when building a Coq library. Done means a pure Coq library such as pocklington builds when OCaml is absent from PATH.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.