GCC can't find its header directoriescy
Duncan Roe
droe@mintec.com.au
Thu Apr 11 05:38:00 GMT 2013
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:
12:31:51$ gcc -v strerror.c -o strerror
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe
Target: i686-pc-cygwin
Configured with:
/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure
--srcdir=/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --
atarootdir=/usr/share --docdir=/usr/share/doc/gcc4 -C
--datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man
-v --with-gmp=/usr --with-mpfr=
usr --enable-bootstrap --enable-version-specific-runtime-libs
--libexecdir=/usr/lib --enable-static --enable-shared
--enable-shared-libgcc --disable-__cxa_a
exit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions
--enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++
--enable-graphite --enab
e-lto --enable-java-awt=gtk --disable-symvers --enable-libjava
--program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada
--enable-threads=posix -
with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4
CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4
GNATMAKE_FOR_TARGET=gnatmake GNATBIND
FOR_TARGET=gnatbind --with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.5.3 (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' 'strerror.exe' '-mtune=generic'
'-march=i686'
/usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe -quiet -v -D__CYGWIN32__
-D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../
./../../include/w32api -idirafter
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/lib/../../i
nclude/w32api strerror.c -quiet -dumpbase strerror
c -mtune=generic -march=i686 -auxbase strerror -version -o
/tmp/ccShhRJ9.s
GNU C (GCC) version 4.5.3 (i686-pc-cygwin)
compiled by GNU C version 4.5.3, GMP version 4.3.2, MPFR version
3.0.1-p4, MPC version 0.8
GGC heuristics: --param ggc-min-expand=100 --param
ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-cygwin/4.5.3/include"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-cygwin/4.5.3/include-fixed"
ignoring nonexistent directory "/usr/i686-pc-cygwin/include"
ignoring nonexistent directory "/usr/include"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api"
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/lib/../../
include/w32api"
#include "..." search starts here:
#include <...> search starts here:
End of search list.
GNU C (GCC) version 4.5.3 (i686-pc-cygwin)
compiled by GNU C version 4.5.3, GMP version 4.3.2, MPFR version
3.0.1-p4, MPC version 0.8
GGC heuristics: --param ggc-min-expand=100 --param
ggc-min-heapsize=131072
Compiler executable checksum: 89d6774c1d510265da7d48b735ce61fb
strerror.c:2:19: error: no include path in which to search for stdio.h
strerror.c:3:20: error: no include path in which to search for string.h
strerror.c:4:19: error: no include path in which to search for errno.h
strerror.c:5:23: error: no include path in which to search for
sys/types.h
strerror.c:6:20: error: no include path in which to search for signal.h
strerror.c: In function `main':
strerror.c:14:7: warning: incompatible implicit declaration of built-in
function `strchr'
strerror.c:15:15: warning: incompatible implicit declaration of built-in
function `strrchr'
strerror.c:18:5: warning: incompatible implicit declaration of built-in
function `fprintf'
strerror.c:18:13: error: `stderr' undeclared (first use in this
function)
strerror.c:18:13: note: each undeclared identifier is reported only once
for each function it appears in
strerror.c:21:7: warning: incompatible implicit declaration of built-in
function `sscanf'
strerror.c:23:5: warning: incompatible implicit declaration of built-in
function `fprintf'
strerror.c:27:7: warning: assignment makes pointer from integer without
a cast
strerror.c:29:7: warning: assignment makes pointer from integer without
a cast
strerror.c:32:5: error: `errno' undeclared (first use in this function)
strerror.c:34:5: warning: incompatible implicit declaration of built-in
function `snprintf'
strerror.c:39:5: warning: incompatible implicit declaration of built-in
function `fprintf'
strerror.c:44:3: warning: incompatible implicit declaration of built-in
function `printf'
12:33:27$ ls /usr/include
FlexLexer.h arpa commline.h elf.h features.h
ieeefp.h magic.h newlib.h regex.h stdlib.h ticker.h
wctype.h
IEEE.h asm complex.h endian.h fenv.h
ifaddrs.h malloc.h objstack.h resolv.h string.h time.h
wordexp.h
_ansi.h assert.h crypt.h envlock.h fnmatch.h
inttypes.h mapi.h paths.h rpc strings.h tzfile.h
zconf.h
_syslist.h attr ctype.h envz.h fts.h io.h
math.h poll.h sched.h symcat.h unistd.h zlib.h
a.out.h autosprintf.h cygicons.h err.h ftw.h
langinfo.h memory.h position.h search.h sys utime.h
alloca.h bfd.h cygwin errno.h gdb
lastlog.h mntent.h process.h semaphore.h sysexits.h utmp.h
allocate.h bfdlink.h dino-0.55 error.h getopt.h
libgen.h monetary.h pthread.h setjmp.h syslog.h utmpx.h
ansidecl.h bits dirent.h errors.h glob.h
libintl.h mqueue.h pty.h signal.h tar.h vlobject.h
ar.h bits.h dis-asm.h exceptions.h grp.h
limits.h net pwd.h stdint.h termio.h w32api
argz.h byteswap.h dlfcn.h fastmath.h hashtab.h
locale.h netdb.h reent.h stdio.h termios.h wait.h
arithm.h cocom-config.h earley.h fcntl.h icmp.h
machine netinet regdef.h stdio_ext.h tgmath.h wchar.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,
Cheers ... Duncan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 22313 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130411/4f9c927f/attachment.obj>
-------------- next part --------------
--
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