Displaying 20 results from an estimated 52 matches for "libllvmgold".
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 Jul 22
2
[LLVMdev] problem using LTO
...;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, but libLLVMgold.so not found.
The command I used with the example in "http://llvm.org/docs/GoldPlugin.html"
is:
/home/reza/llvm-gcc4.2-2.7-x86_64-linux/bin/llvm-gcc -use-gold-plugin a.a
b.o -o main
I put libLLVMgold.so to /usr...
2009 Sep 17
2
[LLVMdev] Where should I put libLLVMgold.so??
...h the
document of that,
After I built the binutils and LLVM with plugin enabling,and I also
replace ld with ld-new which supports plugin,I tried to compile a hello
world program by this:
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?
Thanks!
Nan
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 libLLVMgold.so manual...
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 corr...
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
> renamed it to libLLVMgold.so when I copied it. Is this the right thing to
> do?
The library is now named LLVMgold.so, I prob...
2009 Sep 17
2
[LLVMdev] Where should I put libLLVMgold.so??
...nd 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)
> *)...
2010 Jul 22
0
[LLVMdev] problem using LTO
...6_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, but libLLVMgold.so not found.
>
> The command I used with the example in
> "http://llvm.org/docs/GoldPlugin.html" is:
>
> /home/reza/llvm-gcc4.2-2.7-x86_64-linux/bin/llvm-gcc -use-gold-plugin a.a
>...
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 -v)
*) It works if you call gold directly...
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 containing cc1, something similar to this one:
"/home/edwin/llvm-git/ins...
2011 Mar 22
2
[LLVMdev] gold plugin example
...mple-td28140005.html
I got the error with both 2.7 and 2.8.
Here are my settings:
LLVMgold.so in (with LLVM 2.8)
- $HOME/llvm-gcc-4.2-2.8-i686-linux/libexec/gcc/i686-pc-linux-gnu/4.2.1/LLVMgold.so
- $HOME/llvm-gcc-4.2-2.8-i686-linux/lib/bfd-plugins/LLVMgold.so
- /usr/lib/bfd-plugins/LLVMgold.so
libLLVMgold.so in (with LLVM 2.7)
- $HOME/llvm-gcc-4.2-2.7-i686-linux/libexec/gcc/i686-pc-linux-gnu/4.2.1/libLLVMgold.so
- $HOME/llvm-gcc-4.2-2.7-i686-linux/lib/bfd-plugins/libLLVMgold.so
- /usr/lib/bfd-plugins/libLLVMgold.so
Compiled ld-new, ar, nm-new are linked to /usr/bin/ld, /usr/bin/ar,
/uar/bin/nm, res...
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
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...
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/
Where $PREFIX is...
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?
>>
>> 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?
> The library is n...
2010 Jun 28
2
[LLVMdev] libLLVMgold.so: could not load plugin library
...n reporting. I wonder if gold is calling perror or not when
> dlopen fails (assuming it is dlopen that is failing).
The -Wl,-debug result is like this:
$LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/bin/ld
-plugin
$LLVMGCCPREFIX/libexec/gcc/i686-pc-linux-gnu/4.2.1/libLLVMgold.so
-plugin-opt=as=as --eh-frame-hdr -m elf_i386 -dynamic-linker
/lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
$LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1/crtbegin.o
-L$LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1
-L$LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1/../../..
/tmp/ccnyauaa...
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.
Cheers,
--
Rafael Avila de Espindola
2010 Jun 28
0
[LLVMdev] libLLVMgold.so: could not load plugin library
> The -Wl,-debug result is like this:
> $LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1/../../../../i686-pc-linux-gnu/bin/ld
> -plugin $LLVMGCCPREFIX/libexec/gcc/i686-pc-linux-gnu/4.2.1/libLLVMgold.so
> -plugin-opt=as=as --eh-frame-hdr -m elf_i386 -dynamic-linker
> /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
> $LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1/crtbegin.o
> -L$LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1
> -L$LLVMGCCPREFIX/lib/gcc/i686-pc-linux-gnu/4.2.1/../...
2010 Jun 26
0
[LLVMdev] libLLVMgold.so: could not load plugin library
> Did I use the wrong options?
That looks correct, the issues is really why gold is failing to load the plugin.
> 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
2011 Mar 22
0
[LLVMdev] gold plugin example
...i,
I fixed error by using different version of ld with LLVM 2.7.
I used ld.gold that comes with Ubuntu 10.04.
Here is the version info:
sangmin at sangmin-desktop:/tmp$ ld -v
GNU gold (GNU Binutils for Ubuntu 2.20.1-system.20100303) 1.9
My experience of gold plugin is as follows:
LLVM 2.7 (with libLLVMgold.so) + ld 2.20.1 (from Ubuntu 10.04) : O
LLVM 2.7 (with libLLVMgold.so) + ld 2.21.51 (manually compiled) : X
LLVM 2.8 (with LLVMgold.so) + ld 2.20.1 (from Ubuntu 10.04): X
LLVM 2.8 (with LLVMgold.so) + ld 2.21.51 (manually compiled): X
When compiling (lib)LLVMgold.so file, I used the source file fr...
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 should cause no problems. just make sure libLTO....