delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/26/16:53:08

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 AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: g++ 4.1?
In-Reply-To: <449C88AB.55A2F04A@dessent.net>
MIME-Version: 1.0
References: <loom DOT 20060620T220001-703 AT post DOT gmane DOT org> <44987580 DOT 32006EA AT dessent DOT net> <afe5197f0606230600p1bd4c91av7e88eaf4a55a0aca AT mail DOT gmail DOT com> <449BE972 DOT B1D2CA47 AT dessent DOT net> <449C5B93 DOT 1000805 AT cwilson DOT fastmail DOT fm> <449C88AB DOT 55A2F04A AT dessent DOT net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019