[nflug] Building 32-bit bins on Ubuntu AMD64

Darin Perusich Darin.Perusich at cognigencorp.com
Mon Jul 28 08:58:07 EDT 2008

This is one of those area's where Sun really got it right IMHO. You can 
build 32 or 64 bit bins on Solaris and run them side by side simply by 
setting your LD_OPTIONS to the appropriate location and adding a single 
compiler argument. All the user-space utilities are 32-bit and only 
those app's which truly benefit from being compiled 64-bit are.

Now that I'm done with my rant you might find this page informative. 

David J. Andruczyk wrote:
> i beleive u can do it with the cross tools.
> dave at shrapnel:~$ apt-cache search cross |grep compil apt-cross -
> retrieve, build and install libraries for cross-compiling distcc -
> Simple distributed compiler client and server dpkg-cross - tools for
> cross compiling Debian packages
> Essentially you are cross compiling, as you are using one arch to
> build apps for another.   I use mingw32 so I can build Windows apps
> under linux. (my GTK+ programs, whichi run on linux, freebsd, OS-X
> and windows).
> Setting up a cross-compiler cane be challenging,  but it can't hurt
> to look at apt-cross and dpkg-cross..
> -- David J. Andruczyk
> ----- Original Message ---- From: Robert Wolfe
> <robert at muzzlethem.com> To: nflug at nflug.org Sent: Saturday, July 26,
> 2008 5:54:37 PM Subject: Re: [nflug] Building 32-bit bins on Ubuntu
> AMD64
> On Sat, 26 Jul 2008 17:07:03 -0400 "Joseph M. LaVigne"
> <joe at hits-buffalo.com> wrote:
>> Run a i386 Virtual Machine...   ;-)
>> I don't know of any way to compile a 32 bit app on a 64 bit OS...
> Yeah I know the first solution, but I seem to recall someone posting
> instructions as to how to build 32-bit bins under the AMD64 distro of
> Ubuntu.

Darin Perusich
Unix Systems Administrator
Cognigen Corporation
395 Youngs Rd.
Williamsville, NY 14221
Phone: 716-633-3463
Email: darinper at cognigencorp.com

More information about the nflug mailing list