From: "Anand Gupta" Subject: Re: need to compile 32bit on x86_64 cpu Date: Thu, 22 Jun 2006 23:14:45 +0530 Message-ID: References: <1150986530.7701.1.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0634366994==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Harry Butterworth , "xen-devel@lists.xensource.com" , Xen Users List-Id: xen-devel@lists.xenproject.org --===============0634366994== Content-Type: multipart/alternative; boundary="----=_Part_541_33545868.1150998285286" ------=_Part_541_33545868.1150998285286 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 wrote: > > In Cambridge we chroot into a 32-bit filesystem to build 32-bit > binaries on 64-bit host. Works fine. > -- regards, Anand Gupta ------=_Part_541_33545868.1150998285286 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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@cl.cam.ac.uk > wrote:
In Cambridge we chroot into a 32-bit filesystem to build 32-bit
binaries on 64-bit host. Works fine.

--
regards,

Anand Gupta ------=_Part_541_33545868.1150998285286-- --===============0634366994== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0634366994==--