Skip to contentSkip to conversation

arm64: error: PSR_MODE_EL3t redefined

PATCH Olaf Hering 2 participants 6 messages Feb 1, 2014 – Feb 3, 2014

lore
Share & tools
lore
#0 lore raw

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.

Olaf

xen/include/public/arch-arm.h +1 -1
index 7496556..17422e6 100644
@@ -316,7 +316,7 @@ typedef uint64_t xen_callback_t;
 
 #endif
 
-#if defined(__XEN__) || defined(__XEN_TOOLS__)
+#if defined(__XEN__)
 
 /* PSR bits (CPSR, SPSR)*/
#1 lore raw
Quoted 8 lines · Olaf Hering

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.

Quoted 21 lines

Olaf

xen/include/public/arch-arm.h +1 -1
index 7496556..17422e6 100644
@@ -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
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 6 lines · Olaf Hering
Quoted 1 line · Ian Campbell

https://bugs.launchpad.net/linaro-aarch64/+bug/1169164

Is this on anyones radar actually? That bug is almost a year old, its still broken with a snapshot as of 7 Jan 2014.

Yeah, I've been meaning to ping it. Looks like it recently got moved from Low to Medium priority so it seems to be back on the radar (I think Julien pinged it within Linaro).

I've also been having this issue on the opensuse aarach64 distro images but not gotten round to reporting it. Since I assume you have the necessary bugzilla accounts etc and are also experiencing it I wonder if I could prevail on you to report it there too?

Ian.

#4 lore raw
Quoted 4 lines · Ian Campbell

I've also been having this issue on the opensuse aarach64 distro images but not gotten round to reporting it. Since I assume you have the necessary bugzilla accounts etc and are also experiencing it I wonder if I could prevail on you to report it there too?

I can certainly help with reporting bugs. But I have no ARM hardware, just trying to adjust xen.spec so that its not x86 only anymore. To get less "pkg build failed" mails.

Olaf

#5 lore raw
Quoted 8 lines · Olaf Hering
Quoted 4 lines · Ian Campbell

I've also been having this issue on the opensuse aarach64 distro images but not gotten round to reporting it. Since I assume you have the necessary bugzilla accounts etc and are also experiencing it I wonder if I could prevail on you to report it there too?

I can certainly help with reporting bugs.

Thanks.

Quoted 3 lines

But I have no ARM hardware,
just trying to adjust xen.spec so that its not x86 only anymore. To get less "pkg build failed" mails.

This isn't really a h/w issue -- more of a build environment one. I actually do most of my builds using qemu-aarch64-user-static in a chroot on my main workstation ;-)
Ian.