X-Spam-Check-By: sourceware.org
Message-ID: <afe5197f0606261352v71af73f2kc6bb30980c01e1fe@mail.gmail.com>
Date: Mon, 26 Jun 2006 21:52:41 +0100
From: "Joe Schmoe" <rcopley@gmail.com>
To: cygwin@cygwin.com
Subject: Re: g++ 4.1?
In-Reply-To: <449C88AB.55A2F04A@dessent.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <loom.20060620T220001-703@post.gmane.org> 	 <44987580.32006EA@dessent.net> 	 <afe5197f0606230600p1bd4c91av7e88eaf4a55a0aca@mail.gmail.com> 	 <449BE972.B1D2CA47@dessent.net> <449C5B93.1000805@cwilson.fastmail.fm> 	 <449C88AB.55A2F04A@dessent.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
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

Thanks to all that encouragement, I now have not one but two working
installations of gcc-4.1.1.  As Brian said, the cygwin compiler will
configure and make with no problems, except that -mno-cygwin doesn't
work. For a no-cygwin compiler, this is what I did -- I'm not saying
it's a good idea. First ftp your sources from GNU. (I only took
gcc-core and gcc-g++). Use setup to make sure you've got gcc-3.4.5 and
anything with mingw in the package name, and maybe gmp, flex and
bison. (I don't know exactly what is required. It turns out I already
had everything I needed.)

../<...>/configure --disable-nls --program-suffix=<...> \
  --host=i686-pc-cygwin --target=i686-pc-mingw32

make
## failure; can't find <windows.h>
ln -s /usr/include/w32api /usr/i686-pc-ming32/sys-include # (stupid hack)

make
## failure; can't find i686-pc-mingw32-ar.exe
for x in as ld ar nm strip ranlib # (stupid hack)
do ln -s /usr/i686-pc-mingw32/bin/$x.exe /usr/bin/i686-pc-mingw32-$x.exe
done

make
make install

The resulting compiler does seem to make working native binaries, at
least for my program, which doesn't explicitly use DLLs or exceptions.
Final thought: this probably wasn't worth the trouble.

Regards, Buster.

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

