www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/27/23:09:16

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=Wc6RQVGp22kA:10 a=w_pzkKWiAAAA:8 a=vU1_Z3-clTdZxHRAITcA:9 a=gcN0-dSjXdqiM9WYn20A:7 a=5DKsKcacAuYMZlz_sQiroNWP1QsA:4 a=buB1NfXUTBUA:10 a=IfQ-iFkkCvMA:10
Message-ID: <4B382F54.9020202@columbus.rr.com>
Date: Sun, 27 Dec 2009 23:08:52 -0500
From: Paul McFerrin <pmcferrin AT columbus DOT rr DOT com>
Reply-To: pmcferrin AT columbus DOT rr DOT com
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: My"C" Compiled can't compile "{}"
References: <4B381883 DOT 7030002 AT columbus DOT rr DOT com> <4B382F92 DOT 4000806 AT gmail DOT com>
In-Reply-To: <4B382F92.4000806@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

My C compiler is at:
$ ls -l /bin/cc.exe

lrwxrwxrwx 1 paul None 20 2009-12-23 16:09 /bin/cc.exe -> 
/etc/alternatives/cc

 From my years of experiences, "{}" is the simplest version of a 
to-be-compiled C program.  It is syntaxily correct.  in any case, the 
above DID work in 1.7-68.

I was doing a "configure" when it failed the first time:
checking for C compiler default output file name...
configure: error: in `/usr/local/mysql-5/mysql-5.1.41':
configure: error: C compiler cannot create executables
See `config.log' for more details.

== config.log  =====
configure:4098: result: /bin/pdflatex
configure:4108: checking for makeindex
configure:4126: found /bin/makeindex
configure:4139: result: /bin/makeindex
configure:4395: checking whether build environment is sane
configure:4438: result: yes
configure:4441: checking whether make sets $(MAKE)
configure:4463: result: yes
configure:4539: checking for gawk
configure:4566: result: gawk
configure:4625: checking for gcc
configure:4641: found /bin/gcc
configure:4652: result: gcc
configure:4884: checking for C compiler version
configure:4892: gcc --version >&5
gcc (GCC) 4.3.4 20090804 (release) 1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4896: $? = 0
configure:4903: gcc -v >&5
Using built-in specs.

Does this help you???


Dave Korn wrote:
> Paul McFerrin wrote:
>   
>> I discover my C compiler is broken while performing a "configure".
>>     
>
>   The compiler is fine.
>
>   
>> $ echo "{}" >test.c
>>     
>
>   Your testcase is nonsense.
>
>   
>> $ cc -O test.c -o test
>> test.c:1: error: expected identifier or ‘(’ before ‘{’ token
>>     
>
>   The compiler correctly told you so.  What were you expecting?  (Also, what
> is 'cc'?  Softlink perhaps?)
>
>     cheers,
>       DaveK
>
> --
> 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
>
>
>   

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