caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Markus Mottl <markus.mottl@gmail.com>
To: David Allsopp <dra-news@metastack.com>
Cc: OCaml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Building pcre-ocaml 7.0.2 on MinGW
Date: Wed, 19 Jun 2013 10:43:48 -0400	[thread overview]
Message-ID: <CAP_800qKopp8EiauB9UgsxC3-7xOzgfEGcnuOkmZgDcDU7eU8g@mail.gmail.com> (raw)
In-Reply-To: <004c01ce6cfa$63423430$29c69c90$@metastack.com>

I have no experience with OCaml installations on Windows, but what
concerns the configuration of pcre-ocaml, it actually does use
pcre-config.  If the latter is not in your path, you can add the
configure flag "--with-pcre-config {full path to pcre-config}" to make
it work.

Regards,
Markus

On Wed, Jun 19, 2013 at 10:36 AM, David Allsopp <dra-news@metastack.com> wrote:
> It's been a while since I refreshed my OCaml installation from 3.12.1 but
> having discovered that GADTs may really be the best thing since sliced
> bread, I've been upgrading all my OCaml packages on Windows.
>
> I'd noticed when I last refreshed (pcre-ocaml 6.2.5 / pcre 8.21) that pcre
> 8.21 no longer built under Windows but on that occasion I was lazy and stuck
> with pcre 8.12 as that did build. This time, I've managed to get pcre 8.33
> and pcre-ocaml 7.0.2 compiled under MinGW (32-bit) but with some very hacky
> effort required.
>
> Wondering if anyone else has succeeded doing this and whether there are any
> GNU autotools experts here who might be able to provide pointers to the
> weird problem with libtool before I brave posting to the autotools list! :o)
>
> (Background: Windows Vista VM running Cygwin 1.7.20, GCC 4.5.3)
> Configured PCRE with:
> ./configure --prefix="C:/Dev/OCaml" --includedir="C:/Dev/OCaml/lib"
> --disable-cpp --enable-utf8 --host=i686-w64-mingw32 --build=mingw32
>
> At this point, make all will freeze (completely crashes the terminal) when
> it gets to libpcre.la. The same goes for PCRE 8.13, 8.20 and 8.21. A limited
> comparison of the sources suggests that the issue is with libtool. The
> workaround I've used is to configure PCRE 8.12 with the same switches and
> then overwrite the libtool script in PCRE 8.33 with the one generated by
> PCRE 8.12's configure. PCRE 8.12 is built with autoconf 2.65 where 8.33 is
> built with autoconf 2.68 (I tried installing autoconf 2.65 and regenerating
> the configure script in 8.33 but that didn't work either).
>
> Having built PCRE 8.33 and installed it, it's necessary to produce a wrapper
> .cmd file for pcre-config so that ocaml setup.ml -build works for pcre-ocaml
> 7.0.2 as unfortunately it's now using ocamlbuild rather than make (which
> could use pcre-config directly).
>
> With both of those shims in place, it does seem to be working - but has
> anyone else been trying or experienced trouble building PCRE on Windows
> since version 8.12? I haven't got the first clue how to debug libtool...
>
>
> David
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs



-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com

  reply	other threads:[~2013-06-19 14:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19 14:36 David Allsopp
2013-06-19 14:43 ` Markus Mottl [this message]
2013-06-19 15:08   ` David Allsopp
2013-06-19 16:32     ` Adrien Nader
2013-06-19 16:45       ` Markus Mottl

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=CAP_800qKopp8EiauB9UgsxC3-7xOzgfEGcnuOkmZgDcDU7eU8g@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=dra-news@metastack.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;
as well as URLs for NNTP newsgroup(s).