07-29-2018, 08:56 AM
(This post was last modified: 08-02-2018, 09:45 AM by ab1jx.
Edit Reason: add LVM/clang instructions, typos
)
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).
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).