delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/13/12:32:22

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 13 Sep 2000 18:30:08 +0200 (MET DST)
From: Marc Herbert <Marc DOT Herbert AT inrialpes DOT fr>
Reply-To: Marc Herbert <Marc DOT Herbert AT inrialpes DOT fr>
To: Earnie Boyd <earnie_boyd AT yahoo DOT com>
cc: cygwin AT sourceware DOT cygnus DOT com, Hubert DOT Garavel AT inrialpes DOT fr,
Radu DOT Mateescu AT inrialpes DOT fr
Subject: Re: weird mingw -isystem and -iwithprefixbefore in cygnus "gcc/config/i386/cygwin.h"
In-Reply-To: <20000913133626.7659.qmail@web118.yahoomail.com>
Message-ID: <Pine.SOL.3.94.1000913173706.24434R-100000@ubac.inrialpes.fr>
MIME-Version: 1.0

Hi,

On Wed, 13 Sep 2000, Earnie Boyd wrote:

> >  - we successfully replaced them by these two options :
> > 
> >     -iwithprefixbefore ../../../../i386-pc-cygwin32/sys-include/mingw
> >     -iwithprefixbefore ../../../../i386-pc-cygwin32/include/mingw
> > 
> > Only one of the two options we propose is useful at a given time. But
> > the two may be useful, depending on how you installed mingw headers.
> > 
> > Comments on this patch welcome.
> > 
> 
> Let me guess: you've installed Cygwin and then installed the MinGW version of
> gcc/binutils over that.  Am I correct?


Not at all. Precisely to avoid subtle clashes between versions from
different sources, we dowloaded all from cywin and only from cygwin.

The only way we diverge from the "mainstream" installation is that we
build a cross gcc (sun5 cross cygwin) instead of a native.

We extracted in $SRCDIR :

- binutils 20000722-1-src.tar.gz
- gcc 2.95.2-2-src.tar.gz

- cygwin-1.1.4-src.tar.gz (gives us include and lib in ./usr)


from cygwin site, built and installed binutils, and then did for gcc :

$SRCDIR/gcc-2.95.2-2/configure --enable-languages='c,c++'
--prefix=$PREFIX --target=$TARGET --with-headers=$SRCDIR/usr/include
--with-libs=$SRCDIR/usr/lib

gmake all install


After a successful installation, the installed compiler
$PREFIX/bin/$TARGET-gcc does NOT find the mingw headers when we
trigger the "-mno-cygwin" option. This bug occurs because the headers
are not installed in "/usr/include/mingw"  anymore (which is not
something so exceptional, is it ?) 


Let me remind you the original cygwin.h file :

      -isystem /usr/include/mingw32 \
      -isystem /usr/include/mingw \
!     -iwithprefixbefore ../../../../mingw/include/g++-3 \
!     -iwithprefixbefore ../../../../mingw/include }"


By the way, I wonder in what kind of very strange installation the two
last options above are useful...? That's why we replace them by ours,
thinking they were erronous.


Cheers,


-- 
Marc Herbert           | GIE Dyade (Bull/INRIA)
Marc DOT Herbert AT inria DOT fr  |   http://www.dyade.fr/
tel: +33 4 7661 5258   | VASY Project 
fax: +33 4 7661 5252   |   http://www.inrialpes.fr/vasy




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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