delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/08/11:16:14

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: <p2g7758a5c31004080805re6910515zcac9db333b7564c@mail.gmail.com>
References: <k2i7758a5c31004080511r876491dfy6326bb0712dca648 AT mail DOT gmail DOT com> <4BBDE46D DOT 5070406 AT etr-usa DOT com> <v2w7758a5c31004080736ja46e3d08q602c97313e945408 AT mail DOT gmail DOT com> <4BBDEA4E DOT 9090808 AT redhat DOT com> <r2q7758a5c31004080802t7b705bc9tf54f28a91429dd7d AT mail DOT gmail DOT com> <p2g7758a5c31004080805re6910515zcac9db333b7564c AT mail DOT gmail DOT com>
Date: Thu, 8 Apr 2010 17:16:01 +0200
Message-ID: <g2k7758a5c31004080816u1e3fe43ek9741240b0a530809@mail.gmail.com>
Subject: Re: "GCC is not found" and "compiler cannot create executables" errors
From: david sastre <d DOT sastre DOT medina AT gmail DOT com>
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <d DOT sastre DOT medina AT gmail DOT com>:
> Sorry for the private mail, didn't mean to do that.
> Resend to the list.
>
> ---------- Forwarded message ----------
> From: david sastre <d DOT sastre DOT medina AT gmail DOT com>
> Date: Thu, 8 Apr 2010 17:02:27 +0200
> Subject: Re: "GCC is not found" and "compiler cannot create executables"
> errors
> To: Eric Blake <eblake AT redhat DOT com>
>
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019