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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id D07B481792 for ; Wed, 26 Jun 2013 20:17:37 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of adrien@notk.org) identity=pra; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of adrien@notk.org designates 91.121.71.147 as permitted sender) identity=mailfrom; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@nautica.notk.org) identity=helo; client-ip=91.121.71.147; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="postmaster@nautica.notk.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhUFAMMvy1FbeUeT/2dsb2JhbABbgwkxgmZpu3eBAxZ0giMBAQQBI1YQCw4KAgIFEw4CAg8FGDGIGwoIqDSRSIEmjiUHgk8zYQOXRAGBKZAcgxM6 X-IPAS-Result: AhUFAMMvy1FbeUeT/2dsb2JhbABbgwkxgmZpu3eBAxZ0giMBAQQBI1YQCw4KAgIFEw4CAg8FGDGIGwoIqDSRSIEmjiUHgk8zYQOXRAGBKZAcgxM6 X-IronPort-AV: E=Sophos;i="4.87,945,1363129200"; d="scan'208";a="19120062" Received: from nautica.notk.org ([91.121.71.147]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 26 Jun 2013 20:17:37 +0200 Received: by nautica.notk.org (Postfix, from userid 1003) id ABCC6C009; Wed, 26 Jun 2013 20:17:36 +0200 (CEST) Date: Wed, 26 Jun 2013 20:17:36 +0200 From: Adrien Nader To: David Allsopp Cc: "OCaml List (caml-list@inria.fr)" Message-ID: <20130626181736.GB31557@notk.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [Caml-list] Ocaml on windows Hi, On Tue, Jun 25, 2013, David Allsopp wrote: > Bikal Gurung wrote: > > Hi David, > > > > Thank you for your response. I have installed the official windows port of ocaml at > > http://protz.github.io/ocaml-installer/ . However, it mentions that MinGW/Msys is no longer supported. > > I rather use Mingw/Msys as well. > > I meant I use the MinGW port of the compiler rather than the MSVC port - I compile it using the mingw-w64 compilers provided with Cygwin. I only use Cygwin to compile OCaml and related libraries (again, principally for historical reasons, I develop using a normal command shell with GnuWin32 to provide Unix commands). Building using Cygwin (i.e. the supported way) has the benefit that when you get stuck, others are likely to (be able to) help! :o) Do you have a particular to want to use MSYS rather than Cygwin? By the way, wtch out for GnuWin32. It advertises a very broad support but it's getting old and most importantly, it lies on several things. For instance, fork() is implemented as: int fork(void) { return -1; } > > It seems ocamlbuild requires cygwin to work, has this been your experience too? If I build the latest > > ocaml from trunk - 4.02dev+fp will ocaml and other tools/utilities still work on pure MingWg/Msys > > environment? > > Yes. Because I use GnuWin32 (which has its bin folder in my PATH) I prefer not to put C:\cygwin\bin in my PATH but symlink through the required utilities in C:\Dev\OCaml\bin (C:\Dev\OCaml is my installation root for OCaml) - my OCaml installation requires bash.exe (for ocamlbuild), cpp.exe (for ocamlnet) and i686-w64-mingw32-ar.exe + i686-w64-mingw32-as.exe + i686-w64-mingw32-dlltool.exe + i686-w64-mingw32-gcc.exe + i686-w64-mingw32-ranlib.exe for ocamlopt. Do you mean you use gnuwin32's bash.exe for ocamlbuild? I hadn't thought about doing that but it could be a pretty good match. It's probably faster to spawn than cygwin or msys' bash and probably has way less dependencies. -- Adrien Nader