WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [patch] explicitly defining memmove for x86_64

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [patch] explicitly defining memmove for x86_64
From: David F Barrera <dfbp@xxxxxxxxxx>
Date: Thu, 05 May 2005 10:04:33 -0500
Delivery-date: Thu, 05 May 2005 15:04:12 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050504230646.GB3247@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20050504230646.GB3247@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I applied this patch, and it went further, but it is failing now with
these errors:

gcc  -DPIC  -m64 -Wall -Werror -O3 -fno-strict-aliasing -
I ../../tools/libxutil
-I. -Wp,-MD,.xc_ptrace.opic.d -fPIC -c -o xc_ptrace.opic xc_ptrace.c
In file included from /usr/include/asm/sigcontext.h:4,
                 from /usr/include/asm-x86_64/processor.h:13,
                 from /usr/include/asm/processor.h:4,
                 from /usr/include/asm-x86_64/elf.h:10,
                 from /usr/include/asm/elf.h:4,
                 from xc_ptrace.c:4:
/usr/include/asm-x86_64/sigcontext.h:9: error: redefinition of `struct
_fpstate'
/usr/include/asm-x86_64/sigcontext.h:23: error: redefinition of `struct
sigconte
xt'
In file included from /usr/include/asm/pda.h:4,
                 from /usr/include/asm-x86_64/current.h:7,
                 from /usr/include/asm/current.h:4,
                 from /usr/include/asm-x86_64/processor.h:18,
                 from /usr/include/asm/processor.h:4,
                 from /usr/include/asm-x86_64/elf.h:10,
                 from /usr/include/asm/elf.h:4,
                 from xc_ptrace.c:4:
/usr/include/asm-x86_64/pda.h:26: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared
here (not in a function)
/usr/include/asm-x86_64/pda.h:26: error: requested alignment is not a
constant
In file included from /usr/include/asm/system.h:4,
                 from /usr/include/asm-x86_64/processor.h:19,
                 from /usr/include/asm/processor.h:4,
                 from /usr/include/asm-x86_64/elf.h:10,
                 from /usr/include/asm/elf.h:4,
                 from xc_ptrace.c:4:
/usr/include/asm-x86_64/system.h: In function `__cmpxchg':
/usr/include/asm-x86_64/system.h:249: error: `LOCK_PREFIX' undeclared
(first use
 in this function)
/usr/include/asm-x86_64/system.h:249: error: (Each undeclared identifier
is repo
rted only once
/usr/include/asm-x86_64/system.h:249: error: for each function it
appears in.)
/usr/include/asm-x86_64/system.h:249: error: parse error before string
constant
/usr/include/asm-x86_64/system.h:255: error: parse error before string
constant
/usr/include/asm-x86_64/system.h:261: error: parse error before string
constant
/usr/include/asm-x86_64/system.h:267: error: parse error before string
constant
In file included from /usr/include/asm/processor.h:4,
                 from /usr/include/asm-x86_64/elf.h:10,
                 from /usr/include/asm/elf.h:4,
                 from xc_ptrace.c:4:
/usr/include/asm-x86_64/processor.h: At top level:
/usr/include/asm-x86_64/processor.h:229: error:
`CONFIG_X86_L1_CACHE_SHIFT' unde           clared here (not in a
function)
/usr/include/asm-x86_64/processor.h:229: error: requested alignment is
not a con           stant
/usr/include/asm-x86_64/processor.h: In function `prefetchw':
/usr/include/asm-x86_64/processor.h:396: error: called object is not a
function
make[4]: *** [xc_ptrace.opic] Error 1
make[4]: Leaving directory `/tmp/xen-unstable/tools/libxc'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/tmp/xen-unstable/tools/libxc'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/tmp/xen-unstable/tools'
make[1]: *** [tools] Error 2
make[1]: Leaving directory `/tmp/xen-unstable'
make: *** [world] Error 2
bl2-14:/tmp/xen-unstable #


On Wed, 2005-05-04 at 23:06 +0000, Scott Parish wrote:
> Without the attached patch ubuntu's gcc (3.3.5) was complaining about
> the implicit declaration of __builtin_memmove. Extern'ing past that,
> the linker wouldn't resolve the same symbol.
> 
> This patch just does the same thing that is already done for x86_32.
> 
> signed-off-by: scott parish <srparish@xxxxxxxxxx>
> 
> sRp
> 
> -- 
> Scott Parish
> _______________________________________________ Xen-devel mailing list 
> Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel


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