similar to: [LLVMdev] Problems with llvm-gcc and gold plugin

Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] Problems with llvm-gcc and gold plugin"

2011 Oct 25
0
[LLVMdev] Problems with llvm-gcc and gold plugin
On 10/22/2011 01:12 AM, Luis D. Pedrosa wrote: > Hi everyone, > > I'm new to LLVM and I'm still trying to learn how to get everything up > and running. I'm trying to use llvm-gcc with the gold plugin and it > complains that it can't find LLVMgold.so. As a simple test case I > wrote a very basic C file: > --- main.c --- > int main () { > return
2011 Jun 15
2
[LLVMdev] Difficulties in using gold plugin. ("ar" not working properly)
Dear all, I'm trying to use the gold plugin to make it easier to generate LLVM bitcode from complex applications. I did the steps mentioned on "http://llvm.org/docs/GoldPlugin.html". Both linking and LLVM generation seem to work properly, however when using the tool ar, the symbol table is lost. "no archive symbol table (run ranlib)". I'm using LLVM 2.9, Ubuntu 10.10,
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?
2015 Jun 22
2
[LLVMdev] Enabling the gold linker on freebsd
I have been trying to enable the gold linker on FreeBSD to use the link time optimizations. I made gold from the binutils under /usr/ports. After building binutils using make -k install clean i got ld under /usr/bin and in the directory /usr/local/bin i got ld, ld.gold and ld.bfd. Now while trying to use link time optimization for the simple example programs
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 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
2015 Jun 23
3
[LLVMdev] Enabling the gold linker on freebsd
the symlink ld is already pointing to /usr/bin/ld. Also -fuse-ld=gold does not works on clang in freebsd. I am not sure where is the problem?should I remove /usr/bin/ld and create a new symlink to /usr/local/bin/ld.gold? Regards Aditya Verma Junior Undergraduate IDD Computer Sc & Engg IIT(BHU), Varanasi(UP) On Mon, Jun 22, 2015 at 5:25 AM, Rafael Espíndola < rafael.espindola at
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
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 Nov 16
1
[LLVMdev] Wrong path to libLTO.so in LLVMgold.so on Linux
The path to libLTO.so in LLVMgold.so points to the build directory on my machine: % ldd /usr/local/lib/LLVMgold.so linux-vdso.so.1 (0x00007fff3d795000) /var/tmp/build_llvm_clang/Release+Asserts/lib/libLTO.so => not found libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1703983000) ... I have configured clang with: ../llvm/configure --enable-optimized
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
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.
2016 Oct 03
2
ThinLTO: module-scope inline assembly blocks
On Mon, Oct 3, 2016 at 4:27 PM, Teresa Johnson <tejohnson at google.com> wrote: > > > On Mon, Oct 3, 2016 at 6:53 AM, Johan Engelen via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hi all, >> I am trying to add ThinLTO to the LDC compiler. It seems to work well >> on Mac (XCode 8) and Ubuntu (ld.gold + LLVMgold plugin). >> However, I am
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
2016 Jul 21
3
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
Hi, unfortunately, my build somehow hangs when linking clang binary and my system is in an unusable state. My toolchain is clang-3.8, gold-1.11 and LLVMgold.so from binutils v2.26.1 (both selfmade) and LTO-flag is enabled. My buildsystem uses cmake-3.6.0 and ninja-1.7.1 (both prebuilt). I have 52 last steps left in my 3rd build. My Linux-kernel is v3.13.0-92 from official Ubuntu repositories.
2012 May 16
2
[LLVMdev] clang looking for gold plugin when used with '-emit-llvm' option
Hi All, I built the binaries from the 3.1 final tag (http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_31/final/ etc) as below: > ../llvm/configure --enable-targets=host-only --prefix=/local/mnt/workspace/ashoknn/crd/neo/llvmsvn/build/bin > make install I notice that I can compile a program using clang as below: > ashoknn at
2016 Oct 03
3
ThinLTO: module-scope inline assembly blocks
With `save-temps` as plugin option, I get extra files for the MAIN module (called `a.o`): `a.o.opt.bc` and `a.thinlto.bc`. The `a.thinlto.bc` file contains nothing, only `source_filename = ...` . The `a.o.opt.bc` (this looks like the result after ThinLTO importing and optimization) contains the assembly block that it should not have: ``` module asm "\09.text" module asm
2012 May 17
0
[LLVMdev] clang looking for gold plugin when used with '-emit-llvm' option
Resending, can somebody please help? On 5/16/2012 2:47 PM, Ashok Nalkund wrote: > Hi All, > I built the binaries from the 3.1 final tag > (http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_31/final/ etc) as below: > >> ../llvm/configure --enable-targets=host-only --prefix=/local/mnt/workspace/ashoknn/crd/neo/llvmsvn/build/bin >> make install > > I notice that
2012 May 17
2
[LLVMdev] clang looking for gold plugin when used with '-emit-llvm' option
Are you intending to try to link? That error message isn't coming from clang, but from /usr/bin/ld. If you just want the bitcode for the one source file, you need to pass "-c" as well, just like if you want an object file. -Jim On May 16, 2012, at 5:39 PM, Ashok Nalkund <ashoknn at qualcomm.com> wrote: > Resending, can somebody please help? > > On 5/16/2012 2:47 PM,
2012 May 17
0
[LLVMdev] clang looking for gold plugin when used with '-emit-llvm' option
MY BAD (in caps)...really sorry to have bothered. I was thinking of -S -E options but forgot the -c option. clang -c -emit-llvm test.c lli test.o both work fine :). Thanks, ashok On 5/16/2012 5:45 PM, Jim Grosbach wrote: > Are you intending to try to link? That error message isn't coming from clang, but from /usr/bin/ld. If you just want the bitcode for the one source file, you need to