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] need to compile 32bit on x86_64 cpu

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] need to compile 32bit on x86_64 cpu
From: "Anand Gupta" <xen.mails@xxxxxxxxx>
Date: Thu, 22 Jun 2006 23:14:45 +0530
Cc: Harry Butterworth <harry@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Xen Users <Xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 22 Jun 2006 10:45:10 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=bdCUzhY1H+M7GWdp5ejEjpIExAu1ut3xsKWBqsmeLPc8W2HIaCvOkCjIR8LWOV3FF3AgLMTmFrP483nyg8tV9CQjv3tJZKQt+/kaODbj7n48eZtfa1tMXfFnf9sXS6n+ocBnoEQ3cn/ig5UWvsy3eAE8yETZi1kA3VyvhQqIpTQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <feab1bfb340e4dd8269cdfdecbe6c8b2@xxxxxxxxxxxx>
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: <acb757c00606220716p37e90c89i87bbc417dc2dc0cb@xxxxxxxxxxxxxx> <1150986530.7701.1.camel@xxxxxxxxxxxxxxxxxxxxx> <feab1bfb340e4dd8269cdfdecbe6c8b2@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Keir!

I loop mount a 32bit image and do a chroot to it. Inside it the cpu is still showing as x86_64.

So i installed setarch and use it to set it as i386 and then try a yum update/ use yum to install any package, it gives an error

Traceback (most recent call last):
  File "/usr/bin/yum", line 4, in ?
    import yum
  File "__init__.py", line 33, in ?
  File "updates.py", line 18, in ?
  File " arch.py", line 218, in ?
  File "arch.py", line 208, in getCanonArch
  File "arch.py", line 139, in getCanonX86Arch
IOError: [Errno 2] No such file or directory: '/proc/cpuinfo'

When i try to cat /proc/cpuinfo, it seems it doesn't exist :(

Any ideas where i am going wrong ?

Thanks.


On 6/22/06, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx > wrote:
In Cambridge we chroot into a 32-bit filesystem to build 32-bit
binaries on 64-bit host. Works fine.

--
regards,

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