From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf6cf-000425-2P for qemu-devel@nongnu.org; Wed, 22 May 2013 06:50:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uf6cc-0005RW-4n for qemu-devel@nongnu.org; Wed, 22 May 2013 06:50:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uf6cb-0005RP-RG for qemu-devel@nongnu.org; Wed, 22 May 2013 06:50:18 -0400 Date: Wed, 22 May 2013 13:50:34 +0300 From: "Michael S. Tsirkin" Message-ID: <20130522105034.GA5643@redhat.com> References: <20130521220917.GA803@redhat.com> <87obc34fy3.fsf@blackfin.pond.sub.org> <20130522083732.GD7993@redhat.com> <519C8541.6060605@redhat.com> <20130522085219.GF7993@redhat.com> <519C8E6C.3000107@redhat.com> <20130522094210.GA24931@redhat.com> <519CA097.5000804@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <519CA097.5000804@redhat.com> Subject: Re: [Qemu-devel] [PATCH] makefile: detect corrupted elf files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Anthony Liguori , qemu-devel@nongnu.org, Markus Armbruster , Luiz Capitulino , Blue Swirl On Wed, May 22, 2013 at 12:40:23PM +0200, Paolo Bonzini wrote: > Il 22/05/2013 11:42, Michael S. Tsirkin ha scritto: > > On Wed, May 22, 2013 at 11:22:52AM +0200, Paolo Bonzini wrote: > >> Il 22/05/2013 10:52, Michael S. Tsirkin ha scritto: > >>> The fix is simple here: don't use ccache. I don't. > >>> > >>> In fact, from what I saw people use ccache to work around makefile bugs, > >>> so they can do make clean; make and have it finish quickly. > >>> > >>> Any other examples? > >> > >> Testing configure patches should be done (also) from a clean build > >> directory, for example. > >> > >> Paolo > > > > In fact, relying on make clean for testing the build > > system is a mistake. It's easy for it to forget to > > remove some temporary file. You really should do > > a clean clone. > > Yes, I use a clean clone (and a clean build directory for each patch), > _hence_ ccache helps reducing test times. > > Paolo I see, this workflow is the exact reverse of mine: I do as much as possible in a single tree so I rely on the makefile dependencies to be correct to rebuild the right things. You don't need so many dependencies: just enough to pull the right bits from the cache. I can see how any patches correcting in-place rebuilds won't scratch any of your itches. -- MST