[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenARM] How to compile the unstable source for arm at sstabellini/xen-unstable.git/.git
Hi all, I succeed in compiling the unstable source for arm at sstabellini/xen-unstable.git/.git with a little modification of xen/arch/arm/Makefile by the latest arm-none-linux-gnueabi- compiler from code sourcery. - The URL for the latest cross compiler: - Compiling command : XEN_TARGET_ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi make xen - The patch is the following: diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index 9bc2fc8..244a19f 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -51,15 +51,15 @@ $(BASEDIR)/common/symbols-dummy.o: $(MAKE) -f $(BASEDIR)/Rules.mk -C $(BASEDIR)/common symbols-dummy.o $(TARGET)-syms: prelink.o xen.lds $(BASEDIR)/common/symbols-dummy.o - $(LD) $(LDFLAGS) -T xen.lds -N prelink.o \ + $(LD) $(LDFLAGS) -T xen.lds -r prelink.o \ $(BASEDIR)/common/symbols-dummy.o -o $(@D)/.$(@F).0 $(NM) -n $(@D)/.$(@F).0 | $(BASEDIR)/tools/symbols >$(@D)/.$(@F).0.S $(MAKE) -f $(BASEDIR)/Rules.mk $(@D)/.$(@F).0.o - $(LD) $(LDFLAGS) -T xen.lds -N prelink.o \ + $(LD) $(LDFLAGS) -T xen.lds -r prelink.o \ $(@D)/.$(@F).0.o -o $(@D)/.$(@F).1 $(NM) -n $(@D)/.$(@F).1 | $(BASEDIR)/tools/symbols >$(@D)/.$(@F).1.S $(MAKE) -f $(BASEDIR)/Rules.mk $(@D)/.$(@F).1.o - $(LD) $(LDFLAGS) -T xen.lds -N prelink.o \ + $(LD) $(LDFLAGS) -T xen.lds -r prelink.o \ $(@D)/.$(@F).1.o -o $@ rm -f $(@D)/.$(@F).[0-9]* - Without applying this patch, the compiling will output the following error. --- make[4]: Leaving directory `/home/frank/workspace/xen/src/xen-arm-v6/xen/common' arm-none-linux-gnueabi-ld -marmelf_linux_eabi -T xen.lds -N prelink.o \ /home/frank/workspace/xen/src/xen-arm-v6/xen/common/symbols-dummy.o -o /home/frank/workspace/xen/src/xen-arm-v6/xen/.xen-syms.0 prelink.o:(.ARM.exidx.init.text+0x0): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0x8): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0x10): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0x18): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0x20): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0x28): more undefined references to `__aeabi_unwind_cpp_pr1' follow prelink.o:(.ARM.exidx.init.text+0x38): undefined reference to `__aeabi_unwind_cpp_pr0' prelink.o:(.ARM.exidx.init.text+0x50): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0x58): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0x68): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0xa8): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0xb0): undefined reference to `__aeabi_unwind_cpp_pr0' prelink.o:(.ARM.exidx.init.text+0xb8): undefined reference to `__aeabi_unwind_cpp_pr1' prelink.o:(.ARM.exidx.init.text+0xc0): undefined reference to `__aeabi_unwind_cpp_pr1' ..... <-- a lot of similar error message make[3]: *** [/home/frank/workspace/xen/src/xen-arm-v6/xen/xen-syms] Error 1 make[3]: Leaving directory `/home/frank/workspace/xen/src/xen-arm-v6/xen/arch/arm' make[2]: *** [/home/frank/workspace/xen/src/xen-arm-v6/xen/xen] Error 2 --- Best Regards, Frank -- At 2012-02-06 16:59:04,"Krishna Pavan" <post4pavan@xxxxxxxxx> wrote:
_______________________________________________ Xen-arm mailing list Xen-arm@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/mailman/listinfo/xen-arm
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |