1.5.24: 'gcc -mno-cygwin' doesn't find standard headers

Dave Korn dave.korn@artimi.com
Sun Apr 8 12:20:00 GMT 2007

On 08 April 2007 13:01, Greg Chicares wrote:

> Yesterday, 'gcc -mno-cygwin' worked fine. Today, it stopped
> working (testcase below) after I ran 'setup.exe' to get
> another package. I then tried, in succession:
>  - reinstalling gcc-mingw-core and gcc-mingw-g++
>  - reinstalling gcc-core and gcc-g++
>  - uninstalling and reinstalling all of cygwin
> but the issue persists. Testcase:

> /home/chicares[0]$gcc -mno-cygwin no-stdio.c
> no-stdio.c:1:19: stdio.h: No such file or directory

> Yet that header is present:
> /home/chicares[0]$ls /usr/i386-pc-cygwin/include/mingw/stdio.h -o
> -rwxr-x---+ 1 chicares 15051 Apr  7 10:03
> /usr/i386-pc-cygwin/include/mingw/stdio.h 

  But in very much the wrong place!
> [Perhaps this is related to the message that "C.W. Betts"
> posted on Sat, 7 Apr 2007 22:26:59 -0600 :
>   http://cygwin.com/ml/cygwin/2007-04/msg00240.html

  Almost certainly.  I notice in your cygcheck:

mingw-runtime        3.12-3

that you have the very latest mingw-runtime package, released just yesterday.
Try using setup.exe to roll that back to the prev version; that should fix it
for you.  We seem to have a packaging problem, the headers should live in

> I have only just subscribed to this mailing list and don't know
> any way to reply to a message that predates my subscription.]

  Check the welcome message, it has instructions on how to request any past
post to the list.  To find the message number, go to that url you posted,
click on the 'raw text' link and you'll see the number prominently in the
first few headers; in this case, we go to 


and see there:

>From cygwin-return-131864-listarch-cygwin=sourceware dot org at cygwin dot com
Sun Apr 08 04:28:14 2007
Return-Path: <cygwin-return-131864-listarch-cygwin=sourceware dot org at
cygwin dot com>

so if you send email to "cygwin-get.131864" AT the usual sourceware dot org
address, you'll receive a reply with the original post as an attachment; you
can then reply to that and keep threading intact.

Can't think of a witty .sigline today....

Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

More information about the Cygwin mailing list