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

             Bug #: 53126
           Summary: gcc-4.7.0 error "gcc-ar: Cannot find plugin"
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: plugins
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: maxim.yegorush...@gmail.com


I am compiling gcc-4.7.0 from sources following instructions from
http://gcc.gnu.org/install/. 

I can compile, link and run code with the newly built g++, however, whenever I
run the new ar or nm they respond with the following error message:

$ /usr/local/ots/gcc/bin/gcc-ar47 
/usr/local/ots/gcc/bin/gcc-ar47: Cannot find plugin 
$ /usr/local/ots/gcc/bin/gcc-nm47 
/usr/local/ots/gcc/bin/gcc-nm47: Cannot find plugin 

Ian Lance Taylor in http://gcc.gnu.org/ml/gcc-help/2012-04/msg00286.html
suggested that make_relative_prefix() returns NULL and that causes the problem.

My configure invocation is as follows:

../gcc-4.7.0-src/configure --prefix=/usr/local/ots/gcc --program-suffix=47
--disable-libunwind-exceptions --with-system-zlib --enable-__cxa_atexit
--enable-checking=release --disable-multilib
--with-gmp-include=/usr/local/ots/gcc/include
--with-mpfr-include=/usr/local/ots/gcc/include
--with-mpc-include=/usr/local/ots/gcc/include
--with-ppl-include=/usr/local/ots/gcc/include
--with-cloog-include=/usr/local/ots/gcc/include
--with-gmp-lib=/usr/local/ots/gcc/lib64
--with-mpfr-lib=/usr/local/ots/gcc/lib64
--with-mpc-lib=/usr/local/ots/gcc/lib64 --with-ppl-lib=/usr/local/ots/gcc/lib64
--with-cloog-lib=/usr/local/ots/gcc/lib64 --enable-languages=c,c++,fortran,lto
--enable-plugin --enable-initfini-array

Reply via email to