This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cc1: warning: ../../include/w32api: No such file or directory [enabled by default]
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 29 Jul 2013 14:44:08 +0200
- Subject: Re: cc1: warning: ../../include/w32api: No such file or directory [enabled by default]
- References: <loom dot 20130724T131352-6 at post dot gmane dot org> <loom dot 20130729T141755-373 at post dot gmane dot org>
- Reply-to: cygwin at cygwin dot com
On Jul 29 12:19, Achim Gratz wrote:
> Achim Gratz <Stromeko <at> NexGo.DE> writes:
> > The above warning appears when -Wmissing-include-dirs is in effect (and
> > aborts compilation if -Werror is also given). The missing include path
> > seems to be produced by the following compiler spec:
> >
> > %(cpp_cpu) [...] %{!nostdinc:%{!mno-win32:-idirafter ../include/w32api%s
> > -idirafter ../../include/w32api%s}}
> >
> > which gets expanded into
> >
> > -idirafter /usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../include/w32api
> > -idirafter ../../include/w32api
>
> If I crate a link /usr/include -> /include then the warning / error is not
> produced. Since I don't think /include is supposed to exist on Cygwin, it
> seems the compiler spec is wrong?
It looks like this is a misbehaviour of gcc 4.7.3. There are
practically always non-existant default include dirs, not only on
Cygwin. If you try the same -Wmissing-include-dirs with gcc 4.8.1 on
x86_64 Cygwin, there won't be such a warning.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple