On Tue, Oct 20, 2009 at 8:59 PM, Aidan Gauland <[email protected]> wrote: > Hello, > > Short, yet not byanymeans simple question: > What's the simplest way (on Debian, in particular) to compile, on an > amd64 system, for i386 (that is, compling for 32-bit Linux on 64-bit > Linux of the same architecture)? > > I've tried the -m 32 option to gcc, but that causes ld to freak out: > /usr/bin/ld: i386 architecture of input file > `helpimtrappedinanemail.o' is incompatible with i386:x86-64 output > > Oh, and I am trying to avoid just compiling on a full i386 Debian > system in an i386 emulator.
You don't need an emulator. You could build an i386 system in a chroot environment.
