Hi Lorenzo,

Am Tue, Oct 24, 2023 at 08:11:29PM +0000 schrieb Lorenzo Salvadore:
> Disabling LTO_BOOTSTRAP option by default has
> already been done for the devel ports on the i386, amd64
> and aarch64 architectures (so for all tier 1 platforms):
> https://cgit.freebsd.org/ports/commit/?id=daf12c76bd531335f58e7602afd3bc8da8fc5c33
> The same is about to be done for the production ports
> too as part of a larger update:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273397

This is great news and I hope sincerely that this change will be
applied to all ports.

> However, please note that LTO_BOOTSTRAP is an option:
> if the build times are too long for you, you can disable
> the option. The option has been enabled by default to
> distribute optimized packages, not because it is recommend
> to build the port with that option enabled. Actually, I even
> wrote a warning about it in pkg-help.

As mentioned earlier, it is impossible for me to know if non-default
build options have any effect downstream, so for acceptance testing
(i.e. testing before I commit an update), I don't think I should use
any non-default options.

Perhaps we can reach a consensus on whether LTO_BOOTSTRAP being the
default really makes sense.  The same applies to LTO use in other
ports.  Sure it's nice for performance, but for most software, there
is barely any difference and build times suffer significantly.

Maybe LTO could be enabled on a per-port basis where it has been
established that the port significantly benefits?

> I think that for most people disabling any bootstrap is
> perfectly fine, still enabling it by default should produce
> more stable official packages (I have not checked: GCC ports are
> very complex to maintain and I have lots of higher priorities
> issues to solve). Again, users are free to disable
> the option if they want faster builds and do not need any bootstrap.

Thank you for your hard work on this port.

> Cheers,
> 
> Lorenzo Salvadore

Yours,
Robert Clausecker

-- 
()  ascii ribbon campaign - for an 8-bit clean world 
/\  - against html email  - against proprietary attachments

Attachment: signature.asc
Description: PGP signature

Reply via email to