Re: REALLY SLOW chromium compilation

From: Rozhuk Ivan <rozhuk.im_at_gmail.com>
Date: Wed, 25 Jun 2025 18:54:36 UTC
On Fri, 20 Jun 2025 11:20:33 -0400
George Mitchell <george+freebsd@m5p.com> wrote:

> Compiling www/chromium has never been a fast operation, but a couple
> of months ago on my AMD Ryzen 5 2600X, it took a mere 16 to 18 hours
> to compile, and the last couple of times it has been taking over two
> days! I've been running 14.2-RELEASE since the end of January, and I
> believe chromium started using llvm-19 to compile last December.  I
> can't think of any other aspect of my system that changed more
> recently than that, but I could be wrong.
> 
> Is anyone else encountering this as well?  Thanks!           -- George

A few years ago cromium grow from 30k compile files to 50k.
And new versions of llvm is more slower than old, llvm 3.xx that was in base - was very fast even on coreduo.

Probably you can try build without optimizations, like -O0 to waste less time on compile, but
result will consume more CPU.

On my 5950x without turbo boost, with fixed freq = 2000 mHz and on 24 cores it takes 6+ hours.