Hello, I am trying to compile mysql using LLVM and I am found the following "If you just want to use *LLVM*'s link-time optimizations, you will need to use the libLTO library with your linker. Your linker, in turn, must be able to support plugins (like the gold linker, for example). For directions on how to set up libLTO, see http://*llvm*.org/docs/LinkTimeOptimization.html <http://llvm.org/docs/LinkTimeOptimization.html> and http://*llvm*.org/docs/GoldPlugin.html <http://llvm.org/docs/GoldPlugin.html>. " at http://old.nabble.com/Compile-a-large-project-with-llvm--td27793811.html 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 great. I am new to this list, and I guess this topic may be discussed before. Thanks, Guoliang
Rafael Espindola
2010-Jun-06 03:44 UTC
[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 great. I am new to this list, > and I guess this topic may be discussed before.Can you look in the config.log to see what the error was? Can you use llvm-gcc -use-gold-plugin in the command line?> Thanks, > GuoliangCheers, -- Rafael Ávila de Espíndola
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 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 great. I am new to this list, >> and I guess this topic may be discussed before. >> > > Can you look in the config.log to see what the error was? Can you use > llvm-gcc -use-gold-plugin in the command line? > > >> Thanks, >> Guoliang >> > > Cheers, >
Seemingly Similar Threads
- [LLVMdev] Error while compiling mysql using LLVM-gold
- [LLVMdev] Error while compiling mysql using LLVM-gold
- [LLVMdev] Error while compiling mysql using LLVM-gold
- [LLVMdev] Error while compiling mysql using LLVM-gold
- [LLVMdev] whole program bitcode and gold plugin