From mboxrd@z Thu Jan 1 00:00:00 1970 From: M A Young Subject: Re: Build problems with xen 4.7 Date: Tue, 1 Dec 2015 14:49:47 +0000 (GMT) Message-ID: References: <565DAC7402000078000BACE9@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <565DAC7402000078000BACE9@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 1 Dec 2015, Jan Beulich wrote: > >>> On 01.12.15 at 00:37, wrote: > > When I try to build the current xen 4.7 master I get the following error > > > > :0:0: error: "__OBJECT_FILE__" redefined [-Werror] > > :0:0: note: this is the location of the previous definition > > cc1: all warnings being treated as errors > > > > The problem seems to be that -D__OBJECT_FILE__= is set each time > > xen/Rules.mk is called, which happens more than once because of nested > > makes resulting in multiple diffent values for -D__OBJECT_FILE__= > > Considering you're the first one to have such a problem, I think the > precise compiler version you use matters here. Also the redundant > definitions shouldn't be different, and identical re-definition should > not yield a diagnostic. So I think there's a little more data you need > to supply in order to determine whether we need to adjust something. This is just with Fedora's gcc-5.1.1-4.fc23.x86_64 with the standard package build options, including -Werror . The values of -D__OBJECT_FILE__= really are different, with (from memory) the first being the absolute path to the /xen subdirectory of the unpacked xen-4.7 source and the second a relative path to the file being complied from there. Michael Young