similar to: [LLVMdev] Error while compiling mysql using LLVM-gold

Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Error while compiling mysql using LLVM-gold"

2010 Jun 06
2
[LLVMdev] Error while compiling mysql using LLVM-gold
The errors are /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found /lib/libc.so.6: version `GLIBC_2.7' not found I can not use it in the command line... Rafael Espindola wrote: >> However, I got >> "... >> checking for gcc... llvm-gcc -use-gold-plugin >> checking for C compiler default output file name... >> ... >> configure: error: C
2010 Jun 06
1
[LLVMdev] Error while compiling mysql using LLVM-gold
Some things to check: Run llvm-gcc a.c -emit-llvm -use-gold-plugin -Wl,debug This will print the link command line. What is it? Do you get the same error messages if you run just that? Are gold and the plugin linked with the same libstdc++? Cheers On Jun 5, 2010 11:50 PM, "Guoliang Jin" <jingl1345 at gmail.com> wrote: The errors are /usr/lib/libstdc++.so.6: version
2010 Jun 06
0
[LLVMdev] Error while compiling mysql using LLVM-gold
> However, I got > "... > checking for gcc... llvm-gcc -use-gold-plugin > checking for C compiler default output file name... > ... > configure: error: C compiler cannot create executables > ..." > when I following those instructions. > > Any experience on compiling autotooled projects using LLVM is welcome. > Some online resource on this topic will be
2010 Jun 06
0
[LLVMdev] Error while compiling mysql using LLVM-gold
Thanks Rafael. I compiled llvm-gcc by myself, and I can compile mysql now. Right now, when I run llvm-gcc a.c -emit-llvm -use-gold-plugin -Wl,debug I got ld: error: cannot open debug: No such file or directory collect2: ld returned 1 exit status I do not know why this is happening. Rafael Espindola wrote: > > Some things to check: > > Run llvm-gcc a.c -emit-llvm -use-gold-plugin
2010 Jun 06
1
[LLVMdev] whole program bitcode and gold plugin
Hi, I found some posts on the topic of whole program bitcode and gold plugin. I put lto_codegen_write_merged_modules(cg, "/path/to/output.bc") into gold-plugin.cpp all_symbols_read_hook() and compiled one autotooled program (ftp://ftp.gnu.org/gnu/diction/diction-1.11.tar.gz) as described in the gold plugin document, however, I still did not see the output.bc. Can anyone has
2010 Mar 05
1
[LLVMdev] Compile a large project with llvm?
Dear John, Thank you very much for your help! I will try the libLTO's approach. I believe the situation can fit me well. Again, thank you for your time. -Wink John Criswell wrote: > Wink zhang wrote: >> Dear John, >> >> Thanks for your reply. I want to do whole program analysis, all what >> I need are just the separate .bc files. What instructions should I
2010 Aug 31
0
[LLVMdev] What are the optimizations that gold uses during the final link stage?
On 19 August 2010 01:25, Guoliang Jin <jingl1345 at gmail.com> wrote: >  Hi, > > I am using gold plugin with the option "-use-gold-plugin > -Wl,-plugin-opt=also-emit-llvm" to compile apache. > > I objdumped the final executable httpd to httpd.S. > > I also compiled those per file bytecode into native code using the > following: > llc filename.o >
2010 Jul 20
2
[LLVMdev] gold and debug information
Hi, I would like to get the whole program bitcode with debug information in it. I tried to use CFLAGS = "-O4 -g", but it ends with the following error: collect2: ld terminated with signal 6 [Aborted] Unknown constant! UNREACHABLE executed at /local.toadette/aliang/fixing/llvm-2.7/llvm-2.7/lib/Bitcode/Writer/BitcodeWriter.cpp:895! What is the right way to get a whole program bitcode
2010 Jul 22
1
[LLVMdev] gold and debug information
On Thu, Jul 22, 2010 at 1:21 PM, Jin Guoliang <jingl1345 at gmail.com> wrote: > On Thu, Jul 22, 2010 at 11:35 AM, Devang Patel <devang.patel at gmail.com>wrote: > >> On Wed, Jul 21, 2010 at 9:50 AM, Jeffrey Yasskin <jyasskin at google.com> >> wrote: >> >> This (Unknown constant! in bitcode writer when -g is used) is a known >> >> bug in
2010 Aug 19
2
[LLVMdev] What are the optimizations that gold uses during the final link stage?
Hi, I am using gold plugin with the option "-use-gold-plugin -Wl,-plugin-opt=also-emit-llvm" to compile apache. I objdumped the final executable httpd to httpd.S. I also compiled those per file bytecode into native code using the following: llc filename.o llvm-gcc -c filename.o.s -o filename.o.o Then I objdumped filename.o.o to filename.o.S and compared some functions between
2010 Jul 20
0
[LLVMdev] gold and debug information
On Mon, Jul 19, 2010 at 11:06 PM, Guoliang Jin <jingl1345 at gmail.com> wrote: >  Hi, > > I would like to get the whole program bitcode with debug information in it. > > I tried to use CFLAGS = "-O4 -g", but it ends with the following error: > collect2: ld terminated with signal 6 [Aborted] > Unknown constant! > UNREACHABLE executed at >
2010 Mar 05
0
[LLVMdev] Compile a large project with llvm?
Wink zhang wrote: > Hi, > > How to compile a large project (such as Apache) by using llvm-gcc? > I tried to replace CC with llvm-gcc and CFLAGS with -emit-llvm while > running configure, but it didn't work. > If you just want to compile the program with llvm-gcc, then Diego's instructions are fine. If, however, you want to do inter-procedural optimization or whole
2010 Jun 06
2
[LLVMdev] Error while compiling mysql using LLVM-gold
On 6 June 2010 13:48, Guoliang Jin <jingl1345 at gmail.com> wrote: > Thanks Rafael. > > I compiled llvm-gcc by myself, and I can compile mysql now. > > Right now, when I run llvm-gcc a.c -emit-llvm -use-gold-plugin -Wl,debug > I got > ld: error: cannot open debug: No such file or directory > collect2: ld returned 1 exit status > > I do not know why this is
2010 Jul 22
2
[LLVMdev] gold and debug information
On Wed, Jul 21, 2010 at 9:50 AM, Jeffrey Yasskin <jyasskin at google.com> wrote: >> This (Unknown constant! in bitcode writer when -g is used) is a known >> bug in CloneModule, because it is not cloning MDNodes appropriately. > > What's the link to the bug report? Are you fixing it? PR 7689. Fixed in r109117. - Devang
2010 Jul 20
4
[LLVMdev] gold and debug information
On 7/20/2010 1:25 AM, Eli Friedman wrote: > On Mon, Jul 19, 2010 at 11:06 PM, Guoliang Jin<jingl1345 at gmail.com> wrote: >> Hi, >> >> I would like to get the whole program bitcode with debug information in it. >> >> I tried to use CFLAGS = "-O4 -g", but it ends with the following error: >> collect2: ld terminated with signal 6 [Aborted]
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
2010 Apr 19
0
[LLVMdev] Performing my own pass with a single command line?
Dear Zheng Wang, You have a few options: 1) You can add your pass to the set of passes that llvm-gcc runs when it optimizes code. This requires re-compiling llvm-gcc; it also means that your pass must be able to run on incomplete programs and be run multiple times over the same code (i.e., it cannot do whole-program analysis). 2) You can change the build system of the program you're
2010 Jul 22
0
[LLVMdev] gold and debug information
On Thu, Jul 22, 2010 at 11:35 AM, Devang Patel <devang.patel at gmail.com>wrote: > On Wed, Jul 21, 2010 at 9:50 AM, Jeffrey Yasskin <jyasskin at google.com> > wrote: > >> This (Unknown constant! in bitcode writer when -g is used) is a known > >> bug in CloneModule, because it is not cloning MDNodes appropriately. > > > > What's the link to the
2010 Apr 21
1
[LLVMdev] Performing my own pass with a single command line?
Hi John, Are there any documents about how to add a pass into LTO? Cheers, Zheng On 19 April 2010 15:11, John Criswell <criswell at uiuc.edu> wrote: > Dear Zheng Wang, > > You have a few options: > > 1) You can add your pass to the set of passes that llvm-gcc runs when it > optimizes code.  This requires re-compiling llvm-gcc; it also means that > your pass must be
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