Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Build 32-bit Linux static binary in a 64-bit system #13849

Closed
ariya opened this issue Jan 2, 2016 · 3 comments
Closed

Build 32-bit Linux static binary in a 64-bit system #13849

ariya opened this issue Jan 2, 2016 · 3 comments
Assignees
Labels

Comments

@ariya
Copy link
Owner

ariya commented Jan 2, 2016

Docker facilitates a self-contained system to build PhantomJS static binary (#13822). This works well on a 64-bit system. With some tweaks, it is still possible to pull a 32-bit Docker image and produce 32-bit static binary. However, it is preferred to keep using the same official 64-bit Ubuntu 14.04 image to produce 32-bit binary.

@ariya ariya self-assigned this Jan 2, 2016
@ariya
Copy link
Owner Author

ariya commented Jan 2, 2016

Some tricks from https://developer.mozilla.org/en-US/docs/Compiling_32-bit_Firefox_on_a_Linux_64-bit_OS:

Method 1: Cross-compile using 64-bit compiler and libraries. This requires packages such as gcc-multilib (and a few others), as well as -m32 in the CFLAGS.

Method 2: Create a 32-bit environment using chroot.

@Vanuan
Copy link

Vanuan commented Jan 5, 2016

Would be great to support symbols as well: http://phantomjs.org/crash-reporting.html

@ariya
Copy link
Owner Author

ariya commented Dec 31, 2019

Obsoleted for now, since we want to use system-installed Qt and QtWebKit (see e.g. #15341).

@ariya ariya closed this as completed Dec 31, 2019
@ariya ariya removed the pinned label Dec 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants