instructions for building 32-bit Linux Firefox on 64-bit system

Building 32-bit Linux Firefox on a 32-bit Linux system appears to have become challenging, so bugs like <https://bugzilla.mozilla.org/show_bug.cgi?id=857697> have switched Mozilla's Linux build systems to build it on 64-bit Linux.

But instructions for doing this haven't made it to MDN's Linux Prerequisites doc <https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Linux_Prerequisites>.

Is there somewhere I can find concise instructions for configuring a 64-bit system to build 32-bit Linux?  Or perhaps someone in the know can update the MDN doc?

-myk
0
myk
7/19/2013 6:24:48 PM
mozilla.dev.builds 1761 articles. 0 followers. Post Follow

4 Replies
886 Views

Similar Articles

[PageSpeed] 26

On 7/19/13 11:24 AM, myk@mozilla.org wrote:
>
> Building 32-bit Linux Firefox on a 32-bit Linux system appears to have become challenging, so bugs like <https://bugzilla.mozilla.org/show_bug.cgi?id=857697> have switched Mozilla's Linux build systems to build it on 64-bit Linux.
>
> But instructions for doing this haven't made it to MDN's Linux Prerequisites doc <https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Linux_Prerequisites>.
>
> Is there somewhere I can find concise instructions for configuring a 64-bit system to build 32-bit Linux?  Or perhaps someone in the know can update the MDN doc?

Did you see 
https://developer.mozilla.org/en-US/docs/Compiling_32-bit_Firefox_on_a_Linux_64-bit_OS 
?

I wrote the docs on using chroot and recommend that solution. True 
cross-compiling in the build system is fickle and "faking out" configure 
seems to be more resilient.

I've been thinking about asking Release Engineering to post an archive 
of the mock/chroot environment used to produce our Linux builds. If they 
did this, people would be able to download these archives and chroot 
into them. In theory, bit-identical builds to Mozilla's official builds 
would be possible. Would this interest you?
0
Gregory
7/19/2013 6:43:58 PM
On Friday, July 19, 2013 11:43:58 AM UTC-7, Gregory Szorc wrote:
> Did you see=20
>=20
> https://developer.mozilla.org/en-US/docs/Compiling_32-bit_Firefox_on_a_Li=
nux_64-bit_OS=20
>=20
> ?

No, I hadn't seen that; thanks for the reference!

Now that I know it's there, I see there's a link to it in Build Instruction=
s > Random FAQs and Developer Documentation <https://developer.mozilla.org/=
en-US/docs/Developer_Guide/Build_Instructions#Random_FAQs_and_Developer_Doc=
umentation>.

But I never got that far down the Build Instructions page, since I clicked =
through to the Linux Prerequisites page referenced above it, which still cl=
aims you only need "512MB RAM with lots of available swap space. For static=
 and XULRunner builds, 1GB RAM minimum. Additional RAM will significantly d=
ecrease build time."

It seems like we should update that to note the new requirements for buildi=
ng on 32-bit systems (disabling PGO?), recommend building on 64-bit systems=
 instead, and point to your new doc.


> I wrote the docs on using chroot and recommend that solution. True=20
> cross-compiling in the build system is fickle and "faking out" configure=
=20
> seems to be more resilient.

Ah, good to know!


> I've been thinking about asking Release Engineering to post an archive=20
> of the mock/chroot environment used to produce our Linux builds. If they=
=20
> did this, people would be able to download these archives and chroot=20
> into them. In theory, bit-identical builds to Mozilla's official builds=
=20
> would be possible. Would this interest you?

Yes, this would interest me very much!  It sounds like an easier and more r=
eliable way to set up the environment than doing so manually.

-myk
0
myk
7/19/2013 7:28:30 PM
On 7/19/13 12:28 PM, myk@mozilla.org wrote:
> On Friday, July 19, 2013 11:43:58 AM UTC-7, Gregory Szorc wrote:
>> Did you see
>>
>> https://developer.mozilla.org/en-US/docs/Compiling_32-bit_Firefox_on_a_Linux_64-bit_OS
>>
>> ?
>
> No, I hadn't seen that; thanks for the reference!
>
> Now that I know it's there, I see there's a link to it in Build Instructions > Random FAQs and Developer Documentation <https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions#Random_FAQs_and_Developer_Documentation>.
>
> But I never got that far down the Build Instructions page, since I clicked through to the Linux Prerequisites page referenced above it, which still claims you only need "512MB RAM with lots of available swap space. For static and XULRunner builds, 1GB RAM minimum. Additional RAM will significantly decrease build time."
>
> It seems like we should update that to note the new requirements for building on 32-bit systems (disabling PGO?), recommend building on 64-bit systems instead, and point to your new doc.

The build docs are all so bad and outdated. I wish I could find time to 
justify a build docs sprint.

Lately, I'm more inclined to write code in the tree that guides the user 
into doing the right thing (e.g. have the build warn the user when 
building with insufficient memory, help with system bootstrap, etc). Why 
write manual procedures when they can be automated? That's no substitute 
for good docs, I know. It's just hard to prioritize these efforts.

>> I've been thinking about asking Release Engineering to post an archive
>> of the mock/chroot environment used to produce our Linux builds. If they
>> did this, people would be able to download these archives and chroot
>> into them. In theory, bit-identical builds to Mozilla's official builds
>> would be possible. Would this interest you?
>
> Yes, this would interest me very much!  It sounds like an easier and more reliable way to set up the environment than doing so manually.

https://bugzilla.mozilla.org/show_bug.cgi?id=896023 filed!

0
Gregory
7/19/2013 7:53:53 PM
On Friday, July 19, 2013 12:53:53 PM UTC-7, Gregory Szorc wrote:
> Lately, I'm more inclined to write code in the tree that guides the user 
> into doing the right thing (e.g. have the build warn the user when 
> building with insufficient memory, help with system bootstrap, etc). Why 
> write manual procedures when they can be automated? That's no substitute 
> for good docs, I know. It's just hard to prioritize these efforts.

Sure, understood, and good guidance in the code itself is also welcome!


> https://bugzilla.mozilla.org/show_bug.cgi?id=896023 filed!

Thanks!

-myk
0
myk
7/19/2013 11:00:08 PM
Reply:

Similar Artilces:

Building 64 bit Python against 32 bit ASE on 64-bit Linux
I've been using various version of SYBASE=/usr/local/packages/sybase* to no avail. They all are giving me errors lated to "libblk". any ideas? /usr/bin/ld: skipping incompatible /usr/local/packages/sybase_OLD/lib/libblk.a when searching for -lblk If possible could you CC mrogish at tigr dot org since I am using the Sybase.com forums reader and it is difficult to bookmark this thread. Thanks!!! -- Matt Rogish cronus:/local/src/Linux64/python/modules/sybase-0.37 # /usr/local/packages/python64-2.4.2/bin/python setup.py build running build running build_py c...

32-bit build of TraceMonkey on 64-bit Linux
Hi, Andreas told me that TraceMonkey doesn't work on 64-bit Linux; 'js -j' just runs SpiderMonkey. So I'm trying to do a 32-bit build of 'js' on my 64-bit Ubuntu Linux box. I tried: ./configure --disable-optimize --enable-debug --target=3Di386- unknown-linux-gnu make (my default target is "x86_64-unknown-linux-gnu") but I get lots of compile errors: jscpucfg.cpp:48:21: error: prtypes.h: No such file or directory jscpucfg.cpp:206:2: error: #error "Endianess not defined." jscpucfg.cpp:103: error: =91PRInt64...

about "Switch default hash to SIPHASH on 64 bit builds and ONE_AT_A_TIME on 32 bit builds"
http://perl5.git.perl.org/perl.git/commit/3db6cbfca39da94d152d3e860e2aa79b9c6bb161 why? what are the disadvantages? What is the difference between a 64 build and a 32 bit build? What about compilers/platforms that have compiler emulated 64 bit integers, like 32 bit x86? There was an IRC conversation I read, but I didn't see any answers to the above. On 5 December 2012 02:28, bulk88 <bulk88@hotmail.com> wrote: > http://perl5.git.perl.org/perl.git/commit/3db6cbfca39da94d152d3e860e2aa79b9c6bb161 > why? what are the disadvantages? Murmurhash has been broken. It is...

Create a production build of Firefox for Microsoft 64-bit OSs (Vista 64, MS Windows 2008 Server 64-bit)
Name: Dmitry Viazmin Email: dmitrydotviazminattutdotby Product: Firefox Summary: Create a production build of Firefox for Microsoft 64-bit OSs (Vista 64, MS Windows 2008 Server 64-bit) Comments: Hi, It would be great to get a production build of Firefox for Microsoft 64-bit OSs (Vista 64, MS Windows 2008 Server 64-bit). Do you plan to do that? Best Regards, Dmitry Viazmin Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a...

superreview requested: [Bug 303508] Add freebl shared libs that do only 64-bit integer math : [Attachment 197136] Replace IS_64 with new symbol that says "use 64 bit registers in 32-bit build"
Saul Edwards <saul.edwards.bugs@sun.com> has asked Wan-Teh Chang <wtchang@redhat.com> for superreview: Bug 303508: Add freebl shared libs that do only 64-bit integer math https://bugzilla.mozilla.org/show_bug.cgi?id=303508 Attachment 197136: Replace IS_64 with new symbol that says "use 64 bit registers in 32-bit build" https://bugzilla.mozilla.org/attachment.cgi?id=197136&action=edit ------- Additional Comments from Saul Edwards <saul.edwards.bugs@sun.com> I tested the performance of this patch on ultrasparc 3 (v440) and a target architecture for th...

superreview granted: [Bug 303508] Add freebl shared libs that do only 64-bit integer math : [Attachment 197136] Replace IS_64 with new symbol that says "use 64 bit registers in 32-bit build"
Wan-Teh Chang <wtchang@redhat.com> has granted Wan-Teh Chang <wtchang@redhat.com>'s request for superreview: Bug 303508: Add freebl shared libs that do only 64-bit integer math https://bugzilla.mozilla.org/show_bug.cgi?id=303508 Attachment 197136: Replace IS_64 with new symbol that says "use 64 bit registers in 32-bit build" https://bugzilla.mozilla.org/attachment.cgi?id=197136&action=edit ------- Additional Comments from Wan-Teh Chang <wtchang@redhat.com> You can check in this patch. The problems I pointed out can be remedied as follows: 1....

superreview denied: [Bug 303508] Add freebl shared libs that do only 64-bit integer math : [Attachment 197136] Replace IS_64 with new symbol that says "use 64 bit registers in 32-bit build"
Wan-Teh Chang <wtchang@redhat.com> has denied Saul Edwards <saul.edwards.bugs@sun.com>'s request for superreview: Bug 303508: Add freebl shared libs that do only 64-bit integer math https://bugzilla.mozilla.org/show_bug.cgi?id=303508 Attachment 197136: Replace IS_64 with new symbol that says "use 64 bit registers in 32-bit build" https://bugzilla.mozilla.org/attachment.cgi?id=197136&action=edit ------- Additional Comments from Wan-Teh Chang <wtchang@redhat.com> Saul, Nelson: I'm sorry that my review comments are verbose. But I must point ...

Building 32-bit SpiderMonkey on x86-64 systems
This is a multi-part message in MIME format. --------------040804000909080309090505 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Andreas. I tried building a 32-bit SpiderMonkey on your machine, and didn't run into the problems you were seeing. For the sake of completeness, here's my whole login session (I cloned http://hg.mozilla.org/tracemonkey yesterday as ~/mc/tm); see lines 61 and 62, in particular. 58 cd mc/tm/js/src 59 mkdir obj32~ 60 cd obj32~/ 61 (cd ..; autoconf-2.13) 62 CC='...

Detecting 32 or 64-bit Firefox build from privileged JS
The DevTools team need to log some telemetry about whether the current Firefox build is 32 or 64-bit. I was told to use XPCOMABI but the possible results are x86, x86_64, ia_64, ppc, SPARC, Alpha or ARM. The problem is that early mac versions were 32-bit so assuming ppc is 64-bit is not accurate. Most cellphones that have an ARM processor are 32-bit but not all. There are similar issues with SPARC and Alpha. Does anybody know a reliable way to detect a 32 or 64-bit build? I am happy to extend XPCOMABI if that is what it takes. Here is the current unreliable code: + _getIs64Bits...

Building Windows 64 bit builds
Hello, I am trying to build Windows 64 bit builds and I would like to know who has been building it recently since I am hitting build errors. I think that I have set up the requirements correctly (I have passed the configure step) but I am getting this build error. c:/Users/Administrator/armenzg/mozilla-central/build/win32/vmwarerecordinghelper/vmwarerecordinghelper.cpp(66): error C2143: syntax error : missing ';' before '}' I don't think that the Makefile should be calling anything on the "win32" folder there. http://mxr.mozilla.org/mozilla-cen...

Linux distributions offering 64 bit builds of Firefox with official branding
Need I really say more ? In my opinion, it's really clear : Official branding => supported by mozilla Not supported by mozilla => No official branding The current situation is impossible to explain to the casual Linux user : - We cant' help you, you're not using a 32 bit build, it's not supported. - What do you mean ? It's an official build, it comes from my official's depository, and it's has the Firefox logo everywhere !" So I really believe that in the current state of thing, Linux distributions are abusing their delegati...

Permanently dropping testing of 32-bit Linux desktop Firefox debug builds
Starting a new thread for this so that discussion doesn't get lost/mixed with the **temporarily** discussion: Karl Tomlinson wrote: >> BTW, disabling linux32 debug tests long term is probably quite >> reasonable as the extra coverage over linux32 opt and linux64 >> debug is quite minimal. John O'Duinn writes: > Karl: this is quite interesting - can you elaborate? If "linux32 debug" > is not buying us much value, then I would assert that is a *lot* of CPU > load savings for us all. Karl, is that something you can make > determina...

openSUSE 32 bit on a 64 bit system
Hello Guys, I've just installed openSUSE 11.1 32 bit on my 64 bit system. I want to know if this will produce any conflicts?? especially in drivers? because i cannot install NVIDIA drivers on my system. is it a result of that?! Why i did this ? because we had the 64 bit on the computer, but it had kde 4.4.4 with itself and it was TOO unstable. ( everything crashed because of segmentation fault in libqt). Further more, getting more help, we use this computer ( intel quad core, 8 GB ram, 1.5 GB Nvidia ), as a server. HTTP server and it also controls our serial-port devices...

32-bit ASA on 64-bit system
Greetings, are there any policies/guarantees from Sybase that SQL Anywhere (9.0.2.3632) will work well on a 64-bit machine with a 32-bit Windows installed? Thanks in advance Pavelleus Pavel, The expectation is that it works - we don't have any policies to this effect, aside from saying that we support our software on 32-bit Windows (See: http://www.sybase.com/detail?id=1002288 ). Regards, Pavel Karady wrote: > are there any policies/guarantees from Sybase that SQL Anywhere (9.0.2.3632) > will work well on a 64-bit machine with a 32-bit Windows > i...

Web resources about - instructions for building 32-bit Linux Firefox on 64-bit system - mozilla.dev.builds

Instruction - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Wests Tigers skipper Robbie Farah on probation after club issues pre-season instructions
Wests Tigers legend Robbie Farah's ability to continue training with the club's NRL squad in 2016 depends upon his behaviour - and performance ...

A controversial religious instruction program is being taught at preschool
Special religious instruction is now being offered to the childcare market by a major provider following the scrapping of SRI from class time ...

Link: Agile Coaching and Flight Instruction – An Emotional Connection
... culture with the Real Agility Program My friend Mike Caspar has another great blog post: Similarities between Agile Coaching and Flight Instruction. ...

Saudi minister: Pilgrims may have ignored instructions
Health minister says Hajj stampede may have been caused by pilgrims who failed to follow instructions by authorities.

ARM Announces ARMv8-M Instruction Set For Microcontrollers – TrustZone Comes to Cortex-M
... announcements reserved for TechCon and this year is no exception. Being unveiled at 2015’s show is the ARM Cortex-A35 CPU and the ARMv8-M instruction ...

DoorDash, a food delivery startup that's rumored to be raising at a $1 billion valuation, has some shady ...
DoorDash, a two-year-old startup that lets you buy meals from local restaurants on-demand, is rumored to be raising a new round of financing ...

Mom Says Playmobil Pirate Set Had Racist Instructions To Shackle Dark-Skinned Character
The dark-skinned character with no shoes and tattered pants came with instructions to put some sort of neck piece on him.

Mom says Playmobil pirate set comes with racist instructions
Pirate play-set comes with instructions to shackle a dark-skinned character who appears to be a slave, California mom says

This Tortoise Could Use Some Better Climbing Instruction
Submitted by: (via Toms Tom ) Tagged: tortoise , funny , Video Share on Facebook

Resources last updated: 12/21/2015 11:27:52 PM