All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Anand Gupta <xen.mails@gmail.com>
Cc: Harry Butterworth <harry@hebutterworth.freeserve.co.uk>,
	xen-devel@lists.xensource.com,
	Xen Users <Xen-users@lists.xensource.com>
Subject: Re: need to compile 32bit on x86_64 cpu
Date: 22 Jun 2006 19:16:18 +0200	[thread overview]
Message-ID: <p73lkrpnmal.fsf@verdi.suse.de> (raw)
In-Reply-To: <acb757c00606221006h1ca4cda7xa12d10d93c0aadf4@mail.gmail.com>

"Anand Gupta" <xen.mails@gmail.com> writes:

> On 6/22/06, Petersson, Mats <Mats.Petersson@amd.com> wrote:
> >
> >  I tried using
> > "setarch i386 bash"
> > "make clean dist"
> > It's still compiling, but it looks like it might work...
> >
> > [You may need to install setarch on your machine, as some machines don't
> > have it installed as default. setarch allows the machine to set a flag so
> > that when something like uname is asking "What processor is this" the answer
> > will be "i686" instead of "x86_64", and thus tools that use for example
> > "uname -m" to find the CPU type, will figure that it's a 32-bit processor
> > instead of 64-bit.

Or linux32 ... 
setarch is a RHism.

> >
> > However, you may need to have certain libraries and other tools installed
> > on the machine to build 32-bit binaries.
> >
> 
> The libraries is going to be one major problem i guess as already the same
> libraries are installed in 64bit mode and the system won't allow both to be
> installed :(

It works on most distributions (SUSE, RH, Mandrake) if you have the
right compat RPMs installed because they follow LSB properly. Normally
the 64bit install should install the right compat rpms by default
together with the 64bit libraries.

The main offenders which seem to be unable to get this right are the Debian derived
ones (Ubunutu etc.) and Slackware. On those you need to use a chroot hack.
Complain to them.

Basically if your distribution has "lib64" and it isn't a symlink to lib 
you should be ok.

Kerrnel compile fine without any libraries BTW - just user tools
need them.

-Andi

  parent reply	other threads:[~2006-06-22 17:16 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 14:16 need to compile 32bit on x86_64 cpu Anand Gupta
2006-06-22 14:24 ` Harald Schioeberg
2006-06-22 14:36   ` [Xen-users] " Anand Gupta
2006-06-22 14:28 ` Harry Butterworth
2006-06-22 15:10   ` Keir Fraser
2006-06-22 16:41     ` [Xen-devel] " Anand Gupta
2006-06-22 16:57       ` Anand Gupta
2006-06-22 17:02         ` Re: [Xen-devel] " Petersson, Mats
2006-06-22 17:00       ` Petersson, Mats
2006-06-22 17:06         ` Anand Gupta
2006-06-22 17:15           ` Harry Butterworth
2006-06-22 17:33             ` [Xen-devel] " Anand Gupta
2006-06-22 17:16           ` Andi Kleen [this message]
2006-06-22 17:36             ` Anand Gupta
2006-06-22 17:52               ` Andi Kleen
2006-06-22 17:54                 ` Anand Gupta
2006-06-22 18:06                   ` Andi Kleen
2006-06-22 18:36                     ` Anand Gupta
2006-06-22 20:48                     ` Anand Gupta
2006-06-22 20:57                       ` [Xen-devel] " Jerone Young
2006-06-22 21:25                         ` Anand Gupta
2006-06-22 21:34                           ` Petersson, Mats
2006-06-22 21:43                             ` [Xen-users] " Anand Gupta
2006-06-22 17:44     ` Anand Gupta
2006-06-22 17:56       ` Luciano Miguel Ferreira Rocha
2006-06-22 18:08         ` Anand Gupta
2006-06-22 18:03       ` Anand Gupta
2006-06-22 18:10         ` Re: [Xen-devel] " Petersson, Mats
2006-06-22 15:13   ` Hans-Christian Armingeon

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=p73lkrpnmal.fsf@verdi.suse.de \
    --to=ak@suse.de \
    --cc=Xen-users@lists.xensource.com \
    --cc=harry@hebutterworth.freeserve.co.uk \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen.mails@gmail.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.