[LLVMdev] Problem compiling with clang + gold plugin: no archive symbol table

ryan stdstack at gmail.com
Thu Jun 28 15:18:01 PDT 2012


Thanks for replying!
I didn't install the new binutils to system directory in case it messes
thing up.
For ranlib, from the error message, it seems to be the reason. But even I
export
RANLIB=/bin/true, clean the code and rebuild, it still fails with the same
message.
I created a symlink in /usr/lib/bfd-plugins as suggested in
http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-March/030101.html.
Still it doesn't work..
Really have no idea what to try next.


Best regards,
Ryan

On Thu, Jun 28, 2012 at 3:05 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> > Does anyone have some clue on what's going on ?
>
> You don't need to pass command line options to ar and nm if the plugin
> is installed in the correct directories. A guess is that the build
> system is running ranlib on the .a files and that is destroying the
> index created by nm.
>
> If you put the plugins in the bfd-plugins directory nm, ar and ranlib
> will use them.
>
> > Thanks very much!
> >
> > Ryan
> >
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120628/a54f956d/attachment.html>


More information about the llvm-dev mailing list