Mailinglist Archive: opensuse-amd64 (75 mails)

< Previous Next >
Re: [suse-amd64] Compiling 32bit binaries on AMD64
  • From: Dave Howorth <dhoworth@xxxxxxxxxxxxxxxxx>
  • Date: Thu, 05 Jan 2006 17:08:40 +0000
  • Message-id: <1136480920.1989.160.camel@xxxxxxxxxxxxxxxxxxxxxxx>
On Thu, 2006-01-05 at 17:23 +0100, Andi Kleen wrote:
> 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 was hoping that there was some self-contained summary. The admin
manual specifically suggests to look at two external sites that don't
seem to provide any relevant information, which is a worry because it
implies that the information given there is not complete.

I have a third-party 32-bit package (an Epson driver) and was hoping
there was some easy standard way to create an environment that will
build it without having to modify the package. Adding flags involves
understanding how its build system works and it also seems a bit
perverse to have to give a 32-bit only package knowledge that it is
being compiled in a 64-bit environment. It seems to me that this would
be a very common situation and so might have a FAQ answer.

I also have some questions about libraries that I was hoping such a
document would resolve. I'll submit those separately if I don't manage
to resolve them with a search.

> > 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"

Thanks, Dave


< Previous Next >
List Navigation