public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/57651] New: [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin
@ 2013-06-19 12:09 doko at gcc dot gnu.org
  2013-06-19 12:16 ` [Bug driver/57651] " doko at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: doko at gcc dot gnu.org @ 2013-06-19 12:09 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/57651] [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin
  2013-06-19 12:09 [Bug driver/57651] New: [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin doko at gcc dot gnu.org
@ 2013-06-19 12:16 ` doko at gcc dot gnu.org
  2013-06-19 15:13 ` doko at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: doko at gcc dot gnu.org @ 2013-06-19 12:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57651

--- Comment #1 from Matthias Klose <doko at gcc dot gnu.org> ---
now, working around the permission bit, I get:

$ gcc-ar-4.8
gcc-ar-4.8: Cannot find binary 'ar'

so it only searches ar in the given paths, not on the path of the file system
(/usr/bin in this case)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/57651] [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin
  2013-06-19 12:09 [Bug driver/57651] New: [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin doko at gcc dot gnu.org
  2013-06-19 12:16 ` [Bug driver/57651] " doko at gcc dot gnu.org
@ 2013-06-19 15:13 ` doko at gcc dot gnu.org
  2013-06-19 15:14 ` meadori at codesourcery dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: doko at gcc dot gnu.org @ 2013-06-19 15:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57651

--- Comment #3 from Matthias Klose <doko at gcc dot gnu.org> ---
please lets fix it in gcc.  I fixed it in gcc.c last year, and this behaviour
is now re-introduced, so it is a regression.  shared libraries work without the
x bit set too, so lets just recognize these too.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/57651] [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin
  2013-06-19 12:09 [Bug driver/57651] New: [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin doko at gcc dot gnu.org
  2013-06-19 12:16 ` [Bug driver/57651] " doko at gcc dot gnu.org
  2013-06-19 15:13 ` doko at gcc dot gnu.org
@ 2013-06-19 15:14 ` meadori at codesourcery dot com
  2013-06-19 15:16 ` meadori at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: meadori at codesourcery dot com @ 2013-06-19 15:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57651

--- Comment #4 from Meador Inge <meadori at codesourcery dot com> ---
OK, I will look into it.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/57651] [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin
  2013-06-19 12:09 [Bug driver/57651] New: [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin doko at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2013-06-19 15:14 ` meadori at codesourcery dot com
@ 2013-06-19 15:16 ` meadori at gcc dot gnu.org
  2013-06-19 16:08 ` meadori at gcc dot gnu.org
  2013-06-19 17:41 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: meadori at gcc dot gnu.org @ 2013-06-19 15:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57651

meadori at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-06-19
                 CC|                            |meadori at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |meadori at gcc dot gnu.org
     Ever confirmed|0                           |1


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/57651] [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin
  2013-06-19 12:09 [Bug driver/57651] New: [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin doko at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2013-06-19 15:16 ` meadori at gcc dot gnu.org
@ 2013-06-19 16:08 ` meadori at gcc dot gnu.org
  2013-06-19 17:41 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: meadori at gcc dot gnu.org @ 2013-06-19 16:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57651

meadori at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|meadori at gcc dot gnu.org         |doko at gcc dot gnu.org

--- Comment #5 from meadori at gcc dot gnu.org ---
Matthias, I see where you already have a proposed patch here:
http://gcc.gnu.org/ml/gcc-patches/2013-06/msg01134.html

Assigning to you.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug driver/57651] [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin
  2013-06-19 12:09 [Bug driver/57651] New: [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin doko at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2013-06-19 16:08 ` meadori at gcc dot gnu.org
@ 2013-06-19 17:41 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-06-19 17:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57651

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jun 19 17:37:36 2013
New Revision: 200209

URL: http://gcc.gnu.org/viewcvs?rev=200209&root=gcc&view=rev
Log:
    PR driver/57651
    * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
    PERSONALITY in $PATH derived prefixes.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gcc-ar.c

Author: jakub
Date: Wed Jun 19 17:39:20 2013
New Revision: 200210

URL: http://gcc.gnu.org/viewcvs?rev=200210&root=gcc&view=rev
Log:
    PR driver/57651
    * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
    PERSONALITY in $PATH derived prefixes.

Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/gcc-ar.c


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-06-19 17:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-19 12:09 [Bug driver/57651] New: [4.8 / 4.9 Regression] gcc-ar and gcc-nm don't find the lto plugin doko at gcc dot gnu.org
2013-06-19 12:16 ` [Bug driver/57651] " doko at gcc dot gnu.org
2013-06-19 15:13 ` doko at gcc dot gnu.org
2013-06-19 15:14 ` meadori at codesourcery dot com
2013-06-19 15:16 ` meadori at gcc dot gnu.org
2013-06-19 16:08 ` meadori at gcc dot gnu.org
2013-06-19 17:41 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).