http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57651
Bug ID: 57651
Summary: [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find
the lto plugin
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
$ gcc-ar-4.8 -h
gcc-ar-4.8: Cannot find plugin 'liblto_plugin.so'
the plugin is *not* installed with x permission flags (which seems to be the
standard for shared libraries). You did change the code to use find_a_file
which searches only for files with the x bit set.
Work around is to install the plugin with the x bits set, or use some helper
function which doesn't look for the x bits. I assume that wasn't catched,
because the plugin then was found in another location?
gcc.c has a static find_a_file function which does allows to specify the
permission flags you want to search for.