Wow, my Rock64 built Firefox 61.0.2
#1
Photo 
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...al/Bundles but I didn't do mozilla-central (this time).

   
  Reply
#2
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!
  Reply
#3
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.
  Reply
#4
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.
  Reply
#5
(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
  Reply
#6
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.
  Reply
#7
(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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  openwrt for the rock64 wilsonYan 10 5,154 3 hours ago
Last Post: gechu
  Armbian for Rock64 pineadmin 31 19,073 05-08-2021, 09:35 AM
Last Post: Wizzard
  slarm64 (unofficial slackware) Rock64 RK3328 (aarch64) mara 113 56,451 05-02-2021, 04:48 AM
Last Post: mara
  Setting a MAC on Rock64 U-Boot kiriakos 2 381 03-23-2021, 04:51 AM
Last Post: kiriakos
  Getting from zero to spidev on ROCK64? MikeInMass 0 197 03-22-2021, 10:31 AM
Last Post: MikeInMass
  NextCloudPi image for Rock64, NC version 13.0.2. nachoparker 11 10,761 03-15-2021, 02:59 PM
Last Post: kiriakos
  DietPi OS for ROCK64 MichaIng 11 3,054 03-10-2021, 11:00 AM
Last Post: MichaIng
  Linux Images (ROCK64) pineadmin 164 143,665 02-12-2021, 10:14 AM
Last Post: useful64
  RETRO-GAMING: UPDATED RELEASE OF RECALBOX FOR THE ROCK64 Mrfixit2001 31 22,757 12-21-2020, 08:17 AM
Last Post: hermes73
  RetroPie on Rock64 Luke 40 28,179 10-31-2020, 07:12 AM
Last Post: BigSkyEntertainment

Forum Jump:


Users browsing this thread: 1 Guest(s)