Displaying 20 results from an estimated 1100 matches similar to: "[LLVMdev] libLLVMgold.so: could not load plugin library"
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 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
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
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
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
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
2011 Mar 22
2
[LLVMdev] gold plugin example
Hi all,
I got an error from the gold plugin example in the following link:
http://llvm.org/docs/GoldPlugin.html#example1
Here is the error message:
sangmin at sangmin-desktop:/tmp$ llvm-gcc -use-gold-plugin a.a b.o -o main
/usr/bin/ld: error: a.a: no archive symbol table (run ranlib)
/usr/bin/ld: /usr/lib/crt1.o:(.text+0x18): error: undefined reference to
'main'
/usr/bin/ld: b.o: in
2011 Mar 22
0
[LLVMdev] gold plugin example
Hi,
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
2012 May 23
3
[LLVMdev] problem on clang+gold
Hi there,
I compiled clang+gold using a gcc under path /s/gcc-4.3.1/bin/. Later on
I do configure and make for flex-2.5.35, and the following command is
invoked:
"/path/to/my/gold/ld" --hash-style=gnu --no-add-needed --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o flex
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o
2011 Mar 22
2
[LLVMdev] gold plugin example
On 11-03-21 10:35 PM, Sangmin Park wrote:
> Hi,
>
> 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
2009 Oct 05
4
[LLVMdev] getting gold plugin to work?
Attached is the start of a patch to make the gold plugin work on
Darwin for use as a cross-compiler. There needs to be a build step
somewhere in llvm-gcc that copies it into libexec/<gcc
poop>/libLLVMgold.so, but I've been doing that manually for now.
It doesn't seem that simple use of -O4 results in the plugin learning
what subtarget is desired. I presume that the llvm-gcc driver
2009 Sep 17
2
[LLVMdev] Where should I put libLLVMgold.so??
Hi,all
I'm using ubuntu8.04 and I'm installing gold-plugin along with 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
2009 Oct 09
0
[LLVMdev] getting gold plugin to work?
Sandeep Patel wrote:
> Attached is the start of a patch to make the gold plugin work on
> Darwin for use as a cross-compiler. There needs to be a build step
> somewhere in llvm-gcc that copies it into libexec/<gcc
> poop>/libLLVMgold.so, but I've been doing that manually for now.
With this patch, it seems that it produces a file named LLVMgold.so
instead of libLLVMgold.so.
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 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 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??
> 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
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
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/
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