From: Jonathan Protzenko <jonathan.protzenko@gmail.com>
To: "Paul A. Steckler" <steck@stecksoft.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Issues with OCaml on Windows, MinGW build
Date: Thu, 24 Nov 2011 09:23:40 +0100 [thread overview]
Message-ID: <4ECDFF0C.90004@gmail.com> (raw)
In-Reply-To: <CAMSKV5dobggNWAdCCu_DsN99MBkgE7kVP2PuwKKxCydVAgdKPQ@mail.gmail.com>
Hi,
On 11/24/2011 07:25 AM, Paul A. Steckler wrote:
> 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
That was intended as a joke. Sorry if that's not obvious.
> 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 (!).
I tried native compilation before releasing the installer. Could you
tell me precisely what kind of command results in gcc being called with
-mno-cygwin? Basic native compilation tests (ocamlopt) seemed to work.
Also, please create an issue at
https://github.com/protz/ocaml-installer/issues so that I can fix it for
the next version. Thanks!
>
> - 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.
Isn't it more of a mingw issue?
>
> - 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.
As Sylvain said, there's the issue of c:/foo/bar vs /c/foo/bar vs
c:\foo\bar. One of them always work, it's just hard to know which one :).
>
> 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?
I haven't tried this, as I merely tried to provide a bare ocaml. If you
have suggestions as to how I could make that easier for you *in the
installer*, I'm all ears :).
Thanks for the feedback,
jonathan
>
> -- Paul
>
>
next prev parent reply other threads:[~2011-11-24 8:23 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 [this message]
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=4ECDFF0C.90004@gmail.com \
--to=jonathan.protzenko@gmail.com \
--cc=caml-list@inria.fr \
--cc=steck@stecksoft.com \
/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