From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 1C334BC69 for ; Tue, 23 Oct 2007 09:38:21 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAD5BHUfC2fJXnmdsb2JhbACOVgIBAQcEBimBJw X-IronPort-AV: E=Sophos;i="4.21,316,1188770400"; d="scan'208";a="3498374" Received: from anchor-post-37.mail.demon.net ([194.217.242.87]) by mail2-smtp-roc.national.inria.fr with ESMTP; 23 Oct 2007 09:38:20 +0200 Received: from orion.metastack.com ([80.177.38.218]) by anchor-post-37.mail.demon.net with esmtp (Exim 4.68) id 1IkELE-0006Kh-NQ for caml-list@yquem.inria.fr; Tue, 23 Oct 2007 07:38:20 +0000 Received: from countertenor (cpc3-cmbg6-0-0-cust100.cmbg.cable.ntl.com [81.101.140.101]) (authenticated bits=0) by orion.metastack.com (8.13.4/8.13.3) with ESMTP id l9N7bE3C022772 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 23 Oct 2007 08:37:15 +0100 From: "David Allsopp" To: References: <20071015080212.A2DD5BC73@yquem.inria.fr> <471D1FD4.6040908@sbcglobal.net> Subject: RE: [Caml-list] Re: OCaml on Windows help Date: Tue, 23 Oct 2007 08:38:19 +0100 Organization: MetaStack Solutions Ltd. Message-ID: <036201c81547$aeed55b0$017ca8c0@countertenor> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AcgU+F+xxjsXIN3YTTOUZNI1f1zOPwATbmKA In-Reply-To: <471D1FD4.6040908@sbcglobal.net> X-Spam: no; 0.00; ocaml:01 lib:01 ocamlopt:01 ocaml:01 ocamlopt:01 toolchain:01 cygwin:01 mingw:01 cygwin:01 run-time:01 lib:01 mkdir:01 cygdrive:01 cygdrive:01 ocaml-:01 > It was challenging though to get the windows executable and lib paths set > correctly so that ocamlopt would use the tools it was designed for. (I > had several versions of many programs that were for other unrelated > purposes.) As best as I can tell, I also had to rebuild OCaml because I > was using MSVC 6 and getting link errors. I think this was due to > ocamlopt trying to combine the released version of 3.10.0 with the run > time libraries that I have which mixed versions of the MSVC libraries. Unless you've got a compelling reason to use the Microsoft toolchain, I've always found that building OCaml from source using Cygwin/MinGW is painless... below is my complete build procedure which gives OCaml 3.09.3 with ocamlopt support (with due credit to http://ibgs.christoph-bauer.net/~fridolin/omm/protokol.txt). My installation prevents Cygwin from being integrated with the Windows shell because I use the Win32 ports of the UNIX tools rather than Cygwin's. David ----- Run D:\Maintenance\Software\Tcl 8.3.2.exe Install to C:\Dev\Tcl Install "Tcl Run-Time Files" and "Header and Library Files" only Set LIB=C:\Dev\Tcl\lib The restart option just logs off so restart manually Run D:\Repositories\Cygwin\setup.exe In Devel, add gcc-core make Remove C:\cygwin\bin from PATH Start Bash $ mkdir /cygdrive/c/Dev/Src $ cd /cygdrive/c/Dev/Src $ cp /cygdrive/d/Maintenance/Software/OCaml/ocaml-3.09.3.tar.gz . $ tar -xzf ocaml-3.09.3.tar.gz $ cd ocaml-3.09.3 $ cp config/m-nt.h config/m.h $ cp config/s-nt.h config/s.h $ cp config/Makefile.mingw config/Makefile $ sed -i -e '20s/=.*$/=C:\/Dev\/OCaml/' -e '113s/=.*$/=C:\/Dev\/Tcl/' config/Makefile $ make -f Makefile.nt world bootstrap opt opt.opt install $ sed -i -e 's/\//\\/g' /cygdrive/c/Dev/OCaml/lib/ld.conf $ exit Ensure that C:\Dev\Tcl\bin is in the PATH, add C:\Dev\OCaml\bin Set OCAMLLIB to C:\Dev\OCaml\lib Copy C:\cygwin\bin\{cygwin1.dll,cygintl-3.dll,cygiconv-2.dll} to C:\WINDOWS\system32 and C:\cygwin\bin\{ar.exe,as.exe,dlltool.exe,gcc.exe,ranlib.exe} to C:\Dev\OCaml\bin