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] PIC register 'bx' clobbered in 'asm' - xen-unstable buil

To: David F Barrera <dfbp@xxxxxxxxxx>
Subject: Re: [Xen-devel] PIC register 'bx' clobbered in 'asm' - xen-unstable build error
From: Bin Ren <bin.ren@xxxxxxxxx>
Date: Fri, 25 Feb 2005 21:21:10 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 25 Feb 2005 21:26:21 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=K21vB8WX6ALE+d/cExJ4l1CKxUXGUIx5YMfvpaO9X4/3429c2eyx8uYUB1EghK9xb7yNCFd+C6aIJqi+fA1l5tDO4cXv0YSS1QegUId1CTOcEvWvPUnTEHeZcdK8AbGSJdx34fH67qfgoVcxmKYcKmmiQX5aAA7KAPwH/XFZm/U=
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <421F9266.7020004@xxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <421F9266.7020004@xxxxxxxxxx>
Reply-to: bin.ren@xxxxxxxxxxxx
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
A patch has been proposed by Vincent Hanquez. I've already pushed it
into the unstable tree. The problem happens with gcc 3.4

Bin

--- xeno-unstable.bk/tools/libxc/xc_vmx_build.c.orig    2005-02-09
13:50:48 +0100
+++ xeno-unstable.bk/tools/libxc/xc_vmx_build.c 2005-02-09 13:51:33 +0100
@@ -426,10 +426,10 @@
{
    int eax, ecx;

-    __asm__ __volatile__ ("cpuid"
+    __asm__ __volatile__ ("pushl %%ebx; cpuid; popl %%ebx"
                         : "=a" (eax), "=c" (ecx)
                         : "0" (1)
-                         : "bx", "dx");
+                         : "dx");
    if (!(ecx & VMX_FEATURE_FLAG)) {
        return -1;
    }


On Fri, 25 Feb 2005 15:02:30 -0600, David F Barrera <dfbp@xxxxxxxxxx> wrote:
> I am trying to build xen-unstable on an x86 box, but it is failing with
> the following message:
> 
> gcc  -DPIC -m32 -march=i686 -Wall -Werror -O3 -fno-strict-aliasing -I
> ../../tools/libxutil -I. -Wp,-MD,.xc_rrobin.opic.d -fPIC -c -o
> xc_rrobin.opic xc_rrobin.c
> gcc  -DPIC -m32 -march=i686 -Wall -Werror -O3 -fno-strict-aliasing -I
> ../../tools/libxutil -I. -Wp,-MD,.xc_vmx_build.opic.d -fPIC -c -o
> xc_vmx_build.opic xc_vmx_build.c
> xc_vmx_build.c: In function `vmx_identify':
> xc_vmx_build.c:468: error: PIC register `bx' clobbered in `asm'
> make[4]: *** [xc_vmx_build.opic] Error 1
> make[4]: Leaving directory `/tmp/xen-unstable/tools/libxc'
> make[3]: *** [all] 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
> make world failed
> 
> I have built xen-unstable on this machine before, so I don't believe it
> is a setup problem.  Has anyone else observed this?
> 
> David F Barrera
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel
> 


-- 
Every act of creation is first of all an act of destruction.
- Pablo Picasso


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel