Bug#596970: clang: can't link after compiling with -O4
Michael Wild
themiwi at gmail.com
Tue Jun 21 07:57:28 UTC 2011
On 06/21/2011 09:29 AM, Sylvestre Ledru wrote:
> Hello,
>
> Le mardi 21 juin 2011 à 01:15 -0400, Anders Kaseorg a écrit :
>> To link the output of ‘clang -O4’, you need to have binutils-gold and the
>> LLVM gold plugin (LLVMgold.so) installed, and link with ‘clang
>> -use-gold-plugin’. The Debian package currently doesn’t build or install
>> the gold plugin. But that should easy to fix:
> I believe it is a different problem. Could you report a new bug ?
>
> Thanks
> Sylvestre
No, with -O4 clang emits LLVM bitcode which is then used to do link-time
optimizations. But in order for this to work, the LLVM gold-plugin is
required.
I recently tried to get this to work, but can't remember why I failed ;-)
Michael
More information about the Pkg-llvm-team
mailing list