Subject: Re: "GCC is not found" and "compiler cannot create executables" errors
From: david sastre <[email-masked]>
To: cygwin <[email-masked]>
Date: Thu, 8 Apr 2010 17:16:01 +0200
List-Id: <cygwin.cygwin.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=/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
Modelo de hilos: posix
gcc versión 4.3.4 20090804 (release) 1 (GCC)

That flags come from:
$ cat /etc/make.conf
export CHOST="i686-pc-cygwin"
export CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
export CXXFLAGS="${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 <[email-masked]>:
> Sorry for the private mail, didn't mean to do that.
> Resend to the list.
>
> ---------- Forwarded message ----------
> From: david sastre <[email-masked]>
> Date: Thu, 8 Apr 2010 17:02:27 +0200
> Subject: Re: "GCC is not found" and "compiler cannot create executables"
> errors
> To: Eric Blake <[email-masked]>
>
> 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 provided:
>
> " 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