ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.23k stars 351 forks source link

Had to add mingw64-x86_64-gcc-g++ cygwin package #6180

Closed ttamttam closed 2 weeks ago

ttamttam commented 2 weeks ago

Installing a private pinned package on windows (opam 2.2.1) with something like this:

 (foreign_stubs
  (language cxx)
  ...
  )

failed with : x86_64-w64-mingw32-gcc: fatal error: cannot execute 'cc1plus': spawn: No such file or directory.

After I added mingw64-x86_64-gcc-g++ package, it worked.

Best regards

ttamttam commented 2 weeks ago

Oh! Maybe adding a dependency to conf-g++ in my package would be enough to solve this?

dra27 commented 2 weeks ago

In order to rely on external commands, you do need a dependency on the appropriate conf- package which is indeed conf-g++ in this case

ttamttam commented 2 weeks ago

Thanks for answering: I actually checked that it worked and forgot to close this ticket.