https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81883
JD <t at sharklasers dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from JD <t at sharklasers dot com> --- I ran into the same issue for 9.2 and realized that the build succeeds if -flto is not specified in CFLAGS and CXXFLAGS. So when letting the build throw that flag only when needed lets it succeed.