www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/11/14/18:27:59

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Thu, 14 Nov 2002 23:27:54 +0000
Message-ID: <4931-Thu14Nov2002232754+0000-starksb@ebi.ac.uk>
From: David Starks-Browning <starksb AT ebi DOT ac DOT uk>
MIME-Version: 1.0
To: cygwin-developers AT sources DOT redhat DOT com
Subject: Re: Fwd: Re: later w32api package required to build cygwin
In-Reply-To: <5568-Thu14Nov2002220846+0000-starksb@ebi.ac.uk>
References: <3DD3E347 DOT 60703 AT yahoo DOT com>
<3DD3EB49 DOT 6000306 AT netscape DOT net>
<3DD3ED09 DOT 8050807 AT netscape DOT net>
<5568-Thu14Nov2002220846+0000-starksb AT ebi DOT ac DOT uk>

On Thursday 14 Nov 02, David Starks-Browning writes:
> On Thursday 14 Nov 02, Nicholas Wourms writes:
> > After investigating a few minutes, I found that in 
> > Makefile.common changing:
> > 
> > w32api_include:=-I$(w32api_source)/include
> > 
> > to
> > 
> > w32api_include:=-isystem $(w32api_source)/include
> 
> No, something else is going on.
> 
> In fact, the right "-isystem $(w32api_source)/include" appears in the
> c++ command line, by virtue of the FLAGS_FOR_TARGET definition in
> configure.in.
> 
> However, the c++ front-end also feeds "-isystem /usr/include/w32api"
> to cc1plus.exe, before the cvs one in the Makeile.  This screws us up.
> 
> Is this coming from the specs file?  If "-isystem /usr/include/w32api"
> has to be there (because gcc won't ever find it otherwise?), then a
> workaround for building Cygwin is to replace -isystem with -I in
> FLAGS_FOR_TARGET.  At least, I think that will work.  I'll try it now.

Sigh.  That causes another problem.  It brings
"$(w32api_source)/include" ahead of "." in the include search list:

#include "..." search starts here:
#include <...> search starts here:
 /home/starksb/cvs/sources.redhat.com/src/winsup/w32api/include
 .
 /home/starksb/cvs/sources.redhat.com/src/winsup/cygwin
 /home/starksb/cvs/sources.redhat.com/src/newlib/libc/sys/cygwin/include
 ../../../../src/winsup/cygwin/config/i386
 /lib/gcc-lib/i686-pc-cygwin/3.2/include
 /usr/include/w32api
 /home/starksb/cvs/sources.redhat.com/src/winsup/cygwin/include
 /home/starksb/cvs/sources.redhat.com/src/newlib/libc/sys/cygwin
 /home/starksb/cvs/sources.redhat.com/build/i686-pc-cygwin/newlib/targ-include
 /home/starksb/cvs/sources.redhat.com/src/newlib/libc/include
End of search list.

This breaks the compile of cygthread.cc, because it gets
winsup/w32api/include/winbase.h before ./winbase.h.  (So I haven't got
as far as fhandler_floppy.cc yet.)

Why are there two vastly different versions of winbase.h in different
places?  (Maybe they're not supposed to be so vastly different?)

I'm off to bed.  But if the different versions of winbase.h are by
design, I won't know how to solve the w32api/include problem when I
wake up.

Regards,
David

- Raw text -


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