All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Frank, Chen" <chysun2000@163.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "xen-arm@lists.xensource.com" <xen-arm@lists.xensource.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [XenARM] [help] How to compile the unstable source for arm at sstabellini/xen-unstable.git/.git
Date: Wed, 8 Feb 2012 20:59:37 +0800 (CST)	[thread overview]
Message-ID: <715c4021.25979.1355d0c3d8d.Coremail.chysun2000@163.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1202081035210.3196@kaball-desktop>


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

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@eu.citrix.com> 写道:
>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.

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

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

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  parent reply	other threads:[~2012-02-08 12:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9e3a3f3.470c.135325af644.Coremail.chysun2000@163.com>
     [not found] ` <1328002610.26983.302.camel@zakaz.uk.xensource.com>
2012-01-31 14:53   ` [XenARM] [help] How to compile the unstable source for arm at sstabellini/xen-unstable.git/.git Stefano Stabellini
2012-02-06  1:00   ` Frank, Chen
2012-02-08 10:36     ` Stefano Stabellini
2012-02-08 12:59     ` Frank, Chen [this message]
2012-02-08 16:53     ` Ian Campbell
2012-02-09  0:43     ` Frank, Chen
2012-02-09  1:00     ` Frank, Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=715c4021.25979.1355d0c3d8d.Coremail.chysun2000@163.com \
    --to=chysun2000@163.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-arm@lists.xensource.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.