qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Victor Kaplansky <vkaplans@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	qemu-devel@nongnu.org, Eduardo Habkost <ehabkost@redhat.com>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH] make: explicit dependencies for ACPI gen sources
Date: Wed, 5 Aug 2015 10:28:49 -0400 (EDT)	[thread overview]
Message-ID: <1105234178.2053547.1438784929867.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20150805165840-mutt-send-email-mst@redhat.com>


> ----- Original Message -----
> From: "Michael S. Tsirkin" <mst@redhat.com>
> To: "Paolo Bonzini" <pbonzini@redhat.com>
> Cc: "Victor Kaplansky" <victork@redhat.com>, qemu-devel@nongnu.org, "Richard Henderson" <rth@twiddle.net>, "Eduardo Habkost" <ehabkost@redhat.com>
> Sent: Wednesday, August 5, 2015 4:59:56 PM
> Subject: Re: [PATCH] make: explicit dependencies for ACPI gen sources
> 
> On Wed, Aug 05, 2015 at 11:50:54AM +0200, Paolo Bonzini wrote:
> > 
> > 
> > On 04/08/2015 18:21, Victor Kaplansky wrote:
> > > Rebuilding QEMU after switching versions from git can cause make failure
> > > if IASL is enabled. This is caused by including stale *.d info from
> > > previous build.
> > > 
> > > To prevent this in the future we generate dependency info for generated
> > > ACPI sources in *.dep instead regular *.d and include them explicitly.
> > > This will allow us not to break future builds when one of such generated
> > > sources is removed - by removing explicit include of removed dependency.
> > > 
> > > By itself this doesn't fix broken builds from the past and this will be
> > > done by the following patch.
> > 
> > Does this happen the same way if you are removing a .c file?  If not,
> > can the same solution be used for .c and .dsl files?
> > 
> > Paolo
> 
> The problem is with .hex, not with .dsl files.
> It will happen with .c or .h file as well if .c/.h file is generated.

Right, if a foo.c is generated and has its own includes like foo.h, our rules
will automatically create dependency file foo.d:

foo.c: foo.h

foo.h

After you switch to a later commit which has removed foo.c (and all its 
sources), foo.d will be still there in the build tree and as we load all *.d 
files, foo.d will be loaded as well and this will break the build. It is
because foo.c has prerequisites, so make has to recreate it.  

I'm preparing another patch which will clean up the things, and will solve
the issue both for future commits and between old commits and new commits.
Switching between old commits will remain broken though.

-- Victor

      reply	other threads:[~2015-08-05 14:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-04 16:21 [Qemu-devel] [PATCH] make: explicit dependencies for ACPI gen sources Victor Kaplansky
2015-08-04 20:34 ` Michael S. Tsirkin
2015-08-04 21:21 ` Peter Maydell
2015-08-04 21:29 ` Michael S. Tsirkin
2015-08-05  9:50 ` Paolo Bonzini
2015-08-05 13:59   ` Michael S. Tsirkin
2015-08-05 14:28     ` Victor Kaplansky [this message]

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=1105234178.2053547.1438784929867.JavaMail.zimbra@redhat.com \
    --to=vkaplans@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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).