caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Issues with OCaml on Windows, MinGW build
@ 2011-11-24  6:25 Paul A. Steckler
  2011-11-24  7:12 ` [Caml-list] " Sylvain Le Gall
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Paul A. Steckler @ 2011-11-24  6:25 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-24 10:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-24  6:25 [Caml-list] Issues with OCaml on Windows, MinGW build Paul A. Steckler
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).