News for hackers. Stuff that matters.
Re:Google Chromium, sans integration with Google by Uehreka on Monday November 29, 2021 @05:47PM (#29386313)
Does Chromium have `make -j$(nproc)` or equivalent? Because a few hours on a fairly recent processor with a whole bunch of cores sounds long.
Re:Google Chromium, sans integration with Google by ghoward on Monday November 29, 2021 @05:54PM (#29386391)
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.

Re:Google Chromium, sans integration with Google by nicce on Monday November 29, 2021 @06:45PM (#29386908)
Something 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

Re:Google Chromium, sans integration with Google by numpad0 on Monday November 29, 2021 @11:29PM (#29388970)
The 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.
Re:Google Chromium, sans integration with Google by cylon13 on Tuesday November 30, 2021 @02:46AM (#29389893)
You may be under-appreciating just how fancy this thing is.
Re:Google Chromium, sans integration with Google by Nextgrid on Tuesday November 30, 2021 @04:36AM (#29390461)
I wonder how long does Java (which actually has a standard library, unlike JavaScript) take to compile? Would be an interesting comparison.
Re:Google Chromium, sans integration with Google by ghoward on Tuesday November 30, 2021 @10:23AM (#29393080)
Far less on my machine. I think 1 hour?
Re:Google Chromium, sans integration with Google by throwdbaaway on Monday November 29, 2021 @07:19PM (#29387177)
Here 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.
Re:Google Chromium, sans integration with Google by ghoward on Monday November 29, 2021 @08:02PM (#29387493)
I 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.
Re:Google Chromium, sans integration with Google by nicce on Tuesday November 30, 2021 @07:19AM (#29391319)
What if you try to compile in similar way than here? 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.

Re:Google Chromium, sans integration with Google by ghoward on Tuesday November 30, 2021 @10:27AM (#29393128)
I'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.

Re:Google Chromium, sans integration with Google by bee_rider on Monday November 29, 2021 @08:39PM (#29387748)
Do 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.

Re:Google Chromium, sans integration with Google by danaos on Monday November 29, 2021 @06:18PM (#29386636)
It 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

Re:Google Chromium, sans integration with Google by prurigro on Monday November 29, 2021 @08:46PM (#29387803)
Are you building on an HDD? I went from 3-4 hours to under two when I switched to an SSD.
Re:Google Chromium, sans integration with Google by ghoward on Monday November 29, 2021 @11:26PM (#29388952)
It's off an SSD. I have an SSD for my OS, which is where /var/tmp is on my machine.
Re:Google Chromium, sans integration with Google by ori_b on Monday November 29, 2021 @06:15PM (#29386614)
Chromium is big. I think the last time I looked, it's larger than all the BSDs combined.
Re:Google Chromium, sans integration with Google by throwaway2077 on Monday November 29, 2021 @06:10PM (#29386558)
holy shit, what did the other dude who replied to this 15 minutes ago do?
Re:Google Chromium, sans integration with Google by contravariant on Monday November 29, 2021 @06:15PM (#29386612)
Well going by some of their other comments, probably not nothing.