Description / Steps to reproduce the issue
I assume the above noted issue is caused by a missing BFD-plugin.
Once I did
cp /usr/lib/gcc/x86_64-pc-cygwin/15.2.0/msys-lto_plugin.dll /usr/lib/bfd-plugins/
the problem was gone.
So I assume this step is missing during installation, maybe because it's typically a link.
Expected behavior
The plugin should be found by GNU binutils, e.g. ar, runlib etc.
Actual behavior
gcc output:
ar: libtest.o: plugin needed to handle lto object
ranlib: .libs/libtest.a(libtest.o): plugin needed to handle lto object
Verification
Windows Version
MSYS_NT-10.0-19045
Are you willing to submit a PR?
No response