Yes,it's indeedly the correct one,and new ld can also support -plugin option,I don't know the reason of the trouble, 2009/9/17 Rafael Espindola <espindola at google.com>> > llvm-gcc -use-gold-plugin a.a b.o -o hello > > > > which is similar with the example in the document,it tells me that > > libLLVMgold.so can not be found ,but I truly put it in the directory > > which is the same as the cc1's. > > > > What's the problem with my libLLVMgold.so's position? > > That looks correct. Can you check that > *) It is the correct cc1 :-) (run llvm-gcc with -v) > *) It works if you call gold directly with it > > > Thanks! > > > > Nan > > > > > 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/ffcfbee0/attachment.html>
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
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>