From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21327 invoked by alias); 12 Dec 2007 02:07:28 -0000 Received: (qmail 21181 invoked by uid 22791); 12 Dec 2007 02:07:27 -0000 X-Spam-Check-By: sourceware.org Received: from smtp121.sbc.mail.sp1.yahoo.com (HELO smtp121.sbc.mail.sp1.yahoo.com) (69.147.64.94) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 12 Dec 2007 02:07:20 +0000 Received: (qmail 83509 invoked from network); 12 Dec 2007 02:07:18 -0000 Received: from unknown (HELO ?69.105.73.42?) (timothyprince@sbcglobal.net@69.105.73.42 with plain) by smtp121.sbc.mail.sp1.yahoo.com with SMTP; 12 Dec 2007 02:07:18 -0000 X-YMail-OSG: D7K5wvkVM1mGYSP8eykp9ZJLyaMJo0UVcDhzjNHgrwAga9rtdXOZXcUT0uDCJNhcg922DUAPlA-- Message-ID: <475F3CA6.5090508@computer.org> Date: Wed, 12 Dec 2007 02:07:00 -0000 From: Tim Prince User-Agent: Thunderbird 2.0.0.4 (X11/20070613) MIME-Version: 1.0 To: Rick Mann CC: gcc-help@gcc.gnu.org Subject: Re: Should I be able to build cross gcc 4.x on Cygwin? References: <710C780E-6CF3-4950-9A39-8CFC26B08C2D@latencyzero.com> In-Reply-To: <710C780E-6CF3-4950-9A39-8CFC26B08C2D@latencyzero.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00234.txt.bz2 Rick Mann wrote: > I've been able to build an xscale-elf-targeted GCC (and binutils and > newlib) on Mac OS X. Now I have to do the same thing on Cygwin (ugh), > and it doesn't work. > > One thing is that Cygwin has GCC 3.4, not 4.x. > > Looking around, the GCC installation notes seem to imply that 3.4 can > build 4.x, so I'm wondering if there's something in particular I need to > watch out for? > Without a definition of "doesn't work," we may not be of much assistance. Cygwin special gcc will bootstrap all more recent gcc versions. Of course, there are Windows versions and Windows versions. Don't expect Windows versions from over 5 years ago, or an installation which doesn't do a clean file system or registry check, to work. Of course, watch out for buggy antivirus programs. If you are building libstdc++, you would need to remove the WERROR macros there, unless your headers meet the criteria set. The gcc source must be installed in a place such that there are no spaces in the path. On some installations, it is necessary to set HOME to the top level gcc source directory. Other than that, build on a multi-threaded platform if you want to finish within 8 hours. If you find that you had forgotten necessary software components in your cygwin installation, after installing them, start your gcc configure and build over from scratch. In my experience, cygwin automake is broken with respect to gcc builds, so don't install that.