https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108383
--- Comment #3 from eebssk1 at godaftwithebk dot pub --- Exactly same problem with -Os on lto.(Seems reflect the problem in that github issue) The project seems only supports mingw target. I'll get back when have more information.