From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11938 invoked by alias); 12 Jul 2002 04:54:16 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11819 invoked from network); 12 Jul 2002 04:54:15 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 12 Jul 2002 04:54:15 -0000 Received: from redhat.com (vpn50-35.rdu.redhat.com [172.16.50.35]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g6C4sEs08358 for ; Fri, 12 Jul 2002 00:54:14 -0400 Received: by redhat.com (Postfix, from userid 201) id 631F51C359; Fri, 12 Jul 2002 00:54:20 -0400 (EDT) Date: Fri, 12 Jul 2002 02:38:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Available for test: gcc-3.1.1-2 gcc2-2.95.3-8 Message-ID: <20020712045420.GB10089@redhat.com> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20020711044304.GA3292@redhat.com> <11429391662.20020711171551@syntrex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11429391662.20020711171551@syntrex.com> User-Agent: Mutt/1.3.23.1i X-SW-Source: 2002-07/txt/msg01018.txt.bz2 On Thu, Jul 11, 2002 at 05:15:51PM +0200, Pavel Tsekov wrote: >Hello Christopher, > >Thursday, July 11, 2002, 6:43:04 AM, you wrote: > >CF> Fixes in gcc2: > >CF> -mno-cygwin works with c++ now? > > >I got setup.exe (2.249.2.4) to compile with that version (3.1.1-2) by >making the following changes: > >1. Create a symlink: >lrwxrwxrwx 1 paveltz Nessuno 54 Jul 11 16:15 i686-pc-mingw32 -> /usr/ >i686-pc-mingw32/include/g++-v3/mingw32 > >This is required because it contains the bits/ partf of libstdc++ and >g++ seem to look it there. Yes, I noticed this when trying to build setup myself recently. I think something changed in the g++ include file searching between my first implementation of -mno-cygwin and now. I'll make this correction in a new gcc-mingw package. >2. Add /usr/include/mingw/g++-v3 to CXXFLAGS I may nuke g++-v3 in the next release. It looks like mingw and cygwin can share the same /usr/include/c++/3.1.1 directory. >So finally I get this: > >GNU CPP version 3.1.1 20020710 (prerelease) (cpplib) (80386, BSD syntax) >GNU C++ version 3.1.1 20020710 (prerelease) (i686-pc-cygwin) > compiled by GNU C version 3.1.1 20020706 (prerelease). >ignoring duplicate directory "/usr/i686-pc-mingw32/lib/../../include/w32api" >#include "..." search starts here: >#include <...> search starts here: > /usr/include/mingw/g++-v3 > /usr/include/w32api > /usr/include/c++/3.1.1 > /usr/include/c++/3.1.1/i686-pc-mingw32 > /usr/include/c++/3.1.1/backward > /usr/local/include > /usr/lib/gcc-lib/i686-pc-cygwin/3.1.1/include > /usr/i686-pc-mingw32/include > /usr/include > >This changes and some modifications to the sources (using namespace, >replacing old headers) make setup.exe build fine. Would you be willing to send me (in personal email) some source patches for this, so that I can try it myself? I could have sworn that I built setup with an earlier version of gcc 3.1 but it's dying in libgetopt++.a for me now. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/