https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81878
--- Comment #23 from Tamar Christina <tnfchris at gcc dot gnu.org> --- > > Hmm, I see what you mean. Currently though CXX is unable to find the > > lto plugin. It's somewhat confusing that CC is set to target and CXX > > is host (but reading back on the ticket you pointed that out as well). > > CXX should find the hosts LTO plugin but that should never be necessary > because we do not use the host-compiler to LTO. So maybe _that's_ the > issue - that we use -flto or that we end up linking objects with LTO bytecode. > Ah, I didn't know this. I'll go and try to track down the reason it's trying to use -fuse-linker-plugin then which is likely the problem. Thanks!