[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XenARM] [help] How to compile the unstable source for arm at sstabellini/xen-unstable.git/.git



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.
diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk
index 336e209..407fc82 100644
--- a/xen/arch/arm/Rules.mk
+++ b/xen/arch/arm/Rules.mk
@@ -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
--

å 2012-02-08 18:36:48ï"Stefano Stabellini" <stefano.stabellini@xxxxxxxxxxxxx> åéï >On Mon, 6 Feb 2012, Frank, Chen wrote: >> Hi Xen-ARMs, >> Ã  >> I applied this patch, "error:àunknownàtypeànameà'xen_callback_t' is fixed. > >Thanks for testing! > > >> 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-arm mailing list
Xen-arm@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-arm

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.