https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119215
--- Comment #4 from Sam James <sjames at gcc dot gnu.org> --- Created attachment 61146 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61146&action=edit 0001-config-add-Werror-lto-type-mismatch-odr-to-bootstrap.patch Easiest way is to apply this patch, then do: ./configure --with-build-config="bootstrap-lto" && make -j$(nproc) -l$(nproc) But you can also pass those flags manually into *FLAGS variables as long as you also do bootstrap-lto on top.