All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen compilation fails for ARM32 when recompiled on a ARM64 build
@ 2016-11-24 15:48 Bhupinder Thakur
  2016-11-24 15:53 ` Andrew Cooper
  2016-11-24 15:54 ` Julien Grall
  0 siblings, 2 replies; 8+ messages in thread
From: Bhupinder Thakur @ 2016-11-24 15:48 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Stefano Stabellini


[-- Attachment #1.1: Type: text/plain, Size: 1190 bytes --]

Hi,

I am facing an issue where the recompilation fails when you build for ARM32
architecture on an existing build of ARM64.

Even if I do make clean/make distclean before compiling for different
architecture it still fails.

Steps to reproduce the issue:

1. git clone git://xenbits.xen.org/xen.git xen.git
2. make dist-xen XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu
3. make distclean
4. make dist-xen XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf-

Compilation fails at step 4.

If I manually remove the following files and recompile then compilation is
successful:

Remove xen/arch/arm/asm-offsets.s
Remove xen/arch/arm/xen.lds

The same issue happens if you build for ARM32 first and then try to build
for ARM64. After removing the 2 files manually, the compilation is
successful.

I am using the following toolchains:
gcc-linaro-4.9-2014.11-x86_64_aarch64-linux-gnu.tar.xz (for ARM64 build)
x86_64-gcc-4.9.0-nolibc_arm-unknown-linux-gnueabi.tar.xz (for ARM32 build -
https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.9.0/)

I think probably the above-mentioned two files need to be removed
automatically when make distclean is run.

Regards,
Bhupinder

[-- Attachment #1.2: Type: text/html, Size: 1598 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-11-25 15:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-24 15:48 Xen compilation fails for ARM32 when recompiled on a ARM64 build Bhupinder Thakur
2016-11-24 15:53 ` Andrew Cooper
2016-11-24 15:58   ` Julien Grall
2016-11-24 16:12     ` Jan Beulich
2016-11-25 14:00       ` Julien Grall
2016-11-25 14:19       ` Julien Grall
2016-11-25 15:00         ` Processed: " xen
2016-11-24 15:54 ` Julien Grall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.