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

Revision history for this message
cyboo (cybooda) said :
#4

I installed Ubuntu 14.04 and the current Android development SDK, which contains 32-bit executables. I found that I cannot run those 32-bit binaries. Trying to start them from bash gives me an error:

$ ./adb
bash: ./adb: No such file or directory
It is there though:

$ ls -al ./adb
-rwxrwxrwx 1 thomas thomas 1231255 Jan 17 13:31 ./adb
$ file ./adb
./adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped. Same symptom for all the other 32-bit tools in the Android SDK.
In olden days one could just install 32-bit libraries on 64-bit Ubuntu to get 32-bit support, but that does not seem to work anymore.
https://aostv.in/

Revision history for this message
rowawas539 (tebekej) said :
#5

https://portaldb.live/hogan-assessment-participant-login-13073 All Hogan Assessment Participant Login pages are listed here with their site stats and other details. You can check Hogan Assessment Participant Login links with our verified badge to select the right page. We also did antivirus check of Hogan Assessment Participant Login page to keep you safe.

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.