ocaml / ocaml/dune

Context default.windows has a host default

Open
#2,182 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cross-compilation
Dominant language
OCaml
Stars
1.9k
Forks
500
Avg merge
15h 21m
Merged PRs (30d)
277

Description

Hey there,

Not sure if this is the right upstream or what this means:

Context default.windows has a host default.
It's not possible to execute binary _build/default.windows/src/frontend/.frontend.inline-tests/run.exe in it.

This is a bug and should be reported upstream.

We're cross-compiling and trying to run tests with dune runtest -x windows. Our project is all open sourced here: https://github.com/stan-dev/stanc3

Any tips on how to actually run the cross-compiled windows binary w/ tests would be much appreciated! We're building and trying to run them on WSL, so the cross-compiled binary should just work.

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 reproducing dune runtest -x windows with the reported default.windows context and inspect how Dune handles the _build/default.windows/src/frontend/.frontend.inline-tests/run.exe test binary. Determine whether cross-compiled runtests should execute under this setup and make the behavior or diagnostic clearly actionable.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.