This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error building run2 from source package in win7


On 05/24/2011 12:38 PM, David Sastre wrote:
> From the config.log:
> 
> configure:12737: checking for an ANSI C-conforming const
> configure:12802: gcc -c -Wall -Werror  conftest.c >&5

There's your problem.

Autoconf-generated configure scripts do _NOT_ support -Werror; it is too
problematic to ever guarantee that all possible warnings from all
possible gcc versions will always be silenced.

It is permissible to configure without -Werror, and add it later via
'make CFLAGS="-Werror ..."', once configure has found correct results.
But by injecting -Werror too soon into the process, you've made
configure guess a wrong result:

> cc1: warnings being treated as errors
> conftest.c: In function 'main':
> conftest.c:69:10: error: 't' is used uninitialized in this function
> conftest.c:85:23: error: 'b' may be used uninitialized in this function
...
> configure:12809: result: no

with disastrous consequences on the rest of the project compilation.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]