-
Notifications
You must be signed in to change notification settings - Fork 470
How to install custom sites when cross-compiling #6191
Copy link
Copy link
Closed
Labels
Milestone
Description
Hi,
It's not clear to me how to install packages using custom dune-site when cross-compiling.
Here's a gist to reproduce: https://gist.github.com/toots/1859a37c264f3c1f75b75e21011ed17e
Normal build:
$ dune build -p repro-main --promote-install-files=false @install
$ dune install -p repro-main --create-install-files repro-main
Copying to _destdir/home/opam/.opam/4.12.0/lib/repro-main/META
Copying to _destdir/home/opam/.opam/4.12.0/lib/repro-main/Sites.ml
Copying to _destdir/home/opam/.opam/4.12.0/lib/repro-main/dune-package
Copying to _destdir/home/opam/.opam/4.12.0/lib/repro-main/repro_main.a
Copying to _destdir/home/opam/.opam/4.12.0/lib/repro-main/repro_main.cma
Copying to _destdir/home/opam/.opam/4.12.0/lib/repro-main/repro_main__Sites.cmt
Copying to _destdir/home/opam/.opam/4.12.0/lib/repro-main/repro_main.cmxsCross-compiled build:
$ dune build -p repro-main --promote-install-files=false @install -x windows
$ dune install -p repro-main --create-install-files repro-main -x windows
Error: The following <package>.install are missing:
- _build/default.windows/repro-main.install
Hint: try running: dune build [-p <pkg>] @installReactions are currently unavailable