From: Gergely Szilvasy <szilvasy@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] ocamlbuild on cygwin
Date: Thu, 23 Oct 2014 21:14:21 +0100 [thread overview]
Message-ID: <CAO-kHdHB7iot8bhWCNGfWxNn=M8GPC2KRE5a5RePhjbadw9Oew@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1774 bytes --]
Hello,
First of all, as this is my first post ever on this list, to all of you who
contribute to ocaml and its "ecosystem": a big thank you (ou encore mieux:
merci beaucoup)! It's brilliant stuff.
I'm trying to get as much of the ocaml/opam stack working on cygwin as
possible (as if there wasn't enough pain and suffering in the world
already).
Opam compiles without any issues, and I can switch to (let's say) 4.02.1
cleanly.
However, ocamlbuild fails for me in "opam install react" with the following
error:
"Failure: ocamlfind not found on path, but -no-ocamlfind not used."
(Note that react is required by utop, for example, so it's a pretty basic
requirement.)
This is where the exception is thrown:
https://github.com/ocaml/ocaml/blob/trunk/ocamlbuild/options.ml#L295
It is the result of Command.search_in_path not finding ocamlfind:
https://github.com/ocaml/ocaml/blob/trunk/ocamlbuild/command.ml#L130
Which appears to be caused by file_or_exe_exists not appending ".exe" to
the filename when Sys.os_type = "Cygwin" (which is what I see as os_type
when compiling on cygwin):
https://github.com/ocaml/ocaml/blob/trunk/ocamlbuild/command.ml#L128
I'm not expert on either ocaml or cygwin, so my analysis may be off.
--
In any case, I'm pretty sure this fairly simple bug is not a (very) recent
regression, so I'm wondering if anybody cares about opam/ocaml on cygwin?
I'd really like to use opam, because it looks to me this is the community's
preferred way of distributing bits. My question is, really, what is the
status of ocaml/opam on cygwin? Is there an alternative environment for
Windows + opam that works better? (I know about wodi, but I'd prefer opam.)
Is it worth spending time fixing these issues on cygwin?
Any thoughts?
Regards,
Gergely
[-- Attachment #2: Type: text/html, Size: 2591 bytes --]
next reply other threads:[~2014-10-23 20:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-23 20:14 Gergely Szilvasy [this message]
2014-10-23 23:16 ` David Allsopp
2014-10-24 14:54 ` Leonardo Laguna Ruiz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO-kHdHB7iot8bhWCNGfWxNn=M8GPC2KRE5a5RePhjbadw9Oew@mail.gmail.com' \
--to=szilvasy@gmail.com \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox