gcc cannot find stdio.h

Jacob Jacobson news@biyani.org
Tue Mar 9 17:17:00 GMT 2010


Csaba Raduly wrote:
> On Mon, Mar 8, 2010 at 11:37 PM, Jacob Jacobson  wrote:
>> I am unable to run gcc. I keep getting stdio.h: No such file.
> 
> Hi Jacob,
> What is the output of
> 
> gcc-4 -v hello.c
> 
> and the output of
> 
> find /usr/include -name stdio.h -ls
> 
[hello$:502] gcc-4 -v hello.c
Using built-in specs.
Target: i686-pc-cygwin
Configured with: 
/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/configure 
--srcdir=/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4 
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var 
--sysconfdir=/etc --infodir=/usr/share/info --mandir=/usr/share/man 
--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 --with-slibdir=/usr/bin 
--libexecdir=/usr/lib --enable-static --enable-shared 
--enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld 
--with-gnu-as --with-dwarf2 --disable-sjlj-exceptions 
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --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 AS=/opt/gcc-tools/bin/as.exe 
AS_FOR_TARGET=/opt/gcc-tools/bin/as.exe LD=/opt/gcc-tools/bin/ld.exe 
LD_FOR_TARGET=/opt/gcc-tools/bin/ld.exe 
--with-ecj-jar=/usr/share/java/ecj.jar
Thread model: posix
gcc version 4.3.4 20090804 (release) 1 (GCC)
COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=i686'
  /bin/../lib/gcc/i686-pc-cygwin/4.3.4/cc1.exe -quiet -v -iprefix 
/bin/../lib/gcc/i686-pc-cygwin/4.3.4/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix 
-D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter 
../../include/w32api hello.c -quiet -dumpbase hello.c -mtune=generic 
-march=i686 -auxbase hello -version -o /c/home/abiyani/tmp/ccwzZUAU.s
ignoring nonexistent directory 
"/bin/../lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/include"
ignoring nonexistent directory "/usr/local/include"
ignoring duplicate directory 
"/bin/../lib/gcc/../../lib/gcc/i686-pc-cygwin/4.3.4/include"
ignoring duplicate directory 
"/bin/../lib/gcc/../../lib/gcc/i686-pc-cygwin/4.3.4/include-fixed"
ignoring nonexistent directory 
"/bin/../lib/gcc/../../lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/include"
ignoring nonexistent directory "../../include/w32api"
#include "..." search starts here:
#include <...> search starts here:
  /bin/../lib/gcc/i686-pc-cygwin/4.3.4/include
  /bin/../lib/gcc/i686-pc-cygwin/4.3.4/include-fixed
  /usr/include
  /usr/lib/../include/w32api
End of search list.
GNU C (GCC) version 4.3.4 20090804 (release) 1 (i686-pc-cygwin)
         compiled by GNU C version 4.3.4 20090804 (release) 1, GMP 
version 4.3.1, MPFR version 2.4.1-p5.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: d5cdab7e958df0270fe64611765e0bb6
hello.c:2:19: error: stdio.h: No such file or directory
hello.c:3:20: error: stdlib.h: No such file or directory
hello.c: In function 'main':
hello.c:7: warning: incompatible implicit declaration of built-in 
function 'printf'
[hello$:503]


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