qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Blue Swirl <blauwirbel@gmail.com>, Stefan Weil <sw@weilnetz.de>,
	Eric Blake <eblake@redhat.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] configure: Fix build with capabilities
Date: Mon, 16 Jul 2012 19:24:38 +0200	[thread overview]
Message-ID: <50044E56.8050408@suse.de> (raw)
In-Reply-To: <CAFEAcA9hMiV-yB8QRJMG+N5fKSGohMNFf4nv3zXjKV3L4HBbHQ@mail.gmail.com>

On 07/16/2012 05:40 PM, Peter Maydell wrote:
> On 16 July 2012 16:35, Eric Blake <eblake@redhat.com> wrote:
>> On 07/15/2012 07:54 AM, Stefan Weil wrote:
>>> Since commit 417c9d72d48275d19c60861896efd4962d21aca2 all configure tests
>>> normally run with -Werror. Some of these tests now fail because they
>>> raised a compiler warning.
>> Nothing wrong with this patch, per se, but in the Autoconf world, the
>> general advice is that programs should check whether -Werror is
>> supported, but then avoid using it for the entire remainder of the
>> configure script (that is, store the result of -Werror into a different
>> variable that gets added into the final CFLAGS at make time, but not
>> used during any of the rest of the configure time).  That's because it's
>> just too hard to avoid warnings-turned-into-errors for all possible
>> versions (including future releases) of gcc, so you are just too likely
>> to run into spurious changes in configurations when the next version of
>> gcc starts warning about something new if you try to run all your
>> configure tests with -Werror.
> Hmm, good point -- unlike the actual program compile, failures
> due to -Werror inside configure are silent and near-invisible.
> Maybe we should back out 417c9d72 ?

So how do we deal with the original problem then? The one where the 
build broke for me because the smartcard code got compiled in because 
configure didn't know that it would fail to compile with -Werror?


Alex

  reply	other threads:[~2012-07-16 17:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-15 13:54 [Qemu-devel] [PATCH] configure: Fix build with capabilities Stefan Weil
2012-07-16 15:35 ` Eric Blake
2012-07-16 15:40   ` Peter Maydell
2012-07-16 17:24     ` Alexander Graf [this message]
2012-07-16 18:28       ` Peter Maydell
2012-07-16 18:33         ` Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50044E56.8050408@suse.de \
    --to=agraf@suse.de \
    --cc=blauwirbel@gmail.com \
    --cc=eblake@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sw@weilnetz.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).