caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dmitry Grebeniuk <gdsfh1@gmail.com>
To: "Paul A. Steckler" <caml-list@inria.fr>
Subject: Re: [Caml-list] Issues with OCaml on Windows, MinGW build
Date: Thu, 24 Nov 2011 12:57:07 +0200	[thread overview]
Message-ID: <CAPi0vKXUiZeL7q2W3g+Eag2Sh3DiMtPQaLJJsXQit_60JFDTsg@mail.gmail.com> (raw)
In-Reply-To: <CAMSKV5dobggNWAdCCu_DsN99MBkgE7kVP2PuwKKxCydVAgdKPQ@mail.gmail.com>

Hello.

>  - 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.

  To allow remote builds via ssh, you should install sshd server.
Another option is to use some kind of "continuous integration
system" which will regularly check your source code repository
and build binaries automatically.

>  - 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.

  Unix scripts are too sure that there are no spaces in paths,
it's easier to install everything in the path without spaces.
(I've tried to fight this issue, but our forces were too inequal.)

  btw, why didn't you took overbld package, which has
OCaml/mingw, cryptokit and oUnit already compiled?  Here is
the list of all "packages" in overbld distribution:
http://overbld.hg.sourceforge.net/hgweb/overbld/overbld/file/tip/src

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

  I had such success, but I didn't want to compile everything
manually every time the new version is released or some bug
is found and should be fixed as soon as possible (i.e. by me,
by writing and applying patch locally), so I wrote some dumb
scripts that can apply patches, compile, install "packages",
taking into account their internal dependencies.


      parent reply	other threads:[~2011-11-24 10:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-24  6:25 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 message]

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=CAPi0vKXUiZeL7q2W3g+Eag2Sh3DiMtPQaLJJsXQit_60JFDTsg@mail.gmail.com \
    --to=gdsfh1@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;
as well as URLs for NNTP newsgroup(s).