Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] Where should I put libLLVMgold.so??"
2009 Sep 17
0
[LLVMdev] Where should I put libLLVMgold.so??
> 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
2009 Sep 17
2
[LLVMdev] Where should I put libLLVMgold.so??
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
2009 Sep 17
0
[LLVMdev] Where should I put libLLVMgold.so??
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
2009 Sep 18
2
[LLVMdev] Where should I put libLLVMgold.so??
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
2009 Sep 19
4
[LLVMdev] Where should I put libLLVMgold.so??
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
2009 May 26
4
[LLVMdev] CVS binutils includes support for plugins, can use the llvm plugin.
For some time now the gold linker has support for plugins and llvm has
a plugin for it.
Unfortunately, it was still not possible to do fully transparent LTO
on linux because ar had no support for plugins and a library created
with llvm files in it would have no symbol table and would be rejected
by gold.
Today support for plugins has been committed to BFD. That is the file
format abstraction
2009 Sep 19
0
[LLVMdev] Where should I put libLLVMgold.so??
On 2009-09-19 03:28, zhunan wrote:
> 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.
>
>
Are you sure that is llvm-gcc's cc1, and not your system compiler's?
Try this:
$ llvm-gcc -### -x c /dev/null
Then look for a line
2009 Sep 19
0
[LLVMdev] Where should I put libLLVMgold.so??
2009/9/18 zhunan <zhunansjtu at gmail.com>:
> 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????
Could be. Are you comfortable using gdb? Last time I looked it
was working for me.
2010 Jun 25
2
[LLVMdev] libLLVMgold.so: could not load plugin library
Hi there,
I checked out the latest code from the repository, and wanna use the
gold plugin, but I got the following:
libLLVMgold.so: could not load plugin library
Do you know why this is happening?
Also I noticed the name of the library is changed to LLVMgold.so, and I
just renamed it to libLLVMgold.so when I copied it. Is this the right
thing to do?
Thanks,
Guoliang
2010 Jun 25
0
[LLVMdev] libLLVMgold.so: could not load plugin library
On 25 June 2010 03:17, Guoliang Jin <jingl1345 at gmail.com> wrote:
> Hi there,
>
> I checked out the latest code from the repository, and wanna use the gold
> plugin, but I got the following:
>
> libLLVMgold.so: could not load plugin library
>
> Do you know why this is happening?
>
> Also I noticed the name of the library is changed to LLVMgold.so, and I just
2010 Jun 25
2
[LLVMdev] libLLVMgold.so: could not load plugin library
On 6/25/2010 8:56 AM, Rafael Espindola wrote:
> On 25 June 2010 03:17, Guoliang Jin<jingl1345 at gmail.com> wrote:
>> Hi there,
>>
>> I checked out the latest code from the repository, and wanna use the gold
>> plugin, but I got the following:
>>
>> libLLVMgold.so: could not load plugin library
>>
>> Do you know why this is happening?
2010 Jun 28
2
[LLVMdev] libLLVMgold.so: could not load plugin library
On 6/26/2010 10:30 AM, Rafael Espindola wrote:
>> So the gold and the LLVMgold are linked against the same libstdc++. I am
>> using the gcc at /s/gcc-4.3.1/i386_rhel5/bin to compile the LLVM chain.
> Can you run llvm-gcc again with -Wl,-debug? This will show the linker
> line being used. You can then run gdb on it. Try to find what error is
> dlopen reporting. I wonder if gold
2009 Sep 18
0
[LLVMdev] Where should I put libLLVMgold.so??
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/
2010 Jun 26
2
[LLVMdev] libLLVMgold.so: could not load plugin library
On 6/25/2010 2:37 PM, Rafael Espindola wrote:
> The linker (gold) requires you to pass -plugin to it.
I am using the command:
llvm-gcc a.c -emit-llvm -use-gold-plugin
and here is the output:
$LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/bin/ld:
error:
$LLVMGCCPREFIX/libexec/gcc/i686-pc-linux-gnu/4.2.1/libLLVMgold.so: could
not load plugin library
2009 Jul 12
0
[LLVMdev] CVS binutils includes support for plugins, can use the llvm plugin.
That's pretty awesome!
Will ar, etc. eventually get some autodiscovery of plugins so that
things work OOTB after a make install of llvm/llvm-gcc?
- Daniel
On Tue, May 26, 2009 at 10:52 AM, Rafael Espindola<espindola at google.com> wrote:
> For some time now the gold linker has support for plugins and llvm has
> a plugin for it.
>
> Unfortunately, it was still not possible
2010 Jun 25
0
[LLVMdev] libLLVMgold.so: could not load plugin library
> So when I copy it to $PREFIX/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/ and
> $PREFIX/lib/bfd-plugins/, should I rename it to libLLVMgold.so? Any other
> copies I should make?
The copy in that directory can have any name you like. BFD will try
all. Note that
that is the copy that nm and ar will use. The linker (gold) requires you to pass
-plugin to it.
>>
>> Copying it
2009 Sep 18
0
[LLVMdev] a bug for llvm-gcc??
Hi,all
I met the following quesiton, and I'm no sure it's a bug for llvm-gcc:
I want to use gold plugin , so I compile and build all following the
documents, and copy the libLLVMgold.so to the same directory as cc1's,
after above all,I use llvm-gcc -used-gold-plugin to link the plugin library
libLLVMgold.so with the original source file,
but llvm-gcc always tells me that it cannot
2009 Jul 07
1
[LLVMdev] CVS binutils includes support for plugins, can use the llvm plugin.
On May 26, 2009, at 10:52 AM, Rafael Espindola wrote:
> Today support for plugins has been committed to BFD. That is the file
> format abstraction library used by binutils. This now works
Very nice Rafael! Can you please update the web page to mention this,
e.g. in the LinkTimeOptimization.html document and wherever else
relevant?
-Chris
>
> $ llvm-gcc -emit-llvm -O2 -c a.c
2009 Oct 20
2
[LLVMdev] strace for whole-program bitcodes
Yes,but when I just simply replace lto_codegen_compile(cg, ...) with
lto_codegen_write_merged_modules(cg, "/path/to/output.bc") in the
gold-plugin.cpp to see if it will generate a correct bc file,the
llvm-gcc/llvm-g++ will call the native ld in the linking step,which
causes the failture because of that ld can not recognize an object file
which contains LLVM's IL.
I understand the
2010 Jul 22
2
[LLVMdev] problem using LTO
Hello,
I down loaded "llvm-gcc4.2-2.7-x86_64-linux" and I built Spec2006 with it.
It is great and except for one benchmark the rest work fine. I want to build
them with LTO now. I followed the directions in "
http://llvm.org/docs/GoldPlugin.html" and built ar, nm-new, and ld-new in
binutils. I also built libLLVMgold.so.
I get the following error:
llvm-gcc: -use-gold-plugin,