Skip to content

[gcc] ar and runlib report "plugin needed to handle lto object" #5808

@h-c-mueller

Description

@h-c-mueller

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions