This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: weird mingw -isystem and -iwithprefixbefore in cygnus "gcc/config/i386/cygwin.h"



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.Herbert@inria.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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]