OMG,that's just my situation... I can link with libLLVMgold.so manualy,but will fail in that by llvm-gcc. Debug llvm-gcc????? Any one installed the gold-plugin successfully can give some instruction? 2009/9/18 Rafael Espindola <espindola at google.com>> 2009/9/17 Nan Zhu <zhunansjtu at gmail.com>: > > Yes,it's indeedly the correct one,and new ld can also support -plugin > > option,I don't know the reason of the trouble, > > Does ld actually work if you pass libLLVMGold.so to it? Try to link > with llvm-gcc without the -use-gold-plugin option and with -v (it will > fail as expected). Copy the collect2 line and add the -plugin line. If > that does work, the only think I can think of is to run llvm-gcc in > gdb and set a breakpoint on the error message. > > Cheers, > -- > Rafael Avila de Espindola > > Google | Gordon House | Barrow Street | Dublin 4 | Ireland > Registered in Dublin, Ireland | Registration Number: 368047 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090918/5ecd78e7/attachment.html>
On 2009-09-18 03:06, Nan Zhu wrote:> OMG,that's just my situation... > > I can link with libLLVMgold.so manualy,but will fail in that by llvm-gcc. > > Debug llvm-gcc????? > > Any one installed the gold-plugin successfully can give some instruction?Does the directory where you put the gold plugin look like this? $PREFIX/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/ Where $PREFIX is the prefix where you installed llvm-gcc Best regards, --Edwin
Yes,but ubuntu's directory structure is not exactly the same as the classic linux distribute, I put libLLVMgold.so in /usr/lib/gcc/i486-linux-gnu/4.2.4 where cc1 is also in. Strange situation,is it a bug for llvm-gcc???? 在 2009-09-18五的 12:58 +0300,Török Edwin写道:> On 2009-09-18 03:06, Nan Zhu wrote: > > OMG,that's just my situation... > > > > I can link with libLLVMgold.so manualy,but will fail in that by llvm-gcc. > > > > Debug llvm-gcc????? > > > > Any one installed the gold-plugin successfully can give some instruction? > > Does the directory where you put the gold plugin look like this? > $PREFIX/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/ > > Where $PREFIX is the prefix where you installed llvm-gcc > > Best regards, > --Edwin >