X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Jacob Jacobson Subject: Re: gcc cannot find stdio.h Date: Tue, 09 Mar 2010 08:51:51 -0600 Lines: 73 Message-ID: References: <1ef5a52f1003090211m12ad9a72j718e7db9213ceca6 AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <1ef5a52f1003090211m12ad9a72j718e7db9213ceca6@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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