Change: Thin LTO Build Flag (F47) #3692

Closed
opened 2026-10-01 11:49:47 +00:00 by amoloney · 10 comments
Owner

At present, many packages are built with fat link time optimization (LTO) objects. This can increase RAM requirements and build times. There is a build flag to disable LTO completely. But by using slim objects, one can still have the performance and size improvements offered by LTO with less of a build time cost.

Owners, do not implement this work until the FESCo vote has explicitly ended.
When a FESCo member has marked this ticket as APPROVED, you may proceed with the implementation. See the FESCo ticket policy and the Changes policy for more information.
If no decision has been rendered after 7 days from the filing of this ticket and no indication (such as a -1 vote) that this will be taken up at a FESCo meeting, please feel free to ping for a status update.

REMINDER: This ticket is for FESCo members to vote on the proposal. Further discussion should happen in the Discourse discussion linked above. Additional discussion may happen on the Fedora Devel mailing list.

At present, many packages are built with fat link time optimization (LTO) objects. This can increase RAM requirements and build times. There is a build flag to disable LTO completely. But by using slim objects, one can still have the performance and size improvements offered by LTO with less of a build time cost. * [Change proposal](https://fedoraproject.org/wiki/Changes/Thin-LTO-Build-Flag) * [devel post](https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/VCHRBAYTBSTA5KLXTGQ2OJQH36O65SMU/) * [Discourse Poll](https://discussion.fedoraproject.org/t/f47-change-proposal-thin-lto-build-flag-self-contained/201111/2) * Owners: @fed500 **Owners, do not implement this work until the FESCo vote has explicitly ended.** When a FESCo member has marked this ticket as APPROVED, you may proceed with the implementation. See the [FESCo ticket policy](https://docs.fedoraproject.org/en-US/fesco/#_ticket_policy) and the [Changes policy](https://docs.fedoraproject.org/en-US/program_management/changes_policy/) for more information. If no decision has been rendered after 7 days from the filing of this ticket and no indication (such as a -1 vote) that this will be taken up at a FESCo meeting, please feel free to ping for a status update. **REMINDER**: This ticket is for FESCo members to vote on the proposal. Further discussion should happen in the Discourse discussion linked above. Additional discussion may happen on the [Fedora Devel](https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/) mailing list.
Author
Owner

cc @fed500

cc @fed500
Member

I see ~108 packages set %_lto_cflags, out of which ~106 set the to %nil. So this has potential to make a meaningful difference.

Re-reading the discussion on fedora-devel, I see that doubts were raised how effective this would be. To make things concrete, what would the effect on webgitgtk be: compilation time, maximum memory use w/ normal lto and thin lto and no lto?

I see ~108 packages set `%_lto_cflags`, out of which ~106 set the to `%nil`. So this has potential to make a meaningful difference. Re-reading the discussion on fedora-devel, I see that doubts were raised how effective this would be. To make things concrete, what would the effect on webgitgtk be: compilation time, maximum memory use w/ normal lto and thin lto and no lto?
Member

@fed500 Are you getting the notifications here?

@fed500 Are you getting the notifications here?

@zbyszek Thanks for the notification. Will do a build of webkitgtk with the different options by end of next week.

@zbyszek Thanks for the notification. Will do a build of webkitgtk with the different options by end of next week.
Member

Note: This proposal has technically been rejected already according to in-ticket voting rules since it has received zero votes within two (in this case, even three) weeks (https://docs.fedoraproject.org/en-US/fesco/#ticket-votes).

Note: This proposal has technically been rejected already according to in-ticket voting rules since it has received zero votes within two (in this case, even three) weeks (<https://docs.fedoraproject.org/en-US/fesco/#ticket-votes>).

Have responded to all discussion on list:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/VCHRBAYTBSTA5KLXTGQ2OJQH36O65SMU/

Sorry, it took some time to get to it.

Straw poll seems to have many people strongly in favour:
https://discussion.fedoraproject.org/t/f47-change-proposal-thin-lto-build-flag-self-contained/201111

Can file a new change request if required.

Have responded to all discussion on list: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/VCHRBAYTBSTA5KLXTGQ2OJQH36O65SMU/ Sorry, it took some time to get to it. Straw poll seems to have many people strongly in favour: https://discussion.fedoraproject.org/t/f47-change-proposal-thin-lto-build-flag-self-contained/201111 Can file a new change request if required.
Member

As it currently stands, I am unconvinced that this change is a good idea. We have other knobs for resource control and making the default case broken for multi-compiler LTO is just a bad idea as polyglot projects become more common in the Fedora corpus.

As it currently stands, I am unconvinced that this change is a good idea. We have other knobs for resource control and making the default case broken for multi-compiler LTO is just a bad idea as polyglot projects become more common in the Fedora corpus.

This would not change the default. It would introduce a build option that would make it easier to track this setting and allow consistent application in different packages. As indicated, there are 106 packages which set %_lto_cflags to nil, so having a documented intermediate option can improve things.

This would not change the default. It would introduce a build option that would make it easier to track this setting and allow consistent application in different packages. As indicated, there are 106 packages which set `%_lto_cflags` to `nil`, so having a documented intermediate option can improve things.

WebKitGTK is built with clang, direct use of GCC without changing anything results in build failures. Clang also has LTO options that are different than what is in GCC, but seem to result in shorter build times:

For GCC will do a comparison using Highway.

WebKitGTK is built with clang, direct use of GCC without changing anything results in build failures. Clang also has LTO options that are different than what is in GCC, but seem to result in shorter build times: - http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html - https://clang.llvm.org/docs/ThinLTO.html For GCC will do a comparison using Highway.
Member

This proposal has not received any votes in five weeks. According to the voting rules for in-ticket votes, it is REJECTED (and I have not seen any reason why we should not follow our documented policies here):

If there are insufficient +1 votes at the end of one week, one additional week will be granted. (...) If there are no votes at all, the proposal is considered rejected and the status quo will be maintained. The submitter may at this time make a new proposal which will be processed following the usual rules.

see https://docs.fedoraproject.org/en-US/fesco/#ticket-votes

This proposal has not received any votes in five weeks. According to the voting rules for in-ticket votes, it is REJECTED (and I have not seen any reason why we should not follow our documented policies here): > If there are insufficient +1 votes at the end of one week, one additional week will be granted. (...) If there are no votes at all, the proposal is considered rejected and the status quo will be maintained. The submitter may at this time make a new proposal which will be processed following the usual rules. see <https://docs.fedoraproject.org/en-US/fesco/#ticket-votes>
decathorpe 2026-11-06 15:05:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
fesco/tickets#3692
No description provided.