GCC can't find its header directoriescy

Dave Korn dave.korn.cygwin@gmail.com
Thu Apr 11 06:16:00 GMT 2013


On 11/04/2013 06:12, Duncan Roe wrote:
> Thanks guys for the pointers to cygmpfr-4.dll. Got it.
> 
> This problem with headers started happening on an old installation so I
> reinstalled but it still happens:

> ignoring nonexistent directory "/usr/include"

> strerror.c:2:19: error: no include path in which to search for stdio.h

> 12:33:27$ ls /usr/include

> locale.h    netdb.h     reent.h     stdio.h      termios.h   wait.h

> /usr/include definitely exists but gcc / cpp claims it does not.
> Since this "just started happening" I wonder whether it is caused by
> some update to Windows. (Win XP SP3).
> 
> Anyone else seen anything like it? I'm stuck,

  Bizarre.  I've never seen anything like it, nor your problem with "altdir
invalid".  However I've got one guess about what might be interfering, from
your cygcheck.out:

>    45k 2010/08/15 C:\WINDOWS\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
>                   "cyggcc_s-1.dll" v0.0 ts=2010/8/15 8:57
>   982k 2009/12/23 C:\WINDOWS\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
>                   "cygiconv-2.dll" v0.0 ts=2009/12/24 0:25
>    31k 2011/11/28 C:\WINDOWS\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
>                   "cygintl-8.dll" v0.0 ts=2009/4/3 12:15
>    31k 2009/04/03 C:\WINDOWS\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
>                   "cygintl-8.dll" v0.0 ts=2009/4/3 12:15
>    31k 2009/04/03 C:\WINDOWS\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
>                   "cygintl-8.dll" v0.0 ts=2009/4/3 12:15
>   224k 2010/06/15 C:\WINDOWS\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
>                   "cygpcre-0.dll" v0.0 ts=2010/6/15 14:10
>    10k 2009/12/14 C:\WINDOWS\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
>                   "cygsigsegv-2.dll" v0.0 ts=2009/12/14 23:56
>  2586k 2010/08/31 C:\WINDOWS\cygwin1.dll - os=4.0 img=1.0 sys=4.0
>                   "cygwin1.dll" v0.0 ts=2010/8/31 17:58
>     Cygwin DLL version info:
>         DLL version: 1.7.7

  Those could well have been interfering.  Get rid of all Cygwin-related DLLs
from your C:\WINDOWS folder (maybe stash them away somewhere safe in case they
turn out to be needed by some Cygwin-dependent application you've got on your
system), then reinstall everything using setup.exe (click on "Default" next to
the "All" category in the Category view until it switches to "Reinstall",
ignore the couple of warning boxes that pop up on the way there) and see if it
all works better once that's completed.

    cheers,
      DaveK



--
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



More information about the Cygwin mailing list