From: Ian Campbell Subject: Re: arm64: error: PSR_MODE_EL3t redefined Date: Sat, 1 Feb 2014 17:25:08 +0000 Message-ID: <1391275508.15093.16.camel@hastur.hellion.org.uk> References: <20140201161513.GA13789@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140201161513.GA13789@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Sat, 2014-02-01 at 17:15 +0100, Olaf Hering wrote: > I'm seeing build failures on aarch64 during 'make tools' because both > arch/arm64/include/uapi/asm/ptrace.h from the kernel source and > xen/include/public/arch-arm.h from xen-4.4 define PSR_MODE_EL3t with > sightly different strings. > > I think the if defined (__XEN_TOOLS__) should be removed from > xen/include/public/arch-arm.h so that userland tools can pickup the > defines from /usr/include. Untested patch below. IMHO this is a glibc bug -- see https://bugs.launchpad.net/linaro-aarch64/+bug/1169164 Ian. > > Olaf > > diff --git a/xen/include/public/arch-arm.h b/xen/include/public/arch-arm.h > index 7496556..17422e6 100644 > --- a/xen/include/public/arch-arm.h > +++ b/xen/include/public/arch-arm.h > @@ -316,7 +316,7 @@ typedef uint64_t xen_callback_t; > > #endif > > -#if defined(__XEN__) || defined(__XEN_TOOLS__) > +#if defined(__XEN__) > > /* PSR bits (CPSR, SPSR)*/ > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel