PINE64
Wow, my Rock64 built Firefox 61.0.2 - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: Wow, my Rock64 built Firefox 61.0.2 (/showthread.php?tid=6330)



Wow, my Rock64 built Firefox 61.0.2 - ab1jx - 07-29-2018

In 9 hours 34 minutes.  Several sites I visit whine about my browser version using what's in the debs, Badoo refuses to work at all.  So I've tried a few times to build current Firefox.  This was done from an hg bundle because it was the only thing I could pull through intact enough to work.  It's about 1.5 GB of source code, the build directory at the end is 5.9 GB.  This is a 4 GB Rock64 with a 6 GB swapfile.

Rust and LLVM/Clang I had to build from sources because the deb versions were too old (rustup update will work for Rust), everything else is from the debs.  LLVM documentation has a lot of old cruft in it.  But unxz and untar both llvm and cfe (clang).  Then inside the llvm dir make a tools/clang dir and move the contents of the clang tarball into it (skip the outer level directory).  That way building and installing llvm will also do clang.  You have to use cmake, not the configure script, so do mkdir build and cd into that, then "cmake ..".  Edit your new CMKakeCache.txt and put in TOP_LEVEL_DIR=/usr/local/llvm (or wherever you want LLVM installed) then run "cmake .." again.  Now run make and make install.  I'm just doing it over  again on a Pi [that didn't work].

There's a list of requirements, I kept working through that and tracking things down from error messages.  There's a bootstrap.py in there somewhere, that helped a little but in the end ./mach build ran straight through.  I started with a tarball, I forget why that didn't work.  Then I tried to use git, but that only works on perfect networks, so I did the bundle.   All the attempts helped me get the requirements right.  I grabbed from https://hg.cdn.mozilla.net/ using the releases/mozilla-release at the bottom.  I mostly followed https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Source_Code/Mercurial/Bundles but I didn't do mozilla-central (this time).

   


RE: Wow, my Rock64 built Firefox 61.0.2 - a1w.ca - 08-15-2018

Wow indeed! That's a lot of dedication.

I wonder if it would have built faster had you decreased the amount of concurrency. That load average means your CPU was working harder than it could and you likely lost some performance because of that.

My longest build on here was compiling Mixxx 2.1 from scratch, that took 90 minutes with gcc/make -j 3 with all source files in a 3GB tmpfs:

tmpfs on /tmpfs type tmpfs (rw,nosuid,nodev,noexec,noatime,size=3215660k)

@ab1jx good job!


RE: Wow, my Rock64 built Firefox 61.0.2 - ab1jx - 08-16-2018

I consider under 10 hours quite acceptable, especially considering I don't plan to do it more than once a year or so.  It's not unlike building a kernel.  1.5 GB of source to compile.

I've tried maybe 6 times to do this on a Raspberry Pi 3B, with both Raspbian and 64 bit Debian, I've probably given up, maybe I'll try it again.  The Mozilla docs recommend 10 GB of RAM and of course a Pi only has 1.  I've had it build for something over 2 days then fail in the end.  I've tried swap files on the main SD as well as on an SD plugged into a USB reader.  I'm not sure you can change the concurrency, it's pretty aggressive already.  While it's building if you click something you wait a few seconds for a response.  Cross-compiling on a Rock to be run on a Pi would probably be my next approach.  So far my Pis are much more stable then the Rock, but the Rock's improving.  Firefox pretty much wants current LLVM/clang and Rust, so you have to build those first, my last Pi attempt died somewhere in the LLVM build.  No, it built LLVM but didn't pick up Clang and build that at the same time like it did on the Rock.  make install couldn't find clang to install it because it didn't get built, AFAIK I did it the same as on the Rock: I made a tools/clang dir and copied the clang source tree into it.


RE: Wow, my Rock64 built Firefox 61.0.2 - ab1jx - 10-21-2018

And now 2 months later it's been up and running for 35 days.  I guess it's stable enough to suit my purposes.  Ayufan image with standard updates and upgrades 4.4.132-1083.  It's just been sitting here cpumining Litecoin as a burn-in test.  Maybe I'll give away one of my Raspberry Pis and buy a ROCKPro64.  Haven't been on here complaining in forever, everything's running fine. Or maybe I'll get a Pinebook.


RE: Wow, my Rock64 built Firefox 61.0.2 - tllim - 10-23-2018

(10-21-2018, 02:41 PM)ab1jx Wrote: And now 2 months later it's been up and running for 35 days.  I guess it's stable enough to suit my purposes.  Ayufan image with standard updates and upgrades 4.4.132-1083.  It's just been sitting here cpumining Litecoin as a burn-in test.  Maybe I'll give away one of my Raspberry Pis and buy a ROCKPro64.  Haven't been on here complaining in forever, everything's running fine.  Or maybe I'll get a Pinebook.

Glad that your ROCK64 runs well Smile


RE: Wow, my Rock64 built Firefox 61.0.2 - a1w.ca - 10-23-2018

My ROCK64 has also been rock solid for almost one year now. I wish I could stick it into a laptop case for a mobile version. The Pinebook isn't quite the same, unfortunately.

I had high hopes for the original Nexdock (byo sbc) but now it all seems vapourware.


RE: Wow, my Rock64 built Firefox 61.0.2 - tllim - 10-23-2018

(10-23-2018, 06:27 PM)a1w.ca Wrote: My ROCK64 has also been rock solid for almost one year now. I wish I could stick it into a laptop case for a mobile version. The Pinebook isn't quite the same, unfortunately.

I had high hopes for the original Nexdock (byo sbc) but now it all seems vapourware.

I thinks you can using ROCK64 with Nexdock.