[LLVMdev] gold plugin use

Swarup Kumar Sahoo ssahoo2 at illinois.edu
Wed Mar 10 23:13:15 PST 2010



---- Original message ----
>Date: Wed, 10 Mar 2010 22:09:22 -0800
>From: Nick Lewycky <nicholas at mxc.ca>  
>Subject: Re: [LLVMdev] glod plugin use  
>To: Swarup Kumar Sahoo <ssahoo2 at illinois.edu>
>Cc: llvmdev at cs.uiuc.edu, Rafael Espindola <espindola at google.com>
>
>Swarup Kumar Sahoo wrote:
>> Hi,
>>      I was trying to use gold plugin to compile and run some of my passes on some large softwares like mysql, apache etc. When I compile using llvm-gcc, everything works fine. But, when I followed the instructions on http://llvm.org/docs/GoldPlugin.html#build to use gold plugin, I got errors like:
>>
>> /home/vadve/ssahoo2/local/bin/ld: error: modules/standard/libstandard.a: no archive symbol table (run ranlib)
>> /home/vadve/ssahoo2/local/bin/ld: error: modules/extra/libextra.a: no archive symbol table (run ranlib)
>> /home/vadve/ssahoo2/local/bin/ld: error: main/libmain.a: no archive symbol table (run ranlib)
>> ....
>>
>> I tried ranlib/llvm-ranlib, but it didn't work. Can someone help me, if I am doing anything wrong here?
>
>You shouldn't need ranlib nor llvm-ranlib.
>
>I'm not entirely sure what's up with the .a files. It looks like ar has 
>grown a --plugin options to match gold, whereas I seem to recall it used 
>to just look in a fixed directory.
>
>Rafael, have you been following what binutils has done with plugins for 
>ar, nm and friends? It looks like we might need to update llvm-gcc to 
>pass the gold plugin flag to ar and nm.

Yes, ar and nm actually take -plugin option and if I pass this option, then I don't get these errors. But, llvm-gcc doesn't automatically pass this option to ar.

>
>Nick
>
>>
>> Thanks,
>> Swarup.
>>
>> *************************************
>> Swarup Kumar Sahoo
>> Thomas M. Siebel Center for Computer Science
>> University of Illinois at Urbana Champaign
>> 201 N Goodwin Avenue
>> Urbana, IL-61801
>> Phone - 614 264 9574
>>
>> *************************************
>> Swarup Kumar Sahoo
>> Thomas M. Siebel Center for Computer Science
>> University of Illinois at Urbana Champaign
>> 201 N Goodwin Avenue
>> Urbana, IL-61801
>> Phone - 614 264 9574
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>

*************************************
Swarup Kumar Sahoo
Thomas M. Siebel Center for Computer Science
University of Illinois at Urbana Champaign
201 N Goodwin Avenue
Urbana, IL-61801
Phone - 614 264 9574



More information about the llvm-dev mailing list