Mailinglist Archive: opensuse-amd64 (75 mails)

< Previous Next >
Re: [suse-amd64] Compiling 32bit binaries on AMD64
  • From: Andi Kleen <ak@xxxxxxx>
  • Date: Thu, 5 Jan 2006 17:23:09 +0100
  • Message-id: <200601051723.10061.ak@xxxxxxx>
On Thursday 05 January 2006 11:30, Dave Howorth wrote:
> I've seen a few threads like this with people asking how to compile
> 32-bit binaries on SUSE AMD64. They don't seem to get clear answers.

The answers on this list all seemed clear to me. It's really a FAQ
if you look at the archives there are probably hundreds of mails
about it, all with the same information.

It's also in the gcc documentation.

You seem to expect some complicated procedure but there really isn't any.
I guess people don't take a feature seriously if it's too easy to use :|


>
> I'm trying to do such a compilation now and have the same trouble. I've
> looked in the admin and user guides, the Suse Help centre and on the
> suse portal without success. I've browsed www.amd.com and www.x86-64.org
> as suggested in the admin manual but didn't find anything useful.
>
> I hope I'm just being dumb and have missed something. Is there a guide
> to building 32-bit applications on a 64-bit SUSE system?

Compile with -m32.

If the Makefile checks uname output you can also run it under linux32
to fake "i686"

-Andi

< Previous Next >
List Navigation