From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23322 invoked by alias); 29 Jul 2013 12:44:18 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23313 invoked by uid 89); 29 Jul 2013 12:44:18 -0000 X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 29 Jul 2013 12:44:18 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id D78A15200F1; Mon, 29 Jul 2013 14:44:08 +0200 (CEST) Date: Mon, 29 Jul 2013 13:36:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cc1: warning: ../../include/w32api: No such file or directory [enabled by default] Message-ID: <20130729124408.GE30069@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-07/txt/msg00647.txt.bz2 On Jul 29 12:19, Achim Gratz wrote: > Achim Gratz 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