[LLVMdev] Unable to perform LLVM LTO using clang

Chunbai YANG chunbyang2 at gapps.cityu.edu.hk
Fri Dec 6 23:15:45 PST 2013


The problem is solved. Thank you for your time, Rafael.

Previously, my clang uses the ld in /usr/bin. However, I installed the gold
plugin to /usr/local/bin. So that clang actually uses the wrong ld.
Now it's fixed by configuring clang to the ld in /usr/local/bin.

Regards,
Chunbai


On Thu, Dec 5, 2013 at 10:04 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> On 5 December 2013 07:46, Chunbai YANG <chunbyang2 at gapps.cityu.edu.hk>
> wrote:
> > Dear Rafael,
> >
> > Thank you for your answer. The verbose mode -v shows that clang uses the
> old
> > ld in /usr/bin while I install the gold in /usr/local/bin.
>
> Clang should be searching the path. What does
>
> $ which ld
>
> print? Maybe all that you have to do is
>
> $ export PATH=/usr/local/bin:$PATH
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131207/fa14b241/attachment.html>


More information about the llvm-dev mailing list