From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id D74DCBBAF for ; Mon, 21 Dec 2009 00:41:15 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AigBANtELkvU4xEKkWdsb2JhbACBSpoIAQEBAQkLCgcTA7V0AoQsBA X-IronPort-AV: E=Sophos;i="4.47,428,1257116400"; d="scan'208";a="52565450" Received: from moutng.kundenserver.de ([212.227.17.10]) by mail4-smtp-sop.national.inria.fr with ESMTP; 21 Dec 2009 00:41:15 +0100 Received: from office1.lan.sumadev.de (dslb-084-059-079-108.pools.arcor-ip.net [84.59.79.108]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MQ7u7-1NQbzm1m5b-004kQ6; Mon, 21 Dec 2009 00:41:13 +0100 Received: from [192.168.0.32] (dslb-084-058-048-057.pools.arcor-ip.net [84.58.48.57]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 04DEEC0E8E; Mon, 21 Dec 2009 00:41:12 +0100 (CET) Subject: Re: [Caml-list] Cannot build OCaml using Cygwin From: Gerd Stolpmann To: Alain Frisch Cc: Andre Tampubolon , caml-list@yquem.inria.fr In-Reply-To: <4B290418.5030901@frisch.fr> References: <1c0c59270912160748y764625e2i61a81890826b1b08@mail.gmail.com> <4B290418.5030901@frisch.fr> Content-Type: text/plain Date: Mon, 21 Dec 2009 00:46:50 +0100 Message-Id: <1261352810.6545.50.camel@flake.lan.gerd-stolpmann.de> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+Rm5caWq6P3SjHS1JrXsxHtK3UG3DqkC5Ptzs lsKmfmGiVTTnhrYWjXOMszTaHavn0zfS60wsG7P/DVwrBgNgM7 0wD/rbJAEruUlMjlwEgFw== X-Spam: no; 0.00; ocaml:01 cygwin:01 gerd:01 stolpmann:01 gerd:01 frisch:01 ocaml:01 cygwin:01 makefile:01 byterun:01 makefile:01 cygdrive:01 ocaml-:01 byterun':01 gcc:01 Am Mittwoch, den 16.12.2009, 17:00 +0100 schrieb Alain Frisch: > On 16/12/2009 16:48, Andre Tampubolon wrote: > > I'm trying to build OCaml 3.11.1 using Cygwin. > > It's still unsuccessful. > > > > $ make -f Makefile.nt world > > cd byterun ; make -f Makefile.nt all > > make[1]: Entering directory `/cygdrive/c/cygwin/home/ocaml-3.11.1/byterun' > > gcc -mno-cygwin -DOCAML_STDLIB_DIR='"C:/ocamlmgw/lib"' -I"C:\cygwin\bin" > > -O -mms > > -bitfields -Wall -Wno-unused -c interp.c > > gcc: The -mno-cygwin flag has been removed; use a mingw-targeted > > cross-compiler. > > Recent versions of gcc under Cygwin don't support the -mno-cygwin flag. > You can still install and use the gcc-3 packages. What I usually do is > to copy /bin/gcc-3.exe into $HOME/bin/gcc.exe (and to this directory in > front of your PATH). Another way would be gcc -V 3 -mno-cygwin Of course, only for those who don't hardcode gcc arguments... There is also the /etc/alternatives/gcc symlink which can be set to /usr/bin/gcc-3.exe to select the default gcc version. Gerd -- ------------------------------------------------------------ Gerd Stolpmann, Bad Nauheimer Str.3, 64289 Darmstadt,Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de Phone: +49-6151-153855 Fax: +49-6151-997714 ------------------------------------------------------------