Skip to content

"plugin needed to handle lto object" #16

@staalmannen

Description

@staalmannen

I have followed the instructions under Documentation/lto-build and I use/have packaged a binutils from the hjl branch

https://aur.archlinux.org/packages/binutils-hjl-git/

Trying to build branch lto-4.0 fails with ld giving the error message
"plugin needed to handle lto object"

I run "make AR=gcc-ar NM=gcc-nm" but this does not seem to help.

Any other ideas what I have to change? Do I need to re-build GCC with the new binutils?
stock GCC should be built with --enable-plugin and --enable-lto
https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gcc-multilib

Should I explicitly give an absolute path to the plugin in CFLAGS or something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions