[Bug 253716] LTO seems to be broken in 13-BETA3

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Feb 20 10:10:51 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253716

            Bug ID: 253716
           Summary: LTO seems to be broken in 13-BETA3
           Product: Base System
           Version: 13.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: dmilith at me.com

My software build system's been using LTO for builds for years now.
I append "-flto=thin -ffat-lto-objects -fuse-linker-plugin
-Wl,--thinlto-jobs=8" to CFLAGS/CXXFLAGS and it worked nicely until 13-BETA1
(last tested one).

Yesterday I updated to 13-BETA3, and same options now cause linker issues.

Example for Make 4.3:

http://s.verknowsys.com/a1b9805fa9c33b148d5ef8d479f3f47c.png

(it also breaks with fat LTO enabled, not only with Thin)

It builds fine if I just remove "-flto" option.

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


More information about the freebsd-bugs mailing list