From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id DD65981792 for ; Wed, 19 Jun 2013 16:43:48 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of markus.mottl@gmail.com) identity=pra; client-ip=74.125.82.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="markus.mottl@gmail.com"; x-sender="markus.mottl@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of markus.mottl@gmail.com designates 74.125.82.54 as permitted sender) identity=mailfrom; client-ip=74.125.82.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="markus.mottl@gmail.com"; x-sender="markus.mottl@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wg0-f54.google.com) identity=helo; client-ip=74.125.82.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="markus.mottl@gmail.com"; x-sender="postmaster@mail-wg0-f54.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqkBAEjDwVFKfVI2k2dsb2JhbABagzpJrHqSIXgIFg4BAQEBBwsLCRQEJIIjAQEFQAEUBw8DCwEDDAYFCwMKDSEhAQERAQUBCgQBDQYTEgiHYQEDDwyeB4xNgn+ETQoZJwMKWId0AQUMjFGBLROBJQeDYQOVWoFngSmKd4M/FimEUSCBLAIe X-IPAS-Result: AqkBAEjDwVFKfVI2k2dsb2JhbABagzpJrHqSIXgIFg4BAQEBBwsLCRQEJIIjAQEFQAEUBw8DCwEDDAYFCwMKDSEhAQERAQUBCgQBDQYTEgiHYQEDDwyeB4xNgn+ETQoZJwMKWId0AQUMjFGBLROBJQeDYQOVWoFngSmKd4M/FimEUSCBLAIe X-IronPort-AV: E=Sophos;i="4.87,896,1363129200"; d="scan'208";a="22516469" Received: from mail-wg0-f54.google.com ([74.125.82.54]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Jun 2013 16:43:48 +0200 Received: by mail-wg0-f54.google.com with SMTP id n11so4523949wgh.21 for ; Wed, 19 Jun 2013 07:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kPbDcncCEagy0xOY+cidC+B0erd8az/47Nsb4SpawEs=; b=uw/Il/XQVVpvcLNLo0mRJIXezFguJwInDHyUiOWfmSZdXhxwe8eWOy87kA+mwNJvdR HiOUOKSX7m2P1gtq2o7Cy7k5xpvPfRQNnje0UeKdP2jMZ4A3JIIo7LL9B7Wyumn3P0xU onwh9sF3w0PPjbACTHCIuEtp0nd3NOqObkUfRODTSz6T/19AblyIIR2FeDYI9kE+lRIR GOOpGubhHgJtsU6oJ0iguvm5T9P55KeBl2dIQCz5GhIdIG6vg9kU8ywiCuiZSY9dtPZM lt7scDpFa+2eoA6NNip/4q381fejB+wpkAJQdYBf2zGE8JURhPvb6KhA/wDNjjS+0gWB jTTg== MIME-Version: 1.0 X-Received: by 10.194.174.4 with SMTP id bo4mr2496991wjc.40.1371653028186; Wed, 19 Jun 2013 07:43:48 -0700 (PDT) Received: by 10.194.172.169 with HTTP; Wed, 19 Jun 2013 07:43:48 -0700 (PDT) In-Reply-To: <004c01ce6cfa$63423430$29c69c90$@metastack.com> References: <004c01ce6cfa$63423430$29c69c90$@metastack.com> Date: Wed, 19 Jun 2013 10:43:48 -0400 Message-ID: From: Markus Mottl To: David Allsopp Cc: OCaml List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Caml-list] Building pcre-ocaml 7.0.2 on MinGW 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 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