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

Asked by tomdean

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu gcc-defaults Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You can use a chroot to the 32bit ISO

Revision history for this message
tomdean (tomdean) said :
#2

On 06/01/12 04:15, actionparsnip wrote:
> Your question #199049 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/199049
>
> 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

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

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 https://help.ubuntu.com/community/BasicChroot

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.