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.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id E03E8BBC4 for ; Thu, 19 Mar 2009 15:31:40 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAAP0wUnOe3NG/2dsb2JhbADTO4N8Bg X-IronPort-AV: E=Sophos;i="4.38,389,1233529200"; d="scan'208";a="25880796" Received: from spoomusic.com ([206.123.115.70]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Mar 2009 15:31:40 +0100 Received: (qmail 24326 invoked by uid 89); 19 Mar 2009 14:31:33 -0000 Received: from unknown (HELO ?192.168.1.99?) (98.165.129.233) by 0 with ESMTPS (DHE-RSA-AES256-SHA encrypted); 19 Mar 2009 14:31:33 -0000 Message-ID: <49C25720.2040800@ramenlabs.com> Date: Thu, 19 Mar 2009 07:30:56 -0700 From: Dave Benjamin User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Alain Frisch Cc: Alan Schmitt , caml-list@inria.fr Subject: Re: [Caml-list] Problem during Godi bootstrap_stage2 (Windows mingw) References: <83A0EFEB-EA29-48ED-8701-FBF5C5A1C5CC@polytechnique.org> <49C1F8AC.7030705@frisch.fr> In-Reply-To: <49C1F8AC.7030705@frisch.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; mingw:01 frisch:01 schmitt:01 ocaml:01 mingw:01 cygwin:01 gcc:01 cygwin:01 gcc:01 symlinks:01 ocamlrun:01 cpp:01 usr:01 cpp:01 symlinks:01 Alain Frisch wrote: > Alan Schmitt wrote: >> I had to reinstall my environment to develop OCaml applications under >> Windows (using mingw), and I'm having some problem during >> bootstrap_stage2. Here are the last few lines before the problem occurs: > > I think the problem comes from a recent update in Cygwin. Now, gcc is a > (Cygwin) symbolic link to gcc3.exe. Cygwin applications (like bash or > make) are able to follow symlinks, but not native Win32 applications > (like ocamlrun). > > A solution is to copy gcc3.exe to gcc.exe in a directory which is put in > front of the PATH. Same for cpp. I ran into this problem as well. My solution was basically what you described: cd /usr/bin mv gcc.exe gcc.exe.cygwin cp gcc-3.exe gcc.exe mv cpp.exe cpp.exe.cygwin cp cpp-3.exe cpp.exe The symlinks are due to the "alternatives" system. If you look at Cygwin's original gcc.exe and cpp.exe, you'll see that they point to /etc/alternaines/gcc and cpp, which in turn point back to /usr/bin/gcc-3.exe and cpp-3.exe. The goal is to let you install multiple versions and use symlinks to set the defaults. Seems like overkill in this case. Dave