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, >
Rafael Espindola
2010-Jun-06 13:05 UTC
[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 `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-plu...-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100606/774959a3/attachment.html>
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 -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 >> <mailto:jingl1345 at gmail.com>> wrote: >> >> 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-plu... >>