Bug 1986627 - nss disables LTO in Fedora
Summary: nss disables LTO in Fedora
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nss
Version: 35
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Bob Relyea
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1986987
TreeView+ depends on / blocked
 
Reported: 2021-07-27 22:33 UTC by Dave Malcolm
Modified: 2021-12-08 17:24 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
: 1986987 (view as bug list)
Environment:
Last Closed: 2021-12-08 17:24:05 UTC
Type: Bug
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 1721995 0 -- UNCONFIRMED libnss3 broken on s390x when compiled with LTO (-flto) 2021-07-28 00:07:58 UTC

Description Dave Malcolm 2021-07-27 22:33:40 UTC
nss opted out of building with LTO in Fedora in 3.55.0-2:
  https://src.fedoraproject.org/rpms/nss/c/d4e86043ee0de880c84f0d6ce5267a5ce16c97ef
with the message:
  # This package fails its testsuite with LTO.  Disable LTO for now
and building it with LTO is currently still disabled in rawhide.

It would be good to either:
(a) enable LTO for nss in Fedora so that nss can benefit from LTO (smaller/faster machine code, deeper analysis for compiler warnings, etc), or
(b) capture what the problem was, in case something needs fixing in nss, or at the toolchain end.

Hence this bug.  What specific issues do you run into if you remove the
  %global _lto_cflags %{nil}
?  Is this being tracked in upstream nss or upstream gcc?  (and do you need help from the toolchain team on this?)

Thanks
Dave

Comment 1 Bob Relyea 2021-07-28 00:08:02 UTC
It looks like Daiki turned if off last year. I'll have to see what the actual failure is. I'm currently running an nss rebuild to handle the mass rebuild issue.
Daiki's comments indicated that the nss upstream tests, which are run as part of the the nss build, fails with lto_cflags on.

Looks like there wasn't an upstream bug originally, bug umbutu has one now:
https://bugzilla.mozilla.org/show_bug.cgi?id=1721995

They had problems with s390.

When my current NSS build is complete, I'll do a scratch build to see which tests and platforms fail if I turn lto on.

Comment 2 Ben Cotton 2021-08-10 13:46:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 3 Bob Relyea 2021-12-08 17:24:05 UTC
The builds evidentally completed correctly, fix was checked in on 08-10


Note You need to log in before you can comment on or make changes to this bug.