Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Paul A. Steckler" <steck@stecksoft.com>
To: caml-list@inria.fr
Subject: [Caml-list] Issues with OCaml on Windows, MinGW build
Date: Thu, 24 Nov 2011 17:25:20 +1100	[thread overview]
Message-ID: <CAMSKV5dobggNWAdCCu_DsN99MBkgE7kVP2PuwKKxCydVAgdKPQ@mail.gmail.com> (raw)

For a long while, we've been building software for Windows using the
OCaml MinGW cross-compiler
on Fedora. That tack allows building the software pretty much the same
as it's built for native Linux.
But the OCaml MinGW packages for Linux haven't been updated in some
time, and that project
appears moribund. We're already on to 3.12 in Linux, and the
cross-compiler is stuck at 3.11 (and a
beta version at that).

So I thought I'd try building the software directly on Windows using
the MinGW build. I downloaded
the self-installer from
http://gallium.inria.fr/~protzenk/caml-installer.html (am I the only
one that thinks that
blinking text in Web pages is passé?). I also downloaded MinGW/MSYS
using the installer at
http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/mingw-get-inst-20111118/.

Here are some issues I encountered when using this environment:

 - Many of the OCaml executables in the distribution, as well as
flexlib, invoke gcc with the flag
'-mno-cygwin', but the MinGW gcc I installed does not, in fact, accept
that flag. In emacs, I
replaced the offending argument with spaces in the binaries to allow
compilation to proceed (!).

 - You can't login to the MinGW shell to allow remote builds via ssh.
I can get most of the
required functionality by setting environment variables and calling
the MinGW's sh.exe
explicitly, but it would be useful to have instructions on how this should go.

 - When trying to build some standard OCaml packages, like cryptokit
and oUnit, the 'configure'
and 'make' steps fail badly. One reason is that 'configure' invokes an
OCaml program which calls
Sys.command, and on my computer, some of the arguments are filenames
with spaces in them.

I managed to build a few packages, but it was difficult enough that
I'm discouraged from proceeding
further.

Has anyone had success building standard packages using the MinGW distribution?

-- Paul


             reply	other threads:[~2011-11-24  6:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24  6:25 Paul A. Steckler [this message]
2011-11-24  7:12 ` [Caml-list] " Sylvain Le Gall
2011-11-24  8:08   ` Adrien
2011-11-24  8:06 ` [Caml-list] " Török Edwin
2011-11-24  8:23 ` Jonathan Protzenko
2011-11-24 10:57 ` Dmitry Grebeniuk

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=CAMSKV5dobggNWAdCCu_DsN99MBkgE7kVP2PuwKKxCydVAgdKPQ@mail.gmail.com \
    --to=steck@stecksoft.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