[LLVMdev] Error while compiling mysql using LLVM-gold
Guoliang Jin
jingl1345 at gmail.com
Sun Jun 6 10:48:36 PDT 2010
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...
>>
More information about the llvm-dev
mailing list