Re: gcc-4.7.0 error "ar: Cannot find plugin"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 26 April 2012 15:56, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> Maxim Yegorushkin <maxim.yegorushkin@xxxxxxxxx> writes:
>
>> Could you let me know what command line this wrapper is trying to
>> build as it's not clear from the code and there is no comment. Is it
>> something like:
>>
>>     /usr/local/ots/gcc/bin/gcc-ar47 --plugin
>> /usr/local/ots/gcc/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/<???>
>> <argv[1:]>
>>
>> So that I hardcode it for now to fix the problem.
>
> Yes, something like that.  The <???> is liblto_plugin.so.

As a temporary fix my build script creates ar, nm and ranlib as the
following bash script:

    #!/bin/bash

    exe=$0
    exe=${exe##*/} # basename
    cmd="$1"
    shift

    exec PREFIX/x86_64-unknown-linux-gnu/bin/$exe "$cmd" --plugin
PREFIX/libexec/gcc/x86_64-unknown-linux-gnu/GCC_VERSION/liblto_plugin.so
"$@"

(where PREFIX and GCC_VERSION get replaced with the corresponding
values using `sed`)

I'd like to know whether such an approach can cause any issues please?

Maxim



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux