How do I build a 32-bit executable on a 12.-4 amd64

Asked by tomdean on 2012-06-01

I have Ubuntu 12.04 LTS amd64on an Intel i7-3390k.

I have an i386 installation with no development facilities - it is too small, running diskless, a TS5700, elan SC530.

How do I build a 32-bit executable on the 64-bit machine to run on the 32-bit diskless system?

Tom Dean

Question information

English Edit question
Ubuntu gcc-defaults Edit question
No assignee Edit question
Last query:
Last reply:

You can use a chroot to the 32bit ISO

tomdean (tomdean) said : #2

On 06/01/12 04:15, actionparsnip wrote:
> Your question #199049 on Ubuntu changed:
> Status: Open => Answered
> actionparsnip proposed the following answer:
> You can use a chroot to the 32bit ISO

How do I do that? Do you mean install the 32bit ISO somewhere?

Tom Dean

A chroot is used to make programs believe that the directory they are running in is really the root directory. It can be used to stop programs accessing files outside of that directory, or for compiling 32bit applications in a 64bit environment - see

Can you help with this problem?

Provide an answer of your own, or ask tomdean for more information if necessary.

To post a message you must log in.