X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Date: Thu, 18 Feb 2010 17:58:40 +0100
From: Gary <cygwin@garydjones.name>
To: cygwin@cygwin.com
Subject: Re: setup.exe - a small feature request
Message-ID: <20100218165840.GA3932@mimosa.garydjones.name>
Mail-Followup-To: cygwin@cygwin.com
References: <20100218104928.GA2684@mimosa.garydjones.name> <4B7D3854.3070801@byu.net> <4B7D4445.5060808@bopp.net> <20100218145226.GA2248@mimosa.garydjones.name> <4B7D63DE.7060700@cs.umass.edu> <20100218160414.GA27154@ednor.casa.cgf.cx>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20100218160414.GA27154@ednor.casa.cgf.cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Thu, Feb 18, 2010 at 11:04:14AM -0500, Christopher Faylor wrote:
> On Thu, Feb 18, 2010 at 10:59:26AM -0500, Eliot Moss wrote:
> >On 2/18/2010 9:52 AM, Gary wrote:

> >> configure:3021: checking whether the C++ compiler works
> >> configure:3043: g++ -mno-cygwin  -I /usr/include/ncurses  conftest.cpp>&5
> >> g++: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler\
> >> .
> >>
> >> configure:3047: $? = 1
> >> configure:3085: result: no
> >> configure: failed program was:
> >> (etc.)
> >>
> >> WTH? Am I supposed to be using some other compiler, such as gcc-3?
> >>
> >> (Note: removing the -mno-cygwin option seems to make configure work, but
> >> the knock on effect is probably not desirable.)
> >
> >I think the answer is to install and use mingw.

> No, the answer is to use gcc-3.  It should be fairly obvious that setup
> can't be built with gcc-4 right now, once you attempt to try to build it.

Thanks.
./configure -C --disable-shared --host=i686-pc-mingw32 --build=i686-pc-cygwin CC="gcc-3 -mno-cygwin" CXX="g++-3 -mno-cygwin"
and the following 'make' seem to work fine. I sort of assumed it was
that, but thought it was best to clarify first. Is it worth updating the
README to clarify this, or are you expecting the -mno-cygwin option to
be in a later release of gcc?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

