My"C" Compiled can't compile "{}"

Paul McFerrin pmcferrin@columbus.rr.com
Mon Dec 28 04:09:00 GMT 2009


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



More information about the Cygwin mailing list