caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matthieu Wipliez <mwipliez@yahoo.fr>
To: caml-list@inria.fr
Subject: OCaml 3.11 on MinGW
Date: Mon, 8 Dec 2008 15:43:25 +0000 (GMT)	[thread overview]
Message-ID: <999086.61430.qm@web27004.mail.ukl.yahoo.com> (raw)

Dear OCaml users,

I would just like to share with you my experience of compiling OCaml 3.11 with MinGW and Minimal SYStem (MSYS).

I had to set the FLEXLINKFLAGS environment variable to have OCaml compile successfully:
  export FLEXLINKFLAGS="-nocygpath -L C:\MinGW\lib"
(note that I installed MinGW in the default folder C:\MinGW)

Indeed, the documentation states that flexdll will call cygpath to solve paths, and cygpath is not available under MSYS.
The -L was needed so that flexdll could find libraries.

Apart from that, the usual (1) copy configuration files (2) make world, opt, opt.opt, install
went smoothly.

I now have a functional OCaml, with a MSYS twice as small as the equivalent Cygwin installation, and compilation goes at least twice as fast with MSYS.

So... my questions are the following:
  - what is the "official" status of OCaml on MinGW/MSYS? The README.win32 still says that only Cygwin may be used, but that appears not to be the case anymore.
  - did I miss something with flexdll? Are those extra flags always necessary with MinGW/MSYS, or is there a different way?

Cheers,
Matthieu






             reply	other threads:[~2008-12-08 15:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-08 15:43 Matthieu Wipliez [this message]
2008-12-08 16:32 ` [Caml-list] " Alain Frisch

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=999086.61430.qm@web27004.mail.ukl.yahoo.com \
    --to=mwipliez@yahoo.fr \
    --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).