4 ms·
Not GP, I am a Gentoo user that compiles ungoogled-chromium from source. I have a 16-core AMD CPU. Despite that, it takes 4-8 hours to compile, due to two fact
by ghoward 5y ago
Not GP, I am a Gentoo user that compiles ungoogled-chromium from source. I have a 16-core AMD CPU.
Despite that, it takes 4-8 hours to compile, due to two factors: 40,000+ separate targets, of which most are C++ files (famously slow to compile anyway).
And yes, 40,000+ separate targets is no exaggeration; ninja's first run claims about 18,000 targets, and after it finishes those, it generates a second ninja file that has to compile 23,000 targets.
I personally think it's worth it. Others may disagree, and I can't blame them. I have to run it overnight.
- danaos 5y agoIt typically takes more than 20 hours on my dual core laptop. It's a pain, but once compiled I get the best of both worlds: fast as chrome, privacy friendly as firefox. EDIT: Looks like popularity is on the rise [1]. Hopefully it will make it into the community repository. [1] https://pkgstats.archlinux.de/packages/ungoogled-chromium https://pkgstats.archlinux.de/packages/ungoogled-chromium
- nicce 5y agoSomething is off there. I have Ryzen 3900X and it takes around 1-1,5 hours to compile ungoogled chromium. It is really hard to keep up-to-date with security patches if you need to compile every few days from source with that time.. Edit: Also 32GB RAM which matters
- throwdbaaway 5y agoHere with Ryzen 5700G, it takes almost 2.5 hours to compile chromium (doing one at the moment). This is with /var/tmp/portage mounted on tmpfs.
- ghoward 5y agoI have a 3900, no X, and 32 GB of RAM. I used to use a tmpfs, but I found that the build would run out of memory.
- nicce 5y agoWhat if you try to compile in similar way than here? https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ungoogled-chromium https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ungoo... Edit: Also, 3900 is 3900X running on eco mode (same spec but half power). You might get a lot more performance by tuning BIOS settings.
- ghoward 5y agoI'm not going to try to compile by hand, unfortunately. <shudder> I'll take a peek at the BIOS, but I'll also no good at doing such things.
- bee_rider 5y agoDo you have to do the make clean all, or equivalent, every time? Chrome has a ton of bits and bobs built in, right? Not all of which need to be updated every time (I guess?). I wonder how it compares to the build time of something with equivalent functionality, like firefox.
- numpad0 5y agoThe fact that it takes 1.5 hours on essentially an early 2000s supercomputer cluster full steam ahead to compile a fancy HTML viewer with integrated lightweight Java-like mini script language is bonkers.
- prurigro 5y agoAre you building on an HDD? I went from 3-4 hours to under two when I switched to an SSD.
- ghoward 5y agoIt's off an SSD. I have an SSD for my OS, which is where /var/tmp is on my machine.