[Bug 265254] lang/gcc11: build gets stuck

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 Jul 2022 22:41:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265254

--- Comment #7 from Yuri Victorovich <yuri@freebsd.org> ---
(In reply to Lorenzo Salvadore from comment #5)

> While I also would like to disable LTO by default, others consider that LTO should be enabled by default so that official packages are built as optimized as possible, while users building their own ports should just disable the option if they are unhappy with it.

The problem is not that LTO is "very resource consuming". The problem is that
GCC mal-parallelized the build and it is spawning exceedingly many processes.
Such mal-parallelization is a pitfall of GNU Make. All one has to do is to use
-jN at multiple levels of the directory hierarchy and similar effect would be
achieved.
They should fix the bug first before others use this feature.
I am not sure why this buggy feature was enabled in the FreeBSD port in the
first place.

-- 
You are receiving this mail because:
You are the assignee for the bug.