search for: llvmgold

Displaying 20 results from an estimated 153 matches for "llvmgold".

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. On my Ubuntu/precise AMD64 I have ***4GiB RAM and 256MiB S...
2011 Oct 22
2
[LLVMdev] Problems with llvm-gcc and gold plugin
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 0; } ------ and compiled it with: $ llvm-gcc -use-gold-plugin main.c llvm-gcc: -use-gold-plugin, but LLVMgold.so not found. The file in question, LLVMgold.so, was successfully compiled into llvm...
2016 Oct 02
3
(Thin)LTO llvm build
bfd linker 2.26 works fine with LLVMgold.so. As I mentioned in a previous email, 2.26 ar and ranlib also works fine as long as LLVMgold.so is put in a path binutils know about : $(bindir)/../lib/bfd-plugins/ David On Sun, Oct 2, 2016 at 3:59 AM, Carsten Mattner <carstenmattner at gmail.com> wrote: > On Sun, Oct 2, 2016 at 6:...
2016 Jul 23
2
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
...On Thu, Jul 21, 2016 at 12:01 PM, Sedat Dilek <sedat.dilek at gmail.com> > wrote: > > 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. > >...
2016 Sep 16
5
(Thin)LTO llvm build
...l error: 'sys/ndir.h' file not found #include <sys/ndir.h> ... fatal error: 'intrin.h' file not found These seem like tests that are expected to fail. ... The interesting test int main() { __builtin_ffs(0); return 0; } fails like this: /usr/bin/ld[...]llvm/bin/../lib/LLVMgold.so: cannot open shared object file: No such file[...] I have two questions here: Is there anything I might have missed when configuring the gcc-built llvm install for it to be incomplete in the linker department? I mean, the system linker is used (not lld) and that via CC=clang is looking for the...
2014 Jun 13
2
[LLVMdev] LLVMgold.so in windows LLVM builds
I am trying to build LLVMgold.so on windows. I came across this piece of code which includes “gold” source directory in tools/CMakeLists.txt if( LLVM_ENABLE_PIC ) # TODO: support other systems: if( (CMAKE_SYSTEM_NAME STREQUAL "Linux") OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") ) add_llvm_tool_subdirectory(go...
2014 Jun 30
2
[LLVMdev] LLVMgold.so in windows LLVM builds
I tried building it on windows with some CMake changes. But unfortunatelym my clang crashes when it tries to access the LLVMgold (not able to open it). I have CCed Rafeal and Nakamura who might know why gold plugin in not supported on Windows platforms. --Sumanth G > Hi, > > On 14 June 2014 00:26, <sgundapa at codeaurora.org> wrote: >> I am trying to build LLVMgold.so on windows. >> I came acro...
2011 Mar 22
2
[LLVMdev] gold plugin example
...: error: undefined reference to 'foo2' collect2: ld returned 1 exit status I followed the instructions from the previous thread below, but I still have the problem. http://old.nabble.com/llvm-gold-plugin-example-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-li...
2018 May 03
1
Passing arguments to LTOCodeGenerator
...ns related to optimization remarks. On MacOS, I can pass in this option to enable them: -Wl,-mllvm,-lto-pass-remarks-output=remarks But on Linux using 2.29.1 binutils version of gold, I try this alternative: -Wl,--plugin-opt,-lto-pass-remarks-output=remarks But I get this error message: LLVMgold: Unknown command line argument '--library=to-pass-remarks-output=remarks'. Try: 'LLVMgold -he\ lp' LLVMgold: Did you mean '-no-warn=to-pass-remarks-output=remarks'? If I try this -Wl,--plugin-opt=lto-pass-remarks-output=remarks I get LLVMgold: Unknown command line ar...
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 0; > } > ------ > and compiled it with: > $ llvm-gcc -use-gold-plugin main.c > llvm-gcc: -use-gold-plugin, but LLVMgold.so not found. > > The file in questio...
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 ha...
2014 Jul 01
2
[LLVMdev] LLVMgold.so in windows LLVM builds
> Why is clang loading LLVMgold.dll? I thought it's supposed to be loaded by gold. > > I don't think gold even produces COFF. Are you trying to produce ELF on Windows? > Gold is elf only but BFD ld supports the same plugins these days. I have no idea if the plugin infrastructure works on windows or not, bu...
2016 Sep 20
4
(Thin)LTO llvm build
...d. — Mehid > On Sep 20, 2016, at 10:17 AM, Michael Kruse <llvmdev at meinersbur.de> wrote: > > I am the author of Polly's/ISL's platform tests and could reproduce > the problem on my system with this error message: > > /usr/bin/ld: /usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: error loading > plugin: /usr/lib/llvm-3.8/bin/../lib/LLVMgold.so: cannot open shared > object file: No such file or directory > > Sure, that file doesn't exist. I'd expect Ubuntu 16.04 to have > installed it for the installed version of clang, but `apt-file seach > LL...
2011 Mar 22
0
[LLVMdev] gold plugin example
...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...
2016 May 30
0
[cfe-dev] How to debug if LTO generate wrong code?
...if LTO generate wrong code? > > Hi Mehdi, > The llvm3.8 gold-plugin.cpp is very different from the latest one on trunk. Your patch has compiling failure on llvm3.8 as below. I will try it on latest trunk later. Thank you help anyway! > > Building CXX object tools/gold/CMakeFiles/LLVMgold.dir/gold-plugin.cpp.o > cd /home/jshi19/llvm38releasebuild/tools/gold && /home/jshi19/clang38/bin/clang++ -DGTEST_HAS_RTTI=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/jshi19/llvm38releasebuild/...
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
2012 Aug 02
3
[LLVMdev] LLVM LTO
Hi, I am trying to use LLVM LTO. I read http://llvm.org/docs/GoldPlugin.html and have some questions. Could anyone help? 1. Can LLVMgold.so work with BFD LD instead of gold? In the description of changes in binutils 2.20, "* The plugin target has been added to bfd. It can load the same shared objects used by gold and uses them to provide basic support for new file formats.". Does this mean BFD LD after 2.20 can support LLV...
2016 Jul 23
3
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
...You may want to try without debug info (or with -gline-tables-only) and it should get under 4GB. — Mehdi > > This is my first time dealing with LTO in general. > > Not sure if it matters if I build with GCC and its LTO-plugin and > ld.bfd as linker. > Here I tried CLANG with LLVMgold-plugin and ld.gold (v2.26.1). > > These are the last lines I see... > > [2114/2157] Linking CXX executable bin/diagtool > [2115/2157] Linking CXX executable bin/clang-format > [2116/2157] Linking CXX executable bin/clang-3.8 > FAILED: bin/clang-3.8 > : && /opt/llvm...
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...
2016 May 30
0
[cfe-dev] How to debug if LTO generate wrong code?
Hi Mehdi, The llvm3.8 gold-plugin.cpp is very different from the latest one on trunk. Your patch has compiling failure on llvm3.8 as below. I will try it on latest trunk later. Thank you help anyway! Building CXX object tools/gold/CMakeFiles/LLVMgold.dir/gold-plugin.cpp.o cd /home/jshi19/llvm38releasebuild/tools/gold && /home/jshi19/clang38/bin/clang++ -DGTEST_HAS_RTTI=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/jshi19/llvm38releasebuild/tools...