[LLVMdev] Using Clang LTO/gold plugin to build clang

Sahoo, Swarup Kumar ssahoo2 at illinois.edu
Tue Oct 23 15:17:54 PDT 2012

Thanks for the help. LTO optimization was not an issue. llvm-ld was just using too much memory (especially with -g option). Now, it is able to link with more memory. But, llc is giving the following assertion violation when compiled with "-g" option.

While deleting: metadata %
An asserting value handle still pointed to this value!
UNREACHABLE executed at Value.cpp:620!

I saw the following bug reports with same assertion violation, but doesn't look like anybody is trying fix it :-(

From: Todd Jackson [quantum.skyline at gmail.com]
Sent: Wednesday, October 17, 2012 3:38 PM
To: Sahoo, Swarup Kumar
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Using Clang LTO/gold plugin to build clang

Two suggestions:

- Use a 64-bit operating system.
- You could disable the LTO optimizations by commenting out a few
lines in tools/lto/LTOCodeGenerator.cpp to determine if the problem is
a pass or with LTO itself.

On Wed, Oct 17, 2012 at 10:38 AM, Sahoo, Swarup Kumar
<ssahoo2 at illinois.edu> wrote:
> Hi,
>     I was trying to build clang (svn head version) using clang-3.1 version.
> I am building a debug version using LTO/gold plugin. It is crashing with
> signal 9 when trying to link the bitcode files to build the executable. I am
> not sure, if this is a bug or just a memory issue. Has anyone done anything
> similar or noticed similar behavior? Any help would be welcome.
> Thanks,
> Swarup.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

Todd Jackson, Ph.D.

More information about the llvm-dev mailing list