From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: Re: [Qemu-devel] [kvm-unit-tests PATCH 2/2] arm/arm64 config: Fix arch_clean rule Date: Fri, 4 Sep 2015 16:05:28 +0200 Message-ID: <20150904140528.GH3096@hawk.localdomain> References: <1441185926-61587-1-git-send-email-a.spyridakis@virtualopensystems.com> <1441185926-61587-3-git-send-email-a.spyridakis@virtualopensystems.com> <20150904104835.GC3096@hawk.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: mttcg@greensocs.com, KVM General , Claudio Fontana , Mark Burton , QEMU Developers , Alvise Rigo , Jani Kokkonen , Alex =?iso-8859-1?Q?Benn=E9e?= , KONRAD =?iso-8859-1?Q?Fr=E9d=E9ric?= To: Alexander Spyridakis Return-path: Received: from mx1.redhat.com ([209.132.183.28]:52376 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752295AbbIDOFe (ORCPT ); Fri, 4 Sep 2015 10:05:34 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Sep 04, 2015 at 03:48:35PM +0200, Alexander Spyridakis wrote: > On 4 September 2015 at 12:48, Andrew Jones wrote: > > Are you also running configure (with the opposite arch selected) after > > 'make clean'? If not, then that could be the source of your problems. > > Anyway, please describe the issues you're seeing because I don't see > > what this patch is doing that isn't already being done. The lines this > > patch adds are already there. See the arm_clean target in > > config/config-arm-common.mak. > > Steps to reproduce my issue: > > ./configure --arch=arm --cross-prefix=arm-linux-gnueabihf- > > make > > ./configure --arch=arm64 --cross-prefix=aarch64-linux-gnu- > > make clean && make > > arm/selftest.o: error adding symbols: File in wrong format This doesn't reproduce for me. I did the following, and it worked fine. make distclean ./configure --arch=arm --cross-prefix=arm-linux-gnu- make ./configure --arch=arm64 --cross-prefix=aarch64-linux-gnu- make clean && make But anyway I would suggest you do your 'make clean' or even a 'make distclean' *before* running configure the second time. Otherwise you'll leave old object files around from the previously configured arch. I.e. you want 'make clean' to apply to the currently built config, not the new (not yet built) config. drew > > I would expect that after 'make clean', the object and binary files > are removed. Instead they are not and I have to manually remove them > before rebuilding. Running 'make clean' before and/or after > reconfiguring still produces the same issue for me. > > Thanks. > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html