From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11056 invoked by alias); 24 May 2011 21:10:54 -0000 Received: (qmail 11047 invoked by uid 22791); 24 May 2011 21:10:53 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW,TW_YG X-Spam-Check-By: sourceware.org Received: from out3.smtp.messagingengine.com (HELO out3.smtp.messagingengine.com) (66.111.4.27) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 May 2011 21:10:39 +0000 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.messagingengine.com (Postfix) with ESMTP id B2E4F20EB5 for ; Tue, 24 May 2011 17:10:38 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 24 May 2011 17:10:38 -0400 Received: from [158.147.67.90] (158-147-67-90.harris.com [158.147.67.90]) by mail.messagingengine.com (Postfix) with ESMTPSA id 69666400142; Tue, 24 May 2011 17:10:38 -0400 (EDT) Message-ID: <4DDC1ECD.8030609@cwilson.fastmail.fm> Date: Tue, 24 May 2011 21:10:00 -0000 From: Charles Wilson Reply-To: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Error building run2 from source package in win7 References: <20110523171750.GB16755@jethro.local.lan> <4DDA97CC.1090404@redhat.com> <4DDAA894.5090802@cwilson.fastmail.fm> <20110524183824.GA11571@jethro.local.lan> <4DDBFFFF.8090909@cwilson.fastmail.fm> <20110524195347.GB11571@jethro.local.lan> In-Reply-To: <20110524195347.GB11571@jethro.local.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-05/txt/msg00352.txt.bz2 On 5/24/2011 3:53 PM, David Sastre wrote: > On Tue, May 24, 2011 at 02:59:11PM -0400, Charles Wilson wrote: >> A-ha! >> >> Don't set -Werror as part of $CC, set it in $CFLAGS instead. > > Which is what is defined in the *.cygport's src_compile func: > > src_compile() { > cd ${S} > cygautoreconf > cd ${B} > cygconf CFLAGS="-Wall -Werror" > cygmake > } > > And I'm doing nothing but running 'cygport *.cygport all'. Well, Eric is the real expert, and he says don't set the warning flags until the cygmake line, so that's first. However, I assume the incantation above worked in the past for the original author of the .cygport(5) file, so why's it breaking for you? Second, why does the STC below not work for you, when it worked for me? > for the same reasons (config.log): > > configure:2563: gcc -c -Wall -Werror conftest.c >&5 > cc1: warnings being treated as errors > conftest.c: In function 'main': > conftest.c:38:10: error: 't' is used uninitialized in this function > conftest.c:54:23: error: 'b' may be used uninitialized in this > function > configure:2563: $? = 1 Well, looking at my config.log, I too have: configure:2498: checking for an ANSI C-conforming const configure:2563: gcc -c -Wall -Werror conftest.c >&5 ^^^^^^^^^^^^^ configure:2563: $? = 0 configure:2570: result: yes but we already know that this conftest.c is not -Wall -Werror clean -- or, at least, that YOUR conftest.c is not clean. Digging deeper in my configure, I find that the test uses the shell function ac_fn_c_try_compile(), and that shell function has an interesting bit of code: 1340 test -z "$ac_c_werror_flag" || 1341 test ! -s conftest.err 1342 } && test -s conftest.$ac_objext; then : 1343 ac_retval=0 Hmmm...it's checking something to do with a Werror flag! Maybe there's a workaround, but (a) is only activated if the -Werror is in CFLAGS, not CC -- otherwise *I* would have passed the STC with CC='gcc -Wall -Werror' but I didn't, and (b) its only present in specific (newer?) versions of autoconf, and you and I are using different versions. Here's the first 3 lines of my configure script: 1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.68. What's yours say? -- Chuck -- 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