[Bug 265254] lang/gcc11: build gets stuck

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

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

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.

At the moment the approach I have taken is leaving  LTO on by default but
warning about it as much as possible: I have created a pkg-help file in all
relevant ports, I am informing on IRC and I am adding a note to the latest gcc
quarterly report ( https://github.com/freebsd/freebsd-quarterly/pull/489 , I am
going to update it with your case).
And of course I am tracking bugzilla, as you have seen.

Now, if I have understood correctly, your issue is not a bug, but it is instead
the consequence of an optimization which requires a lot of resources (too much)
in your particular configuration (not shared by the package builders, which are
able to compile gcc11 successfully), is that right?

If it is a bug, we need to fix it. If it is not, I am sorry, but you need to
tweak your configuration: if you happen to do anything more special than
disabling LTO_BOOTSTRAP to do so, please let me know so that I can inform other
users about it.

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