X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SARE_MSGID_LONG45,TW_CX,TW_GC,TW_IB,TW_JL,TW_YG,TW_YM X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <4BBDE46D DOT 5070406 AT etr-usa DOT com> <4BBDEA4E DOT 9090808 AT redhat DOT com> Date: Thu, 8 Apr 2010 17:16:01 +0200 Received: by 10.216.87.147 with SMTP id y19mr113820wee.136.1270739761203; Thu, 08 Apr 2010 08:16:01 -0700 (PDT) Message-ID: Subject: Re: "GCC is not found" and "compiler cannot create executables" errors From: david sastre To: cygwin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Answers to different posts: $ which cc /usr/bin/cc $ cc -v Usando especificaciones internas. Objetivo: i686-pc-cygwin Configurado con: /gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4/configure --srcdir=3D/gnu/gcc/releases/packaging/4.3.4-3/gcc4-4.3.4-3/src/gcc-4.3.4 --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/s= bin --libexecdir=3D/usr/lib --datadir=3D/usr/share --localstatedir=3D/var --sysconfdir=3D/etc --infodir=3D/usr/share/info --mandir=3D/usr/share/man --datadir=3D/usr/share --infodir=3D/usr/share/info --mandir=3D/usr/share/man -v --with-gmp=3D/usr --with-mpfr=3D/usr --enable-bootstrap --enable-version-specific-runtime-libs --with-slibdir=3D/usr/bin --libexecdir=3D/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=3Dada,c,c++,fortran,java,objc,obj-c++ --disable-symvers --enable-libjava --program-suffix=3D-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=3Dposix --with-arch=3Di686 --with-tune=3Dgeneric --enable-libgcj-sublibs CC=3Dgcc-4 CXX=3Dg++-4 CC_FOR_TARGET=3Dgcc-4 CXX_FOR_TARGET=3Dg++-4 GNATMAKE_FOR_TARGET=3Dgnatmake GNATBIND_FOR_TARGET=3Dgnatbind AS=3D/opt/gcc-tools/bin/as.exe AS_FOR_TARGET=3D/opt/gcc-tools/bin/as.exe LD=3D/opt/gcc-tools/bin/ld.exe LD_FOR_TARGET=3D/opt/gcc-tools/bin/ld.exe --with-ecj-jar=3D/usr/share/java/ecj.jar Modelo de hilos: posix gcc versi=C3=B3n 4.3.4 20090804 (release) 1 (GCC) That flags come from: $ cat /etc/make.conf export CHOST=3D"i686-pc-cygwin" export CFLAGS=3D"-march=3Dprescott -O2 -pipe -fomit-frame-pointer" export CXXFLAGS=3D"${CFLAGS}" That is a file I source before calling ./configure to optimize the compilation process for my cpu model. $ cat /proc/cpuinfo vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Duo CPU T7100 @ 1.80GHz Regards. 2010/4/8, david sastre : > Sorry for the private mail, didn't mean to do that. > Resend to the list. > > ---------- Forwarded message ---------- > From: david sastre > Date: Thu, 8 Apr 2010 17:02:27 +0200 > Subject: Re: "GCC is not found" and "compiler cannot create executables" > errors > To: Eric Blake > > 2010/4/8, Eric Blake wrote: >> On 04/08/2010 08:36 AM, david sastre wrote: >>> >>> Also, direct gcc invocation exits silenlty: >>> $ gcc hola.mundo.c >> >> Generally the sign of a missing .dll. What does 'cygcheck gcc' say? > > $ cygcheck gcc > Found: C:\cygwin\bin\gcc.exe > Found: C:\cygwin\bin\gcc.exe > -> C:\cygwin\etc\alternatives\gcc > -> C:\cygwin\bin\gcc-4.exe > C:\cygwin\bin\gcc-4.exe > C:\cygwin\bin\cyggcc_s-1.dll > C:\cygwin\bin\cygwin1.dll > C:\WINDOWS\system32\ADVAPI32.DLL > C:\WINDOWS\system32\KERNEL32.dll > C:\WINDOWS\system32\ntdll.dll > C:\WINDOWS\system32\RPCRT4.dll > C:\WINDOWS\system32\Secur32.dll > >> Also, following these directions: >> >>> Problem reports: http://cygwin.com/problems.html >> >> and attaching a text file of your 'cygcheck -svr' output might make the >> solution obvious. > > Attached. Sorry for that huge file but, as stated in the link you provide= d: > > " Please do not compress or otherwise encode the output (of cygcheck -svr= )" > > Regards. > -- 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