qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Farman <farman@linux.vnet.ibm.com>
To: Thomas Huth <thuth@redhat.com>, Cornelia Huck <cohuck@redhat.com>
Cc: borntraeger@de.ibm.com, agraf@suse.de, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH for-2.10 0/1] Fix "make clean" for s390 target
Date: Tue, 15 Aug 2017 06:27:48 -0400	[thread overview]
Message-ID: <4c48cf30-0f40-80c0-66c6-ae546b251c4e@linux.vnet.ibm.com> (raw)
In-Reply-To: <86e21c68-93ee-0311-643d-dde2c8589eea@redhat.com>



On 08/15/2017 04:26 AM, Thomas Huth wrote:
> On 15.08.2017 10:01, Thomas Huth wrote:
>> On 15.08.2017 09:03, Cornelia Huck wrote:
>>> On Tue, 15 Aug 2017 07:02:10 +0200
>>> Thomas Huth <thuth@redhat.com> wrote:
>>>
>>>> On 14.08.2017 22:44, Eric Farman wrote:
>>>>> How often does one really do a "make clean" ?  Rather infrequently,
>>>>> as I only stumbled on this today.
>>>>>
>>>>> Perhaps I have missed the RM variable somewhere, as I see similar syntax
>>>>> in some of the tests/tcg/ Makefiles, but I don't see it being set here.
>>>>> My configure statement isn't terribly interesting, just enabling debug
>>>>> for an s390x target, and as such there's no RM variable in its output.
>>>>> I'll trust that Thomas will chime in with where it should have been.
>>>>> In the meantime, this does the trick for me.
>>>>
>>>> RM is one of the variables that should be pre-initialized by Make, and
>>>> AFAIK should be used to increase portability (well, it's likely not
>>>> important for QEMU since we require a posix-shell like built environment
>>>> anyway).
>>>>
>>>> According to the info page of Make, chapter "10.3 Variables Used by
>>>> Implicit Rules":
>>>>
>>>> `RM'
>>>>       Command to remove a file; default `rm -f'.
>>>>
>>>> I've also checked it again and "make clean" works fine here (using GNU
>>>> Make 3.82). Which version of Make (and Linux distro) are you using?

Not that it matters now, but make 4.1 on F24

>>>
>>> Interesting. It fails for me with GNU Make 3.82 on my RHEL guest as
>>> well.
>>>
>>>> Anyway, maybe I also simply missed something, so I'm certainly also fine
>>>> with the patch to revert it to "rm -f".
>>>
>>> Given that other bios makefiles use rm -f as well, let's just change
>>> back until we figure out what's wrong.
>>
>> I just discovered that it fails for me as well when I do "make clean"
>> from the top directory. So far I was only doing "make clean" after doing
>> a "cd pc-bios/s390-ccw" first, and that works fine. Weird. Something
>> seems to unset the RM variable in our build system, but I fail to find
>> the spot where this happens...
> 
> Ok, just found it: It's this line in rules.mak:
> 
> MAKEFLAGS += -rR
> 
> The parameter -R disables the built-in variables, so RM can indeed not
> work here. Sorry, I wasn't aware of that setting yet, so your patch is
> indeed the right fix here (or we should maybe define RM in rules.mak, too).

Excellent find, Thomas!  I was not aware of that either.  Thanks to both 
you and Cornelia for this.

  - Eric

  parent reply	other threads:[~2017-08-15 10:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-14 20:44 [Qemu-devel] [PATCH for-2.10 0/1] Fix "make clean" for s390 target Eric Farman
2017-08-14 20:44 ` [Qemu-devel] [PATCH 1/1] pc-bios/s390-ccw: Use rm command during make clean Eric Farman
2017-08-15  7:23   ` Cornelia Huck
2017-08-15  5:02 ` [Qemu-devel] [PATCH for-2.10 0/1] Fix "make clean" for s390 target Thomas Huth
2017-08-15  7:03   ` Cornelia Huck
2017-08-15  8:01     ` Thomas Huth
2017-08-15  8:26       ` Thomas Huth
2017-08-15  8:32         ` Cornelia Huck
2017-08-15  8:39           ` Thomas Huth
2017-08-15 10:27         ` Eric Farman [this message]
2017-08-15 10:00 ` Peter Maydell
2017-08-15 11:07   ` Cornelia Huck
2017-08-15 11:10     ` Peter Maydell

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=4c48cf30-0f40-80c0-66c6-ae546b251c4e@linux.vnet.ibm.com \
    --to=farman@linux.vnet.ibm.com \
    --cc=agraf@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /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).