How to compile the unstable source for arm at sstabellini/xen-unstable.git/.git
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 39 lines · Ian Campbell
Quoted 16 lines
make[3]: Entering directory `/home/frank/workspace/xen/src/xen-arm-v6/xen/include'
for i inpublic/callback.hpublic/dom0_ops.hpublic/elfnote.hpublic/event_channel.hpublic/features.hpublic/grant_table.hpublic/kexec.hpublic/mem_event.hpublic/memory.hpublic/nmi.hpublic/physdev.hpublic/platform.hpublic/sched.hpublic/tmem.hpublic/trace.hpublic/vcpu.hpublic/version.hpublic/xen-compat.hpublic/xen.hpublic/xencomm.hpublic/xenoprof.hpublic/hvm/e820.hpublic/hvm/hvm_info_table.hpublic/hvm/hvm_op.hpublic/hvm/ioreq.hpublic/hvm/params.hpublic/io/blkif.hpublic/io/console.hpublic/io/fbif.hpublic/io/fsif.hpublic/io/kbdif.hpublic/io/libxenvchan.hpublic/io/netif.hpublic/io/pciif.hpublic/io/protocols.hpublic/io/ring.hpublic/io/tpmif.hpublic/io/usbif.hpublic/io/vscsiif.hpublic/io/xenbus.hpublic/io/xs_wire.h; do arm-linux-gnueabi-gcc -ansi -includestdint.h-Wall -W -Werror -S -o/dev/null-xc $i || exit 1; echo $i; doneQuoted 2 lines
Quoted 1 line
headers.chk.new
public/callback.h:87:5: error: unknown type name 'xen_callback_t'At this point I get:
[ -einclude/asm] || ln -sf asm-arminclude/asm
make -f /local/scratch/ianc/devel/arm/xen-unstable/xen/Rules.mk -C include make[3]: Entering directory/local/scratch/ianc/devel/arm/xen-unstable/xen/include' make[3]: Nothing to be done forall'.
make[3]: Leaving directory `/local/scratch/ianc/devel/arm/xen-unstable/xen/include'Aha -- the difference is down to
XEN_TARGET_ARCHvs.XEN_COMPILE_ARCH, see towards the end of xen/include/Makefile:ifeq ($(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH)) ... all: headers.chk ...I'm inferring from the
Makefilethat:XEN_COMPILE_ARCH== the host architecture -- e.g. the machine you are
compiling onXEN_TARGET_ARCH== the target architecture -- e.g. the machine you want
to run the resulting Xen on.
Quoted 3 lines
And indeed if I do a native build on an arm system I see the same error as you do. We'll look at fixing this but in the meantime I suggest you use
XEN_TARGET_ARCHand notXEN_COMPILE_ARCH.
The following patch fixes the compile issue (that indeed is due to the header files check you pointed out).
---
arm: few missing #define
Few missing #define are the cause of a compile failure with XEN_TARGET_ARM=arm and XEN_COMPILE_ARM=arm (for example in the case of a native compilation). This patch fill the gaps.
xen/include/public/arch-arm.h +2 -0
@@ -110,6 +110,8 @@ typedef struct arch_vcpu_info arch_vcpu_info_t;struct arch_shared_info { };typedef struct arch_shared_info arch_shared_info_t ; +typedef unsigned long xen_callback_t ; +#endif #endif /* __XEN_PUBLIC_ARCH_ARM_H__ */
xen/include/public/io/protocols.h +3 -0
@@ -26,6 +26,7 @@#define XEN_IO_PROTO_ABI_X86_32 "x86_32-abi"#define XEN_IO_PROTO_ABI_X86_64 "x86_64-abi"#define XEN_IO_PROTO_ABI_IA64 "ia64-abi" +#define XEN_IO_PROTO_ABI_ARM "arm-abi"#if defined(__i386__)# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
@@ -33,6 +34,8 @@# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64#elif defined(__ia64__)# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_IA64 +#elif defined(__arm__) +# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_ARM#else # error arch fixup needed here#endif
Hi Xen-ARMs,
I applied this patch, "error: unknown type name 'xen_callback_t' is fixed. But I still meet the problem. The problem is where to download the cross compiler "arm-none-linux-gnueabi-gcc" which supports march=arm-V7a and mcpu=cortex-a15.
Would someone give me one avaiable URL to download the right compiler?
Best Regards,
Frank
--
Quoted 83 lines · At 2012-01-31 22:51:29,"Stefano Stabellini" <[email protected]>…
Quoted 39 lines · Ian Campbell
Quoted 16 lines
make[3]: Entering directory `/home/frank/workspace/xen/src/xen-arm-v6/xen/include'
for i inpublic/callback.hpublic/dom0_ops.hpublic/elfnote.hpublic/event_channel.hpublic/features.hpublic/grant_table.hpublic/kexec.hpublic/mem_event.hpublic/memory.hpublic/nmi.hpublic/physdev.hpublic/platform.hpublic/sched.hpublic/tmem.hpublic/trace.hpublic/vcpu.hpublic/version.hpublic/xen-compat.hpublic/xen.hpublic/xencomm.hpublic/xenoprof.hpublic/hvm/e820.hpublic/hvm/hvm_info_table.hpublic/hvm/hvm_op.hpublic/hvm/ioreq.hpublic/hvm/params.hpublic/io/blkif.hpublic/io/console.hpublic/io/fbif.hpublic/io/fsif.hpublic/io/kbdif.hpublic/io/libxenvchan.hpublic/io/netif.hpublic/io/pciif.hpublic/io/protocols.hpublic/io/ring.hpublic/io/tpmif.hpublic/io/usbif.hpublic/io/vscsiif.hpublic/io/xenbus.hpublic/io/xs_wire.h; do arm-linux-gnueabi-gcc -ansi -includestdint.h-Wall -W -Werror -S -o/dev/null-xc $i || exit 1; echo $i; doneQuoted 2 lines
Quoted 1 line
headers.chk.new
public/callback.h:87:5: error: unknown type name 'xen_callback_t'At this point I get:
[ -einclude/asm] || ln -sf asm-arminclude/asm
make -f /local/scratch/ianc/devel/arm/xen-unstable/xen/Rules.mk -C include make[3]: Entering directory/local/scratch/ianc/devel/arm/xen-unstable/xen/include' make[3]: Nothing to be done forall'.
make[3]: Leaving directory `/local/scratch/ianc/devel/arm/xen-unstable/xen/include'Aha -- the difference is down to
XEN_TARGET_ARCHvs.XEN_COMPILE_ARCH, see towards the end of xen/include/Makefile:ifeq ($(XEN_TARGET_ARCH),$(XEN_COMPILE_ARCH)) ... all: headers.chk ...I'm inferring from the
Makefilethat:XEN_COMPILE_ARCH== the host architecture -- e.g. the machine you are
compiling onXEN_TARGET_ARCH== the target architecture -- e.g. the machine you want
to run the resulting Xen on.Quoted 3 lines
And indeed if I do a native build on an arm system I see the same error as you do. We'll look at fixing this but in the meantime I suggest you use
XEN_TARGET_ARCHand notXEN_COMPILE_ARCH.The following patch fixes the compile issue (that indeed is due to the header files check you pointed out).
---
arm: few missing #define
Few missing #define are the cause of a compile failure with XEN_TARGET_ARM=arm and XEN_COMPILE_ARM=arm (for example in the case of a native compilation). This patch fill the gaps.
Signed-off-by Stefano Stabellini <[email protected]>xen/include/public/arch-arm.h +2
-0@@ -110,6 +110,8 @@ typedef struct arch_vcpu_info arch_vcpu_info_t;struct arch_shared_info { };typedef struct arch_shared_info arch_shared_info_t ; +typedef unsigned long xen_callback_t ; +#endif #endif /* __XEN_PUBLIC_ARCH_ARM_H__ */ xen/include/public/io/protocols.h +1
-0@@ -26,6 +26,7 @@#define XEN_IO_PROTO_ABI_X86_32 "x86_32-abi"#define XEN_IO_PROTO_ABI_X86_64 "x86_64-abi"#define XEN_IO_PROTO_ABI_IA64 "ia64-abi" +#define XEN_IO_PROTO_ABI_ARM "arm-abi"#if defined(__i386__)# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
xen/include/public/io/protocols.h line 41
Quoted 8 lines
xen/include/public/io/protocols.h +2
-0@@ -33,6 +34,8 @@# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64#elif defined(__ia64__)# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_IA64 +#elif defined(__arm__) +# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_ARM#else # error arch fixup needed here#endif
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · Chen
Hi Xen-ARMs,
Â
I applied this patch, "error: unknown type name 'xen_callback_t' is fixed.
Thanks for testing!
Quoted 4 lines
But I still meet the problem. The problem is
where to download the cross compiler "arm-none-linux-gnueabi-gcc" which supports march=arm-V7a and mcpu=cortex-a15. Â
Would someone give me one avaiable URL to download the right compiler?Â
Which cross-compiler are you using at the moment?
If you are on Ubuntu, we just need to
apt-get install gcc-arm-linux-gnueabi
in order to get Linaro's cross-compiler.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi Xen-ARMs,
I used the latest compiler from Linaro.
But the compiler cannot support march=armv7-a and mcpu=cortex-a15
The error information is like this:
make -f /home/frank/workspace/xen/src/xen-arm-v6/xen/Rules.mk -C include
make[3]: Entering directory `/home/frank/workspace/xen/src/xen-arm-v6/xen/include'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/frank/workspace/xen/src/xen-arm-v6/xen/include'
make -f /home/frank/workspace/xen/src/xen-arm-v6/xen/Rules.mk -C arch/arm asm-offsets.s
make[3]: Entering directory `/home/frank/workspace/xen/src/xen-arm-v6/xen/arch/arm'
arm-linux-gnueabi-gcc -O1 -fno-omit-frame-pointer -marm -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -fno-builtin -fno-common -Wredundant-decls -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/home/frank/workspace/xen/src/xen-arm-v6/xen/include -msoft-float -nopie -fno-stack-protector -fno-exceptions -Wnested-externs -DGCC_HAS_VISIBILITY_ATTRIBUTE -march=armv7-a -mcpu=cortex-a15 -fno-optimize-sibling-calls -g -D__XEN__ -include /home/frank/workspace/xen/src/xen-arm-v6/xen/include/xen/config.h -DVERBOSE -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER -MMD -MF .asm-offsets.s.d -S -o asm-offsets.s asm-offsets.c asm-offsets.c:1:0: error: switch -mcpu=cortex-a15 conflicts with -march=armv7-a switch [-Werror]
cc1: all warnings being treated as errors
I modified xen/arch/arm/Rules.mk like the following, the compiling is OK.
xen/arch/arm/Rules.mk +2 -1
@@ -22,7 +22,8 @@ ifneq ($(call cc-option,$(CC),-fvisibility=hidden,n),n) CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE endif -CFLAGS += -march=armv7-a -mcpu=cortex-a15 +#CFLAGS += -march=armv7-a -mcpu=cortex-a15 +CFLAGS += -mcpu=cortex-a15
I checked binary file xen, it does not have the unresolved symbol.
Best Regards,
Frank
--
Quoted 13 lines · 在 2012-02-08 18:36:48,"Stefano Stabellini" <[email protected]>…
Quoted 3 lines · Chen
Hi Xen-ARMs,
Â
I applied this patch, "error: unknown type name 'xen_callback_t' is fixed.Thanks for testing!
Quoted 4 lines
But I still meet the problem. The problem is
where to download the cross compiler "arm-none-linux-gnueabi-gcc" which supports march=arm-V7a and mcpu=cortex-a15. Â
Would someone give me one avaiable URL to download the right compiler?Â
Quoted 6 lines
Which cross-compiler are you using at the moment?
If you are on Ubuntu, we just need toapt-get install gcc-arm-linux-gnueabi
in order to get Linaro's cross-compiler.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · Chen
The problem is where to download the cross compiler "arm-none-linux-gnueabi-gcc" which supports march=arm-V7a and mcpu=cortex-a15.
Would someone give me one avaiable URL to download the right compiler?
Ian.
Hi Ian,
Thanks. :-)
I will try it.
Best Regards,
Frank
--
Quoted 5 lines · At 2012-02-09 00:53:08,"Ian Campbell" <[email protected]> wrote:
Quoted 4 lines · Chen
The problem is where to download the cross compiler "arm-none-linux-gnueabi-gcc" which supports march=arm-V7a and mcpu=cortex-a15.
Quoted 10 lines
Quoted 2 lines
Would someone give me one avaiable URL to download the right compiler?
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi Ian and Xen-ARMs,
I tried this compiler. The compile is OK.
Best Regards,
Frank
--
Quoted 5 lines · At 2012-02-09 00:53:08,"Ian Campbell" <[email protected]> wrote:
Quoted 4 lines · Chen
The problem is where to download the cross compiler "arm-none-linux-gnueabi-gcc" which supports march=arm-V7a and mcpu=cortex-a15.
Quoted 10 lines
Quoted 2 lines
Would someone give me one avaiable URL to download the right compiler?
Ian.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel