[LLVMdev] gold and debug information

Jeffrey Yasskin jyasskin at google.com
Wed Jul 21 09:50:02 PDT 2010


On Tue, Jul 20, 2010 at 10:39 AM, Devang Patel <devang.patel at gmail.com> wrote:
> On Tue, Jul 20, 2010 at 6:49 AM, Rafael Espindola <espindola at google.com> wrote:
>>> export PATH="$LLVMPREFIX/bin:$LLVMGCCPREFIX/bin:$PATH"
>>> export CC="llvm-gcc -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm"
>>> export CXX="llvm-g++ -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm"
>>> export RANLIB=/bin/true
>>> export CFLAGS="-O4 -g"
>>>
>>> then configure, make, and then hit the error.
>>>
>>> The error only happens if the CFLAGS has -g in it.
>>
>> Can you reduce the testcase a bit? It would be a lot easier to
>> reproduce with the ld invocation and the .o files given to it.
>
> 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?

> So bug point is likely to run into this while reducing test case.
>
> I do not know whether gold is cloning module at -O4 or not.
> -
> Devang
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list