* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
@ 2013-11-05 19:09 Peter Maydell
2013-11-05 19:31 ` Andreas Färber
0 siblings, 1 reply; 16+ messages in thread
From: Peter Maydell @ 2013-11-05 19:09 UTC (permalink / raw)
To: Andreas Färber
Cc: Ken Moffat, QEMU Developers, Anthony Liguori, Patch Tracking
On 5 November 2013 18:45, Andreas Färber <afaerber@suse.de> wrote:
> Am 05.11.2013 19:04, schrieb Peter Maydell:
>> Ping!
>
> A typo in the commit message has been reported
What typo? Alex sent a reply claiming that there was
a missing space in the subject but that appears to be
entirely his email client's problem, since as you can
see from this mail and also in Linaro's patchwork
http://patches.linaro.org/21203/ there is a space there.
(I would link to the qemu patchwork but it seems to
be down right now.)
>, and it has been
> requested to add Cc: qemu-stable@nongnu.org.
I don't think there's any need to respin a patch
just because somebody thinks it might be worth
applying to stable.
-- PMM
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-11-05 19:09 [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0 Peter Maydell
@ 2013-11-05 19:31 ` Andreas Färber
2013-11-05 19:36 ` Peter Maydell
0 siblings, 1 reply; 16+ messages in thread
From: Andreas Färber @ 2013-11-05 19:31 UTC (permalink / raw)
To: Peter Maydell; +Cc: Ken Moffat, qemu-devel, Anthony Liguori, patches@linaro.org
Am 05.11.2013 20:09, schrieb Peter Maydell:
> On 5 November 2013 18:45, Andreas Färber <afaerber@suse.de> wrote:
>> Am 05.11.2013 19:04, schrieb Peter Maydell:
>>> Ping!
>>
>> A typo in the commit message has been reported
>
> What typo? Alex sent a reply claiming that there was
> a missing space in the subject but that appears to be
> entirely his email client's problem, since as you can
> see from this mail and also in Linaro's patchwork
> http://patches.linaro.org/21203/ there is a space there.
> (I would link to the qemu patchwork but it seems to
> be down right now.)
Looks like you're right. You replying to his claim would've helped. ;)
>> , and it has been
>> requested to add Cc: qemu-stable@nongnu.org.
>
> I don't think there's any need to respin a patch
> just because somebody thinks it might be worth
> applying to stable.
Point is, if you are ping'ing Anthony to apply this with his
fully-automated patches tool, then he won't add the Cc and in turn it
will unlikely be backported to 1.6.2.
The response I got at QEMU Summit was that it is both the contributor's
and the submaintainer's responsibility to add the Cc to the commit
message. But maybe you're going to tell me that I misunderstood that as
well...
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-11-05 19:31 ` Andreas Färber
@ 2013-11-05 19:36 ` Peter Maydell
2013-12-04 0:33 ` Michael Roth
0 siblings, 1 reply; 16+ messages in thread
From: Peter Maydell @ 2013-11-05 19:36 UTC (permalink / raw)
To: Andreas Färber
Cc: Ken Moffat, qemu-devel, Anthony Liguori, patches@linaro.org
On 5 November 2013 19:31, Andreas Färber <afaerber@suse.de> wrote:
> Am 05.11.2013 20:09, schrieb Peter Maydell:
>> I don't think there's any need to respin a patch
>> just because somebody thinks it might be worth
>> applying to stable.
>
> Point is, if you are ping'ing Anthony to apply this with his
> fully-automated patches tool, then he won't add the Cc and in turn it
> will unlikely be backported to 1.6.2.
>
> The response I got at QEMU Summit was that it is both the contributor's
> and the submaintainer's responsibility to add the Cc to the commit
> message. But maybe you're going to tell me that I misunderstood that as
> well...
I don't remember what people said particularly, but I don't
think our process for stable should rely on patch submitters
having to add cc tags and resend stuff because that's a
lot of faff for something most people don't care about.
Whoever is maintaining stable ought IMHO to be making their
own judgements about whether a fix is worth backporting
based on their criteria for what kind of fix to put in
that branch.
-- PMM
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-11-05 19:36 ` Peter Maydell
@ 2013-12-04 0:33 ` Michael Roth
2013-12-04 0:38 ` Peter Maydell
0 siblings, 1 reply; 16+ messages in thread
From: Michael Roth @ 2013-12-04 0:33 UTC (permalink / raw)
To: Peter Maydell, Andreas Färber
Cc: patches@linaro.org, qemu-devel, Anthony Liguori, Ken Moffat
Quoting Peter Maydell (2013-11-05 13:36:57)
> On 5 November 2013 19:31, Andreas Färber <afaerber@suse.de> wrote:
> > Am 05.11.2013 20:09, schrieb Peter Maydell:
> >> I don't think there's any need to respin a patch
> >> just because somebody thinks it might be worth
> >> applying to stable.
> >
> > Point is, if you are ping'ing Anthony to apply this with his
> > fully-automated patches tool, then he won't add the Cc and in turn it
> > will unlikely be backported to 1.6.2.
> >
> > The response I got at QEMU Summit was that it is both the contributor's
> > and the submaintainer's responsibility to add the Cc to the commit
> > message. But maybe you're going to tell me that I misunderstood that as
> > well...
>
> I don't remember what people said particularly, but I don't
> think our process for stable should rely on patch submitters
> having to add cc tags and resend stuff because that's a
> lot of faff for something most people don't care about.
> Whoever is maintaining stable ought IMHO to be making their
> own judgements about whether a fix is worth backporting
> based on their criteria for what kind of fix to put in
> that branch.
I think the way to look at it is getting stuff applied is first priority,
but if it's missing Cc: qemu-stable all bets are off on whether or not it
gets pulled in for a stable release. Whether a contributor/maintainer cares
enough to ensure this prior to commit is their call.
That said, if it's CC'd *to* qemu-stable it'll generally get picked up.
Maybe in the future if we find ourselves needing to automate things more
that may not be the case though, so it's a good practice to adopt.
In any case, ping? :)
>
> -- PMM
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-12-04 0:33 ` Michael Roth
@ 2013-12-04 0:38 ` Peter Maydell
2013-12-04 1:43 ` Michael Roth
0 siblings, 1 reply; 16+ messages in thread
From: Peter Maydell @ 2013-12-04 0:38 UTC (permalink / raw)
To: Michael Roth
Cc: qemu-devel, patches@linaro.org, Andreas Färber,
Anthony Liguori, Ken Moffat
On 4 December 2013 00:33, Michael Roth <mdroth@linux.vnet.ibm.com> wrote:
> In any case, ping? :)
Who are you directing that ping at? This patch is commit 45d285abd7028 in
master (Paolo put it in his pull request for 1.7, and kindly humoured my
laziness by adding the CC: stable line in the process). If you intended to
ping qemu-stable@ maybe you should cc them :-)
thanks
-- PMM
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-12-04 0:38 ` Peter Maydell
@ 2013-12-04 1:43 ` Michael Roth
0 siblings, 0 replies; 16+ messages in thread
From: Michael Roth @ 2013-12-04 1:43 UTC (permalink / raw)
To: Peter Maydell
Cc: qemu-devel, patches@linaro.org, Andreas Färber,
Anthony Liguori, Ken Moffat
Quoting Peter Maydell (2013-12-03 18:38:54)
> On 4 December 2013 00:33, Michael Roth <mdroth@linux.vnet.ibm.com> wrote:
> > In any case, ping? :)
>
> Who are you directing that ping at? This patch is commit 45d285abd7028 in
> master (Paolo put it in his pull request for 1.7, and kindly humoured my
> laziness by adding the CC: stable line in the process). If you intended to
> ping qemu-stable@ maybe you should cc them :-)
Argh, I see it now... too much irony going on here, I'm just gonna step away
slowly and pretend this didn't happen...
>
> thanks
> -- PMM
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
@ 2013-10-21 20:03 Peter Maydell
2013-10-22 8:24 ` Peter Maydell
2013-11-05 18:04 ` Peter Maydell
0 siblings, 2 replies; 16+ messages in thread
From: Peter Maydell @ 2013-10-21 20:03 UTC (permalink / raw)
To: qemu-devel; +Cc: Ken Moffat, Anthony Liguori, patches
Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be
explicitly specifying everything and not relying on any default
variables or rules. However we were accidentally relying on the
default ARFLAGS ("rv"). This went unnoticed because of a bug in
GNU Make 3.82 and earlier which meant that adding -rR to MAKEFLAGS
only affected submakes, not the currently running instance.
Explicitly set ARFLAGS in config-host.mak, in the same way we
handle CFLAGS and LDFLAGS; this will allow us to work with
Make 4.0.
Thanks to Paul Smith for analyzing this bug for us.
Reported-by: Ken Moffat <zarniwhoop@ntlworld.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
Ken: I think this should work (and it doesn't break building with
old makes), but I don't have a make 4.0 to hand; if you could
test it I'd appreciate it.
configure | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure b/configure
index 57ee62a..4eb3a07 100755
--- a/configure
+++ b/configure
@@ -308,6 +308,9 @@ query_pkg_config() {
pkg_config=query_pkg_config
sdl_config="${SDL_CONFIG-${cross_prefix}sdl-config}"
+# If the user hasn't specified ARFLAGS, default to 'rv', just as make does.
+ARFLAGS="${ARFLAGS-rv}"
+
# default flags for all hosts
QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"
QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
@@ -3664,6 +3667,7 @@ echo "C compiler $cc"
echo "Host C compiler $host_cc"
echo "C++ compiler $cxx"
echo "Objective-C compiler $objcc"
+echo "ARFLAGS $ARFLAGS"
echo "CFLAGS $CFLAGS"
echo "QEMU_CFLAGS $QEMU_CFLAGS"
echo "LDFLAGS $LDFLAGS"
@@ -4239,6 +4243,7 @@ echo "HOST_CC=$host_cc" >> $config_host_mak
echo "CXX=$cxx" >> $config_host_mak
echo "OBJCC=$objcc" >> $config_host_mak
echo "AR=$ar" >> $config_host_mak
+echo "ARFLAGS=$ARFLAGS" >> $config_host_mak
echo "AS=$as" >> $config_host_mak
echo "CPP=$cpp" >> $config_host_mak
echo "OBJCOPY=$objcopy" >> $config_host_mak
--
1.7.11.4
^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-10-21 20:03 Peter Maydell
@ 2013-10-22 8:24 ` Peter Maydell
2013-10-22 17:35 ` Ken Moffat
2013-10-23 7:54 ` Paolo Bonzini
2013-11-05 18:04 ` Peter Maydell
1 sibling, 2 replies; 16+ messages in thread
From: Peter Maydell @ 2013-10-22 8:24 UTC (permalink / raw)
To: QEMU Developers; +Cc: Patch Tracking, Anthony Liguori, Ken Moffat
On 21 October 2013 21:03, Peter Maydell <peter.maydell@linaro.org> wrote:
> Ken: I think this should work (and it doesn't break building with
> old makes), but I don't have a make 4.0 to hand; if you could
> test it I'd appreciate it.
Forwarding a message from Ken (whose mail client is apparently
not very good :-):
Ken wrote:
# I applied it to 1.6.1 - some fuzz and large offsets, but it
# completed the default build (i.e. just ./configure so all targets)
# and also a DESTDIR install.
Ken -- any chance you could test git master? I think it would
be more interesting to make sure that 1.7 works with Make 4.0:
I don't know if anybody will care enough to backport this patch
to 1.6.x.
thanks
-- PMM
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-10-22 8:24 ` Peter Maydell
@ 2013-10-22 17:35 ` Ken Moffat
2013-10-22 18:09 ` Ken Moffat
2013-10-22 18:10 ` Peter Maydell
2013-10-23 7:54 ` Paolo Bonzini
1 sibling, 2 replies; 16+ messages in thread
From: Ken Moffat @ 2013-10-22 17:35 UTC (permalink / raw)
To: Peter Maydell; +Cc: QEMU Developers, Anthony Liguori, Patch Tracking
On Tue, Oct 22, 2013 at 09:24:46AM +0100, Peter Maydell wrote:
> On 21 October 2013 21:03, Peter Maydell <peter.maydell@linaro.org> wrote:
> > Ken: I think this should work (and it doesn't break building with
> > old makes), but I don't have a make 4.0 to hand; if you could
> > test it I'd appreciate it.
>
> Forwarding a message from Ken (whose mail client is apparently
> not very good :-):
>
No, it was operator error - I somehow fell into editing the
original mail (didn't even know that was an option for received
mails) and trashed the header. Anyway.
> Ken wrote:
> # I applied it to 1.6.1 - some fuzz and large offsets, but it
> # completed the default build (i.e. just ./configure so all targets)
> # and also a DESTDIR install.
>
> Ken -- any chance you could test git master? I think it would
> be more interesting to make sure that 1.7 works with Make 4.0:
> I don't know if anybody will care enough to backport this patch
> to 1.6.x.
>
> thanks
> -- PMM
Not sure how to. I cloned git://git.qemu.org/qemu.git which was at
commit fc8ead74674b7129e8f31c2595c76658e5622197
Merge: 3551643 7174e54
Author: Anthony Liguori <aliguori@amazon.com>
Date: Fri Oct 18 10:03:24 2013 -0700
Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
Copied the non-dotfiles (cp -av *), applied the patch, got a
message from configure:
ERROR: DTC not present. Your options:
(1) Preferred: Install the DTC devel package
(2) Fetch the DTC submodule, using:
git submodule update --init dtc
So I went back to git, did the submodule update and copied afresh,
applied the patch, and still got the same error.
ĸen
--
das eine Mal als Tragödie, dieses Mal als Farce
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-10-22 17:35 ` Ken Moffat
@ 2013-10-22 18:09 ` Ken Moffat
2013-10-22 18:52 ` Ken Moffat
2013-10-22 18:10 ` Peter Maydell
1 sibling, 1 reply; 16+ messages in thread
From: Ken Moffat @ 2013-10-22 18:09 UTC (permalink / raw)
To: Peter Maydell; +Cc: QEMU Developers, Anthony Liguori, Patch Tracking
On Tue, Oct 22, 2013 at 06:35:47PM +0100, Ken Moffat wrote:
> >
> > Ken -- any chance you could test git master? I think it would
> > be more interesting to make sure that 1.7 works with Make 4.0:
> > I don't know if anybody will care enough to backport this patch
> > to 1.6.x.
> >
> > thanks
> > -- PMM
>
> Not sure how to.
Scratch that, user error.
ĸen
--
das eine Mal als Tragödie, dieses Mal als Farce
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-10-22 18:09 ` Ken Moffat
@ 2013-10-22 18:52 ` Ken Moffat
0 siblings, 0 replies; 16+ messages in thread
From: Ken Moffat @ 2013-10-22 18:52 UTC (permalink / raw)
To: Peter Maydell; +Cc: QEMU Developers, Anthony Liguori, Patch Tracking
On Tue, Oct 22, 2013 at 07:09:10PM +0100, Ken Moffat wrote:
> On Tue, Oct 22, 2013 at 06:35:47PM +0100, Ken Moffat wrote:
> > >
> > > Ken -- any chance you could test git master? I think it would
> > > be more interesting to make sure that 1.7 works with Make 4.0:
> > > I don't know if anybody will care enough to backport this patch
> > > to 1.6.x.
> > >
> > > thanks
> > > -- PMM
> >
> > Not sure how to.
> Scratch that, user error.
>
Built and DESTDIR installed with the default targets using make-4.0
ĸen
--
das eine Mal als Tragödie, dieses Mal als Farce
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-10-22 17:35 ` Ken Moffat
2013-10-22 18:09 ` Ken Moffat
@ 2013-10-22 18:10 ` Peter Maydell
2013-10-22 18:19 ` Ken Moffat
1 sibling, 1 reply; 16+ messages in thread
From: Peter Maydell @ 2013-10-22 18:10 UTC (permalink / raw)
To: Ken Moffat; +Cc: QEMU Developers, Anthony Liguori, Patch Tracking
On 22 October 2013 18:35, Ken Moffat <zarniwhoop@ntlworld.com> wrote:
> On Tue, Oct 22, 2013 at 09:24:46AM +0100, Peter Maydell wrote:
>> Forwarding a message from Ken (whose mail client is apparently
>> not very good :-):
>>
> No, it was operator error - I somehow fell into editing the
> original mail (didn't even know that was an option for received
> mails) and trashed the header. Anyway.
...you also managed to send to the Envelope-from, not the From.
> Not sure how to. I cloned git://git.qemu.org/qemu.git which was at
> commit fc8ead74674b7129e8f31c2595c76658e5622197
> Merge: 3551643 7174e54
> Author: Anthony Liguori <aliguori@amazon.com>
> Date: Fri Oct 18 10:03:24 2013 -0700
>
> Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
>
> Copied the non-dotfiles (cp -av *), applied the patch, got a
> message from configure:
>
> ERROR: DTC not present. Your options:
> (1) Preferred: Install the DTC devel package
> (2) Fetch the DTC submodule, using:
> git submodule update --init dtc
>
> So I went back to git, did the submodule update and copied afresh,
> applied the patch, and still got the same error.
I'm not sure what you're trying to achieve with the copy, but
it seems likely to cause problems. Just do a build from the
git tree. If you don't want to put object files in your git tree,
this is what out-of-tree build is for: cd into the directory you
want to put the object files in, and run the configure script
from there:
mkdir ../build
cd ../build
../qemu.git/configure [usual configure options etc]
thanks
-- PMM
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-10-22 18:10 ` Peter Maydell
@ 2013-10-22 18:19 ` Ken Moffat
0 siblings, 0 replies; 16+ messages in thread
From: Ken Moffat @ 2013-10-22 18:19 UTC (permalink / raw)
To: Peter Maydell; +Cc: QEMU Developers, Anthony Liguori, Patch Tracking
On Tue, Oct 22, 2013 at 07:10:43PM +0100, Peter Maydell wrote:
> On 22 October 2013 18:35, Ken Moffat <zarniwhoop@ntlworld.com> wrote:
> > On Tue, Oct 22, 2013 at 09:24:46AM +0100, Peter Maydell wrote:
> >> Forwarding a message from Ken (whose mail client is apparently
> >> not very good :-):
> >>
> > No, it was operator error - I somehow fell into editing the
> > original mail (didn't even know that was an option for received
> > mails) and trashed the header. Anyway.
>
> ...you also managed to send to the Envelope-from, not the From.
>
> > Not sure how to. I cloned git://git.qemu.org/qemu.git which was at
> > commit fc8ead74674b7129e8f31c2595c76658e5622197
> > Merge: 3551643 7174e54
> > Author: Anthony Liguori <aliguori@amazon.com>
> > Date: Fri Oct 18 10:03:24 2013 -0700
> >
> > Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
> >
> > Copied the non-dotfiles (cp -av *), applied the patch, got a
> > message from configure:
> >
> > ERROR: DTC not present. Your options:
> > (1) Preferred: Install the DTC devel package
> > (2) Fetch the DTC submodule, using:
> > git submodule update --init dtc
> >
> > So I went back to git, did the submodule update and copied afresh,
> > applied the patch, and still got the same error.
>
> I'm not sure what you're trying to achieve with the copy, but
> it seems likely to cause problems. Just do a build from the
> git tree. If you don't want to put object files in your git tree,
> this is what out-of-tree build is for: cd into the directory you
> want to put the object files in, and run the configure script
> from there:
> mkdir ../build
> cd ../build
> ../qemu.git/configure [usual configure options etc]
>
> thanks
> -- PMM
Thanks for that info.
ĸen
--
das eine Mal als Tragödie, dieses Mal als Farce
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-10-22 8:24 ` Peter Maydell
2013-10-22 17:35 ` Ken Moffat
@ 2013-10-23 7:54 ` Paolo Bonzini
1 sibling, 0 replies; 16+ messages in thread
From: Paolo Bonzini @ 2013-10-23 7:54 UTC (permalink / raw)
To: Peter Maydell
Cc: 1.6.x, Ken Moffat, QEMU Developers, Anthony Liguori,
Patch Tracking
Il 22/10/2013 09:24, Peter Maydell ha scritto:
>
> Ken -- any chance you could test git master? I think it would
> be more interesting to make sure that 1.7 works with Make 4.0:
> I don't know if anybody will care enough to backport this patch
> to 1.6.x.
Cc: qemu-stable@nongnu.org
Mike Roth now will. :)
Paolo
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-10-21 20:03 Peter Maydell
2013-10-22 8:24 ` Peter Maydell
@ 2013-11-05 18:04 ` Peter Maydell
2013-11-05 18:45 ` Andreas Färber
1 sibling, 1 reply; 16+ messages in thread
From: Peter Maydell @ 2013-11-05 18:04 UTC (permalink / raw)
To: QEMU Developers; +Cc: Patch Tracking, Anthony Liguori, Ken Moffat
Ping!
thanks
-- PMM
On 21 October 2013 21:03, Peter Maydell <peter.maydell@linaro.org> wrote:
> Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be
> explicitly specifying everything and not relying on any default
> variables or rules. However we were accidentally relying on the
> default ARFLAGS ("rv"). This went unnoticed because of a bug in
> GNU Make 3.82 and earlier which meant that adding -rR to MAKEFLAGS
> only affected submakes, not the currently running instance.
> Explicitly set ARFLAGS in config-host.mak, in the same way we
> handle CFLAGS and LDFLAGS; this will allow us to work with
> Make 4.0.
>
> Thanks to Paul Smith for analyzing this bug for us.
>
> Reported-by: Ken Moffat <zarniwhoop@ntlworld.com>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> Ken: I think this should work (and it doesn't break building with
> old makes), but I don't have a make 4.0 to hand; if you could
> test it I'd appreciate it.
>
> configure | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/configure b/configure
> index 57ee62a..4eb3a07 100755
> --- a/configure
> +++ b/configure
> @@ -308,6 +308,9 @@ query_pkg_config() {
> pkg_config=query_pkg_config
> sdl_config="${SDL_CONFIG-${cross_prefix}sdl-config}"
>
> +# If the user hasn't specified ARFLAGS, default to 'rv', just as make does.
> +ARFLAGS="${ARFLAGS-rv}"
> +
> # default flags for all hosts
> QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"
> QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
> @@ -3664,6 +3667,7 @@ echo "C compiler $cc"
> echo "Host C compiler $host_cc"
> echo "C++ compiler $cxx"
> echo "Objective-C compiler $objcc"
> +echo "ARFLAGS $ARFLAGS"
> echo "CFLAGS $CFLAGS"
> echo "QEMU_CFLAGS $QEMU_CFLAGS"
> echo "LDFLAGS $LDFLAGS"
> @@ -4239,6 +4243,7 @@ echo "HOST_CC=$host_cc" >> $config_host_mak
> echo "CXX=$cxx" >> $config_host_mak
> echo "OBJCC=$objcc" >> $config_host_mak
> echo "AR=$ar" >> $config_host_mak
> +echo "ARFLAGS=$ARFLAGS" >> $config_host_mak
> echo "AS=$as" >> $config_host_mak
> echo "CPP=$cpp" >> $config_host_mak
> echo "OBJCOPY=$objcopy" >> $config_host_mak
> --
> 1.7.11.4
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0
2013-11-05 18:04 ` Peter Maydell
@ 2013-11-05 18:45 ` Andreas Färber
0 siblings, 0 replies; 16+ messages in thread
From: Andreas Färber @ 2013-11-05 18:45 UTC (permalink / raw)
To: Peter Maydell, QEMU Developers
Cc: Ken Moffat, Anthony Liguori, Patch Tracking
Am 05.11.2013 19:04, schrieb Peter Maydell:
> Ping!
A typo in the commit message has been reported, and it has been
requested to add Cc: qemu-stable@nongnu.org. Since you neither CC
qemu-trivial nor a particular maintainer that would fix those for you,
you'll have to respin.
Andreas
>
> thanks
> -- PMM
>
> On 21 October 2013 21:03, Peter Maydell <peter.maydell@linaro.org> wrote:
>> Our rules.mak adds '-rR' to MAKEFLAGS to indicate that we will be
>> explicitly specifying everything and not relying on any default
>> variables or rules. However we were accidentally relying on the
>> default ARFLAGS ("rv"). This went unnoticed because of a bug in
>> GNU Make 3.82 and earlier which meant that adding -rR to MAKEFLAGS
>> only affected submakes, not the currently running instance.
>> Explicitly set ARFLAGS in config-host.mak, in the same way we
>> handle CFLAGS and LDFLAGS; this will allow us to work with
>> Make 4.0.
>>
>> Thanks to Paul Smith for analyzing this bug for us.
>>
>> Reported-by: Ken Moffat <zarniwhoop@ntlworld.com>
>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>> ---
>> Ken: I think this should work (and it doesn't break building with
>> old makes), but I don't have a make 4.0 to hand; if you could
>> test it I'd appreciate it.
>>
>> configure | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/configure b/configure
>> index 57ee62a..4eb3a07 100755
>> --- a/configure
>> +++ b/configure
>> @@ -308,6 +308,9 @@ query_pkg_config() {
>> pkg_config=query_pkg_config
>> sdl_config="${SDL_CONFIG-${cross_prefix}sdl-config}"
>>
>> +# If the user hasn't specified ARFLAGS, default to 'rv', just as make does.
>> +ARFLAGS="${ARFLAGS-rv}"
>> +
>> # default flags for all hosts
>> QEMU_CFLAGS="-fno-strict-aliasing $QEMU_CFLAGS"
>> QEMU_CFLAGS="-Wall -Wundef -Wwrite-strings -Wmissing-prototypes $QEMU_CFLAGS"
>> @@ -3664,6 +3667,7 @@ echo "C compiler $cc"
>> echo "Host C compiler $host_cc"
>> echo "C++ compiler $cxx"
>> echo "Objective-C compiler $objcc"
>> +echo "ARFLAGS $ARFLAGS"
>> echo "CFLAGS $CFLAGS"
>> echo "QEMU_CFLAGS $QEMU_CFLAGS"
>> echo "LDFLAGS $LDFLAGS"
>> @@ -4239,6 +4243,7 @@ echo "HOST_CC=$host_cc" >> $config_host_mak
>> echo "CXX=$cxx" >> $config_host_mak
>> echo "OBJCC=$objcc" >> $config_host_mak
>> echo "AR=$ar" >> $config_host_mak
>> +echo "ARFLAGS=$ARFLAGS" >> $config_host_mak
>> echo "AS=$as" >> $config_host_mak
>> echo "CPP=$cpp" >> $config_host_mak
>> echo "OBJCOPY=$objcopy" >> $config_host_mak
>> --
>> 1.7.11.4
>
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2013-12-04 1:44 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-05 19:09 [Qemu-devel] [PATCH for-1.7] configure: Explicitly set ARFLAGS so we can build with GNU Make 4.0 Peter Maydell
2013-11-05 19:31 ` Andreas Färber
2013-11-05 19:36 ` Peter Maydell
2013-12-04 0:33 ` Michael Roth
2013-12-04 0:38 ` Peter Maydell
2013-12-04 1:43 ` Michael Roth
-- strict thread matches above, loose matches on Subject: below --
2013-10-21 20:03 Peter Maydell
2013-10-22 8:24 ` Peter Maydell
2013-10-22 17:35 ` Ken Moffat
2013-10-22 18:09 ` Ken Moffat
2013-10-22 18:52 ` Ken Moffat
2013-10-22 18:10 ` Peter Maydell
2013-10-22 18:19 ` Ken Moffat
2013-10-23 7:54 ` Paolo Bonzini
2013-11-05 18:04 ` Peter Maydell
2013-11-05 18:45 ` Andreas Färber
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).